|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.infoengine.object.IeConstraintContainer
Field Summary | |
private static String |
_serialVersion
|
private DescriptorContainer |
descriptorContainer
|
private HashMap |
disabledMap
|
private HashMap |
enabledMap
|
private HashMap |
stateMap
|
Fields inherited from interface com.ptc.core.meta.container.common.ConstraintContainer |
BOTH, DISABLED, ENABLED |
Constructor Summary | |
|
IeConstraintContainer()
default no arg constructor to be used for de-serialization |
|
IeConstraintContainer(HashMap contentMap,
HashMap stateMap)
|
protected |
IeConstraintContainer(HashMap enabledMap,
HashMap disabledMap,
HashMap stateMap,
DescriptorContainer descriptorContainer)
|
Method Summary | |
private void |
_put(ConstraintIdentifier constraintId,
Object content,
State state)
|
Object |
clone()
|
ConstraintContainer |
cloneWithNewAttributeIdentifier(HashMap oldToNewMap,
AssociationIdentifier oldAssociation)
Supported API: false |
ConstraintContainer |
extract(TypeInstanceIdentifier typeInstanceId)
Supported API: false |
void |
filter(ConstraintTypeIdentifier[] constraintIds)
Supported API: false |
ConstraintData |
get(ConstraintIdentifier constraintId)
Get the content associated with this ConstraintIdentifier. |
ConstraintData[] |
get(ConstraintTypeIdentifier constraintTypeId)
Get the content associated with this ConstraintTypeIdentifier. |
private static ConstraintBindingRule |
getCBR(String classname)
|
ConstraintIdentifier[] |
getConstraintIdentifiers(AttributeContainer the_attribute_container,
AssociationIdentifier the_association_identifier,
AttributeTypeIdentifier the_attribute_type_identifier,
int enabled_mode)
Supported API: false |
ConstraintIdentifier[] |
getConstraintIdentifiers(AttributeContainer the_attribute_container,
AttributeIdentifier the_attribute_identifier,
int enabled_mode)
Supported API: false |
ConstraintIdentifier[] |
getConstraintIdentifiers(AttributeIdentifier attrId,
int enabledMode)
Supported API: false |
ConstraintIdentifier[] |
getConstraintIdentifiers(AttributeTypeIdentifier attrTypeId,
int enabledMode)
Supported API: false |
ConstraintIdentifier[] |
getConstraintIdentifiers(ConstraintTypeIdentifier constraintTypeId,
int enabledMode)
Get all ConstraintIdentifiers which match this ConstraintTypeIdentifier from this container. |
ConstraintIdentifier[] |
getConstraintIdentifiers(int enabledMode)
Get all ConstraintIdentifiers from this container. |
ConstraintIdentifier[] |
getConstraintIdentifiersByContext(ApplicationIdentifier context,
ConstraintTypeIdentifier constraintTypeId,
int enabledMode)
Get all ConstraintIdentifiers for a given context which match this CriterionTypeIdentifier from this container. |
ConstraintIdentifier[] |
getConstraintIdentifiersByContext(ApplicationIdentifier context,
int enabledMode)
Get all ConstraintIdentifiers for a given context from this container. |
ConstraintIdentifier[] |
getConstraintIdentifiersByContextAndState(ApplicationIdentifier context,
State state,
int enabledMode)
Get all ConstraintIdentifiers for a given context and State from this container. |
ConstraintIdentifier[] |
getConstraintIdentifiersByState(ConstraintTypeIdentifier constraintTypeId,
State state,
int enabledMode)
Get all ConstraintIdentifiers that match this state from this container. |
ConstraintIdentifier[] |
getConstraintIdentifiersByState(State state,
int enabledMode)
Get all ConstraintIdentifiers which match this state from this container. |
ConstraintIdentifier[] |
getConstraintIdentifiersWithChangedContent(ApplicationIdentifier context,
int enableMode)
Supported API: false |
ConstraintIdentifier[] |
getConstraintIdentifiersWithChangedContent(int enableMode)
Supported API: false |
ConstraintIdentifier[] |
getConstraintIdentifiersWithDefaultContent(ApplicationIdentifier context,
int enableMode)
Supported API: false |
ConstraintIdentifier[] |
getConstraintIdentifiersWithDefaultContent(int enableMode)
Supported API: false |
ConstraintIdentifier[] |
getConstraintIdentifiersWithDeletedContent(ApplicationIdentifier context,
int enableMode)
Supported API: false |
ConstraintIdentifier[] |
getConstraintIdentifiersWithDeletedContent(int enableMode)
Supported API: false |
ConstraintIdentifier[] |
getConstraintIdentifiersWithNewContent(ApplicationIdentifier context,
int enableMode)
Supported API: false |
ConstraintIdentifier[] |
getConstraintIdentifiersWithNewContent(int enableMode)
Supported API: false |
ConstraintIdentifier[] |
getConstraintIdentifiersWithUnchangedContent(ApplicationIdentifier context,
int enableMode)
Supported API: false |
ConstraintIdentifier[] |
getConstraintIdentifiersWithUnchangedContent(int enableMode)
Supported API: false |
ConstraintIdentifier[] |
getConstraintIdentifiersWithUninitializedContent(ApplicationIdentifier context,
int enableMode)
Supported API: false |
ConstraintIdentifier[] |
getConstraintIdentifiersWithUninitializedContent(int enableMode)
Supported API: false |
ConstraintTypeIdentifier[] |
getConstraintTypeIdentifiers()
Get all uniqueConstraintTypeIdentifiers from this container. |
DescriptorContainer |
getDescriptorContainer()
Gets the object for the association that plays role: descriptorContainer. |
State |
getState(ConstraintIdentifier constraintId)
Returns the state of the content associated with this Constraint Identifier. |
boolean |
isContentChanged(ConstraintIdentifier constraintId)
Returns true if the content associated with this Attribute Identifier is considered CHANGED, otherwise it returns false. |
boolean |
isContentDefault(ConstraintIdentifier constraintId)
Returns true if the content associated with this Attribute Identifier is considered DEFAULT, otherwise it returns false. |
boolean |
isContentDeleted(ConstraintIdentifier constraintId)
Returns true if the content associated with this Attribute Identifier is considered DELETED, otherwise it returns false. |
boolean |
isContentNew(ConstraintIdentifier constraintId)
Returns true if the content associated with this Attribute Identifier is considered NEW, otherwise it returns false. |
boolean |
isContentOfState(ConstraintIdentifier constraintId,
State state)
Returns true if the content associated with this Constraint Identifier is considered to be in the state: "the_state", otherwise it returns false. |
boolean |
isContentUnchanged(ConstraintIdentifier constraintId)
Returns true if the content associated with this Attribute Identifier is considered UNCHANGED, otherwise it returns false. |
boolean |
isContentUninitialized(ConstraintIdentifier constraintId)
Returns true if the content associated with this Attribute Identifier is considered UNITIALIZED, otherwise it returns false. |
boolean |
isEnabled(ConstraintIdentifier constraintId)
Supported API: false |
void |
merge(ConstraintContainer container)
Supported API: false |
void |
put(ConstraintIdentifier constraintId,
ConstraintData content)
Store the content and associate it with this ConstraintIdentifier in the container. |
void |
readExternal(ObjectInput in)
|
void |
remove(ConstraintIdentifier constraintId)
Removes criteria identified by the criterion identifier from the container. |
void |
setDescriptorContainer(DescriptorContainer descriptorContainer)
Sets the object for the association that plays role: descriptorContainer. |
void |
setEnabled(boolean enabled)
Disables or Enables all criteria defined in the container. |
void |
setEnabled(boolean enabled,
AttributeIdentifier attrId)
Enables or Disables all criteria defined for the attribute identifier in the container. |
void |
setEnabled(boolean enabled,
ConstraintIdentifier constraintId)
Enables or Disables criteria identified by the criterion identifier. |
String |
toString()
|
void |
writeExternal(ObjectOutput out)
|
Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
private HashMap enabledMap
private HashMap disabledMap
private HashMap stateMap
private DescriptorContainer descriptorContainer
private static final String _serialVersion
Constructor Detail |
public IeConstraintContainer()
public IeConstraintContainer(HashMap contentMap, HashMap stateMap)
contentMap
- stateMap
- protected IeConstraintContainer(HashMap enabledMap, HashMap disabledMap, HashMap stateMap, DescriptorContainer descriptorContainer)
stateMap
- Method Detail |
public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
readExternal
in interface Externalizable
IOException
ClassNotFoundException
public void writeExternal(ObjectOutput out) throws IOException
writeExternal
in interface Externalizable
IOException
public ConstraintTypeIdentifier[] getConstraintTypeIdentifiers()
getConstraintTypeIdentifiers
in interface ConstraintContainer
public ConstraintIdentifier[] getConstraintIdentifiers(int enabledMode)
getConstraintIdentifiers
in interface ConstraintContainer
enabledMode
-
public ConstraintIdentifier[] getConstraintIdentifiers(AttributeContainer the_attribute_container, AttributeIdentifier the_attribute_identifier, int enabled_mode)
ConstraintContainer
getConstraintIdentifiers
in interface ConstraintContainer
the_attribute_container
- the_attribute_identifier
- enabled_mode
-
public ConstraintIdentifier[] getConstraintIdentifiers(AttributeIdentifier attrId, int enabledMode)
ConstraintContainer
getConstraintIdentifiers
in interface ConstraintContainer
attrId
- enabledMode
-
public ConstraintIdentifier[] getConstraintIdentifiers(AttributeContainer the_attribute_container, AssociationIdentifier the_association_identifier, AttributeTypeIdentifier the_attribute_type_identifier, int enabled_mode)
ConstraintContainer
getConstraintIdentifiers
in interface ConstraintContainer
the_attribute_container
- the_association_identifier
- the_attribute_type_identifier
- enabled_mode
-
public ConstraintIdentifier[] getConstraintIdentifiers(AttributeTypeIdentifier attrTypeId, int enabledMode)
ConstraintContainer
getConstraintIdentifiers
in interface ConstraintContainer
attrTypeId
- enabledMode
-
public ConstraintIdentifier[] getConstraintIdentifiers(ConstraintTypeIdentifier constraintTypeId, int enabledMode)
getConstraintIdentifiers
in interface ConstraintContainer
constraintTypeId
- enabledMode
-
public ConstraintIdentifier[] getConstraintIdentifiersByContext(ApplicationIdentifier context, int enabledMode)
getConstraintIdentifiersByContext
in interface ConstraintContainer
context
- enabledMode
-
public ConstraintIdentifier[] getConstraintIdentifiersByContext(ApplicationIdentifier context, ConstraintTypeIdentifier constraintTypeId, int enabledMode)
getConstraintIdentifiersByContext
in interface ConstraintContainer
context
- constraintTypeId
- enabledMode
-
public ConstraintData get(ConstraintIdentifier constraintId)
get
in interface ConstraintContainer
constraintId
-
public ConstraintData[] get(ConstraintTypeIdentifier constraintTypeId)
get
in interface ConstraintContainer
constraintTypeId
-
public void put(ConstraintIdentifier constraintId, ConstraintData content) throws IllegalContentException
put
in interface ConstraintContainer
constraintId
- content
-
IllegalContentException
public void setEnabled(boolean enabled)
setEnabled
in interface ConstraintContainer
enabled
- public void setEnabled(boolean enabled, AttributeIdentifier attrId)
setEnabled
in interface ConstraintContainer
enabled
- attrId
- public void setEnabled(boolean enabled, ConstraintIdentifier constraintId)
setEnabled
in interface ConstraintContainer
enabled
- constraintId
- public void remove(ConstraintIdentifier constraintId)
remove
in interface ConstraintContainer
constraintId
- public boolean isEnabled(ConstraintIdentifier constraintId)
ConstraintContainer
isEnabled
in interface ConstraintContainer
constraintId
-
public ConstraintIdentifier[] getConstraintIdentifiersWithNewContent(ApplicationIdentifier context, int enableMode)
ConstraintContainer
getConstraintIdentifiersWithNewContent
in interface ConstraintContainer
context
- enableMode
-
public ConstraintIdentifier[] getConstraintIdentifiersWithChangedContent(ApplicationIdentifier context, int enableMode)
ConstraintContainer
getConstraintIdentifiersWithChangedContent
in interface ConstraintContainer
context
- enableMode
-
public ConstraintIdentifier[] getConstraintIdentifiersWithUnchangedContent(ApplicationIdentifier context, int enableMode)
ConstraintContainer
getConstraintIdentifiersWithUnchangedContent
in interface ConstraintContainer
context
- enableMode
-
public ConstraintIdentifier[] getConstraintIdentifiersWithDeletedContent(ApplicationIdentifier context, int enableMode)
ConstraintContainer
getConstraintIdentifiersWithDeletedContent
in interface ConstraintContainer
context
- enableMode
-
public ConstraintIdentifier[] getConstraintIdentifiersWithUninitializedContent(ApplicationIdentifier context, int enableMode)
ConstraintContainer
getConstraintIdentifiersWithUninitializedContent
in interface ConstraintContainer
context
- enableMode
-
public ConstraintIdentifier[] getConstraintIdentifiersWithDefaultContent(ApplicationIdentifier context, int enableMode)
ConstraintContainer
getConstraintIdentifiersWithDefaultContent
in interface ConstraintContainer
context
- enableMode
-
public ConstraintIdentifier[] getConstraintIdentifiersWithNewContent(int enableMode)
ConstraintContainer
getConstraintIdentifiersWithNewContent
in interface ConstraintContainer
enableMode
-
public ConstraintIdentifier[] getConstraintIdentifiersWithChangedContent(int enableMode)
ConstraintContainer
getConstraintIdentifiersWithChangedContent
in interface ConstraintContainer
enableMode
-
public ConstraintIdentifier[] getConstraintIdentifiersWithUnchangedContent(int enableMode)
ConstraintContainer
getConstraintIdentifiersWithUnchangedContent
in interface ConstraintContainer
enableMode
-
public ConstraintIdentifier[] getConstraintIdentifiersWithDeletedContent(int enableMode)
ConstraintContainer
getConstraintIdentifiersWithDeletedContent
in interface ConstraintContainer
enableMode
-
public ConstraintIdentifier[] getConstraintIdentifiersWithUninitializedContent(int enableMode)
ConstraintContainer
getConstraintIdentifiersWithUninitializedContent
in interface ConstraintContainer
enableMode
-
public ConstraintIdentifier[] getConstraintIdentifiersWithDefaultContent(int enableMode)
ConstraintContainer
getConstraintIdentifiersWithDefaultContent
in interface ConstraintContainer
enableMode
-
public void merge(ConstraintContainer container)
ConstraintContainer
merge
in interface ConstraintContainer
container
- public void filter(ConstraintTypeIdentifier[] constraintIds)
ConstraintContainer
filter
in interface ConstraintContainer
constraintIds
- public ConstraintIdentifier[] getConstraintIdentifiersByState(State state, int enabledMode)
getConstraintIdentifiersByState
in interface ConstraintContainer
state
- enabledMode
-
public ConstraintIdentifier[] getConstraintIdentifiersByState(ConstraintTypeIdentifier constraintTypeId, State state, int enabledMode)
getConstraintIdentifiersByState
in interface ConstraintContainer
constraintTypeId
- state
- enabledMode
-
public ConstraintIdentifier[] getConstraintIdentifiersByContextAndState(ApplicationIdentifier context, State state, int enabledMode)
getConstraintIdentifiersByContextAndState
in interface ConstraintContainer
context
- state
- enabledMode
-
public boolean isContentNew(ConstraintIdentifier constraintId)
isContentNew
in interface ConstraintContainer
constraintId
-
public boolean isContentChanged(ConstraintIdentifier constraintId)
isContentChanged
in interface ConstraintContainer
constraintId
-
public boolean isContentUnchanged(ConstraintIdentifier constraintId)
isContentUnchanged
in interface ConstraintContainer
constraintId
-
public boolean isContentDeleted(ConstraintIdentifier constraintId)
isContentDeleted
in interface ConstraintContainer
constraintId
-
public boolean isContentUninitialized(ConstraintIdentifier constraintId)
isContentUninitialized
in interface ConstraintContainer
constraintId
-
public boolean isContentDefault(ConstraintIdentifier constraintId)
isContentDefault
in interface ConstraintContainer
constraintId
-
public boolean isContentOfState(ConstraintIdentifier constraintId, State state)
isContentOfState
in interface ConstraintContainer
constraintId
- state
-
public State getState(ConstraintIdentifier constraintId)
getState
in interface ConstraintContainer
constraintId
-
public ConstraintContainer cloneWithNewAttributeIdentifier(HashMap oldToNewMap, AssociationIdentifier oldAssociation)
ConstraintContainer
cloneWithNewAttributeIdentifier
in interface ConstraintContainer
oldToNewMap
- oldAssociation
-
public ConstraintContainer extract(TypeInstanceIdentifier typeInstanceId)
ConstraintContainer
extract
in interface ConstraintContainer
typeInstanceId
-
public DescriptorContainer getDescriptorContainer()
getDescriptorContainer
in interface ConstraintContainer
public void setDescriptorContainer(DescriptorContainer descriptorContainer)
setDescriptorContainer
in interface ConstraintContainer
descriptorContainer
- private void _put(ConstraintIdentifier constraintId, Object content, State state) throws IllegalContentException
IllegalContentException
public String toString()
public Object clone()
clone
in interface ConstraintContainer
private static ConstraintBindingRule getCBR(String classname)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |