|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.infoengine.object.IeObject
com.infoengine.object.IeNode
Field Summary | |
private static String |
_serialVersion
|
static String |
CLASS_KEY
|
private static String |
CLASSNAME
|
private ConstraintContainer |
constraintContainer
|
private Map |
deletedDatums
|
private DescriptorContainer |
descriptorContainer
|
static String |
FTI_KEY
|
private ContentChangedListenerManager |
listenerManager
|
static String |
OBID_KEY
|
Fields inherited from class com.infoengine.object.IeObject |
_attributes, _children, _hasChanged, _meta, _name, _type, INITIAL_LIST_SIZE, INITIAL_MAP_SIZE, USE_COLLECTIONS |
Constructor Summary | |
IeNode()
Constructs a new IeNode |
|
IeNode(AttributeContainer container)
Constructs a new IeNode from a generic AttributeContainer. |
|
IeNode(HashMap contentMap,
HashMap stateMap)
Constructs a new IeNode from a content map and a state map that are both keyed by AttributeIdentifier. |
|
IeNode(String name)
Constructs a new IeNode and sets the node name to the given String. |
Method Summary | |
private Vector |
_expandTypeInstanceIdentifier(TypeInstanceIdentifier id)
|
private Object |
_getKeyFrom(HashMap map,
Object oldKey)
|
private boolean |
_hasInContext(AttributeIdentifier attrId,
AssociationIdentifier associationId)
|
private boolean |
_hasInContext(AttributeTypeIdentifier attrTypeId,
AssociationTypeIdentifier associationTypeId)
|
private void |
_merge(AttributeContainer container,
AttributeIdentifier[] aids,
AttributeIdentifier[] otherAids)
|
private AttributeIdentifier |
_put(AttributeIdentifier attrId,
Object content,
State state)
Puts a specified attribute, with state, into this instance. |
private void |
_remove(AttributeTypeIdentifier attrTypeId,
IeDatum datum)
|
void |
acceptChanges()
Supported API: false |
void |
acceptDefaultContent()
Modifies all attribute values whose content is in the DEFAULT state such that their state is NEW. |
void |
addContentChangedListener(ContentChangedListener listener)
Supported API: false |
void |
addDatum(IeDatum datum)
Adds an attribute value by attribute identifier. |
void |
addNode(IeNode node)
Adds a child node to the node. |
void |
addReplacement(ElementIdentifier old_id,
ElementIdentifier new_id)
Supported API: false |
void |
clearReplacements()
Supported API: false |
AttributeContainer |
clone(AttributeTypeIdentifier[] filter,
boolean compact)
Supported API: false |
AttributeContainer |
clone(boolean compact)
Supported API: true |
AttributeContainer |
cloneWithNewCenter(TypeInstanceIdentifier typeInstanceId)
Supported API: false |
AttributeContainer |
cloneWithNewUninitializedIdentifiers(HashMap map)
Supported API: false |
boolean |
contains(AttributeIdentifier attrId)
Returns true if this instance contains an attribute specified by AttributeIdentifier. |
AttributeContainer[] |
decompose(boolean compact)
Supported API: false |
Object |
deepClone()
Returns a deep copy of the node. |
AttributeContainer[] |
extract(TypeIdentifier typeId)
Supported API: false |
AttributeContainer[] |
extract(TypeIdentifier typeId,
boolean navigate)
Supported API: false |
AttributeContainer |
extract(TypeInstanceIdentifier typeInstanceId)
Supported API: false |
AttributeContainer |
extract(TypeInstanceIdentifier typeInstanceId,
boolean navigate)
Supported API: false |
AttributeContainer[] |
extractCopies(TypeIdentifier typeId,
boolean navigate,
boolean compact)
Supported API: false |
AttributeContainer |
extractCopy(TypeInstanceIdentifier the_type_instance_identifier,
AttributeTypeIdentifier[] filter,
boolean compact)
Supported API: false |
AttributeContainer |
extractCopy(TypeInstanceIdentifier typeInstanceId,
boolean navigate,
boolean compact)
Supported API: false |
Object |
get(AttributeIdentifier attrId)
Get the content associated with this AttributeIdentifier. |
Object |
get(AttributeTypeIdentifier attrTypeId)
Get the content associated with this AttributeTypeIdentifier. |
AssociationIdentifier[] |
getAssociationIdentifiers(TypeIdentifier typeId)
Returns all association identifiers for attributes in the contains that match a specific type identifier. |
AssociationIdentifier[] |
getAssociationIdentifiers(TypeIdentifier typeId,
State state)
Returns all association identifiers for attributes in the container that match a specific type identifier and state. |
AssociationIdentifier[] |
getAssociationIdentifiers(TypeInstanceIdentifier typeInstanceId)
Returns all current AssociationIdentifiers in this container that are equivalent to the given TypeInstanceIdentifier. |
AssociationIdentifier[] |
getAssociationIdentifiers(TypeInstanceIdentifier typeInstanceId,
State state)
Returns all AssociationIdentifiers in this container that are equivalent to the given TypeInstanceIdentifier and that match the given state. |
IeAtt |
getAtt(AttributeTypeIdentifier attrTypeId)
Returns an attribute by attribute type identifier. |
AttributeIdentifier[] |
getAttributeIdentifiers()
Returns all AttributeIdentifiers from this container. |
AttributeIdentifier[] |
getAttributeIdentifiers(AssociationIdentifier associationId)
Returns attribute identifiers of all attributes from the container that have a specific association identifier in their context. |
AttributeIdentifier[] |
getAttributeIdentifiers(AssociationIdentifier associationId,
AttributeTypeIdentifier attrTypeId,
boolean isAbsolute)
Returns all current AttributeIdentifiers in this container defined in the context of the given AssociationIdentifier and associated with the given AttributeTypeIdentifier. |
AttributeIdentifier[] |
getAttributeIdentifiers(AssociationIdentifier associationId,
AttributeTypeIdentifier attrTypeId,
boolean isAbsolute,
State state)
Returns all AttributeIdentifiers in this container defined in the context of the given AssociationIdentifier and associated with the given AttributeTypeIdentifier and that match the given state. |
AttributeIdentifier[] |
getAttributeIdentifiers(AssociationIdentifier associationId,
State state)
Returns all AttributeIdentifiers in this container defined in the context of the given AssociationIdentifier that match the given state. |
AttributeIdentifier[] |
getAttributeIdentifiers(AttributeTypeIdentifier attrTypeId)
Returns all attribute identifiers from this container associated with a specific attribute type identifier. |
AttributeIdentifier[] |
getAttributeIdentifiers(AttributeTypeIdentifier attrTypeId,
State state)
Returns all attribute identifiers of attributes from this container that match a specific attribute type identifier and attribute state. |
AttributeIdentifier[] |
getAttributeIdentifiers(State state)
Returns all attribute identifiers of attribute values having a specific state. |
AttributeIdentifier[] |
getAttributeIdentifiers(String logicalForm)
Returns all current AttributeIdentifiers in this container associated with an AttributeTypeIdentifier which matches the given logical form. |
AttributeIdentifier[] |
getAttributeIdentifiers(TypeInstanceIdentifier the_type_instance_identifier)
Returns all current AttributeIdentifiers in this container defined directly in the context of the given TypeInstanceIdentifier. |
AttributeIdentifier[] |
getAttributeIdentifiers(TypeInstanceIdentifier the_type_instance_identifier,
State the_state)
Returns all AttributeIdentifiers in this container defined directly in the context of the given TypeInstanceIdentifier that match the given state. |
AttributeTypeIdentifier[] |
getAttributeTypeIdentifiers()
Returns all unique AttributeTypeIdentifiers from this container. |
AttributeTypeIdentifier[] |
getAttributeTypeIdentifiers(String logicalForm)
Returns all current AttributeTypeIdentifiers in this container that match the given logical form. |
AttributeTypeSummary |
getAttributeTypeSummary(AssociationIdentifier the_association_identifier,
AttributeTypeIdentifier the_attribute_type_identifier,
boolean is_absolute)
Returns an AttributeTypeSummary for the AttributeTypeIdentifier. |
AttributeTypeSummary |
getAttributeTypeSummary(AssociationIdentifier the_association_identifier,
AttributeTypeIdentifier the_attribute_type_identifier,
boolean is_absolute,
ConstraintContainer the_constraint_container,
DescriptorContainer the_descriptor_container)
Returns an AttributeTypeSummary for the AttributeTypeIdentifier. |
AttributeTypeSummary |
getAttributeTypeSummary(AttributeTypeIdentifier attrTypeId)
Retrieves the AttributeTypeSummary for the AttributeTypeIdentifier. |
AttributeTypeSummary |
getAttributeTypeSummary(AttributeTypeIdentifier the_attribute_type_identifier,
ConstraintContainer the_constraint_container,
DescriptorContainer the_descriptor_container)
Returns an AttributeTypeSummary for the AttributeTypeIdentifier. |
AttributeTypeSummary |
getAttributeTypeSummary(String name)
Retrieves the AttributeTypeSummary for the attribute specified by logical identifier. |
ConstraintContainer |
getConstraintContainer()
Returns the constraint container associated with this instance. |
Object |
getContent(AttributeIdentifier attrId)
Returns the content associated with an attribute specified by attribute identifier. |
IeDatum |
getDatum(AttributeIdentifier attrId)
Returns an attribute value by attribute identifier. |
DefinitionDescriptor |
getDescriptor(DefinitionIdentifier defnId)
Get the descriptor for this DefinitionIdentifier. |
DescriptorContainer |
getDescriptorContainer()
Returns the descriptor container associated with this instance. |
String |
getFti()
Returns the federated type identifier of this node. |
ElementIdentifier |
getIdentifier()
Supported API: false |
Object |
getInternal(AttributeIdentifier the_attribute_identifier)
Supported API: false |
IeNode |
getNode(String name)
Returns a child node by name. |
String |
getNodeName()
Returns the DOM node name of this object. |
Enumeration |
getNodes()
Returns all of the child nodes of the node. |
HashMap |
getReplacements()
Supported API: false |
Object |
getSingle(AttributeTypeIdentifier attrTypeId)
Get the single content associated with this AttributeTypeIdentifier. |
Object |
getSingle(String logicalForm)
Returns the content associated with all AttributeTypeIdentifiers matching the given logical form in this container. |
State |
getState(AttributeIdentifier attrId)
Returns the state of the content associated with a specific attribute identifier. |
String |
getUfid()
Returns the unique federation identifier of this node. |
boolean |
isContentOfState(AttributeIdentifier attrId,
State state)
Returns true if the content associated with a specific attribute identifier is considered to be in a specific state. |
boolean |
isDirty()
Returns true if any attribute values have been modified, added, or removed from the container, otherwise returns false. |
void |
merge(AttributeContainer container)
Combines the content of another container with this one. |
void |
merge(AttributeContainer container,
AssociationIdentifier relationship)
Supported API: false |
void |
merge(AttributeContainer container,
AssociationIdentifier relationship,
boolean containerHasPriority)
Supported API: false |
void |
merge(AttributeContainer container,
boolean containerHasPriority)
Supported API: false |
void |
purge(AttributeIdentifier attrId)
Supported API: false |
void |
purge(AttributeTypeIdentifier attrTypeId)
Supported API: false |
void |
purge(TypeIdentifier typeId)
Supported API: false |
void |
purge(TypeInstanceIdentifier typeInstanceId)
Supported API: false |
void |
purge(TypeInstanceIdentifier[] the_type_instance_identifiers)
Supported API: false |
void |
purge(TypeInstanceIdentifier typeInstanceId,
TypeInstanceIdentifier[] preserve)
Supported API: false |
void |
purgeAllBut(AttributeTypeIdentifier[] attrTypeIds)
Removes all attributes except ones with the specified types. |
void |
purgeAllContent()
Supported API: false |
void |
purgeDefaultContent()
Removes all content that is considered DEFAULT. |
void |
purgeDuplicateContent()
Supported API: false |
void |
purgeNonDirtyContent()
Removes all content who's state is DEFAULT, UNCHANGED, or UNINITIALIZED. |
AttributeIdentifier |
put(AttributeIdentifier attrId,
Object content)
Store this content and associate it with this AttributeIdentifier in the container. |
AttributeIdentifier |
put(AttributeIdentifier the_attribute_identifier,
Object the_content,
ConstraintContainer the_constraint_container)
Stores the given content in this container, in assocation with the given AttributeIdentifier. |
void |
readExternal(ObjectInput in)
|
void |
remove(AttributeIdentifier attrId)
Remove this AttributeIdentifier and it's content from the container. |
void |
remove(AttributeIdentifier the_attribute_identifier,
ConstraintContainer the_constraint_container)
Deletes the content associated with the given AttributeIdentifier from this container. |
void |
remove(AttributeTypeIdentifier attrTypeId)
Remove all AttributeIdentifiers, and their content, that have this AttributeTypeIdentifier. |
void |
remove(AttributeTypeIdentifier the_attribute_type_identifier,
ConstraintContainer the_constraint_container)
Deletes the content associated with all AttributeIdentifiers associated with the given AttributeTypeIdentifier from this container. |
void |
removeAllNodes()
Removes all of the child nodes associated with the node. |
void |
removeContentChangedListener(ContentChangedListener listener)
Supported API: false |
void |
removeDatum(AttributeIdentifier attrId)
Removes an attribute value by attribute identifier. |
void |
removeDatum(IeDatum datum)
Removes an attribute value by attribute identifier. |
void |
removeNode(IeNode node)
Removes a specified child node from the node. |
void |
replace(TypeInstanceIdentifier old_id,
TypeInstanceIdentifier new_id)
Supported API: false |
void |
replaceContent(AttributeContainer newContent)
Supported API: false |
void |
setConstraintContainer(ConstraintContainer container)
Sets the constraint container associated with this instance. |
void |
setDescriptorContainer(DescriptorContainer container)
Sets the descriptor container associated with this instance. |
void |
setFti(String fti)
Sets the federated type identifier of this node. |
void |
setState(AttributeIdentifier the_attribute_identifier,
State the_state)
Sets the state associated with the given AttributeIdentifier in this container. |
void |
setUfid(String ufid)
Sets the unique federation identifier of this node. |
String |
toString()
|
void |
writeExternal(ObjectOutput out)
|
Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface com.ptc.core.meta.container.common.AttributeContainer |
clone |
Field Detail |
private static final String CLASSNAME
public static final String CLASS_KEY
public static final String FTI_KEY
public static final String OBID_KEY
private static final String _serialVersion
private transient ContentChangedListenerManager listenerManager
private Map deletedDatums
private ConstraintContainer constraintContainer
private DescriptorContainer descriptorContainer
Constructor Detail |
public IeNode()
public IeNode(String name)
name
- The name of the nodepublic IeNode(AttributeContainer container)
container
- The AttributeContainer instance from which to
construct this IeNodepublic IeNode(HashMap contentMap, HashMap stateMap) throws IllegalContentException, ConstraintException
contentMap
- The content mapstateMap
- The state mapMethod Detail |
public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
readExternal
in interface Externalizable
readExternal
in class IeObject
IOException
ClassNotFoundException
public void writeExternal(ObjectOutput out) throws IOException
writeExternal
in interface Externalizable
writeExternal
in class IeObject
IOException
public void addNode(IeNode node)
node
- the node to be addedpublic void removeNode(IeNode node)
node
- the child node to be removedpublic void removeAllNodes()
public IeNode getNode(String name)
name
- the name of the child node to be returned
public Enumeration getNodes()
public String getNodeName()
getNodeName
in class IeObject
public final Object deepClone()
deepClone
in class IeObject
public AttributeTypeIdentifier[] getAttributeTypeIdentifiers()
getAttributeTypeIdentifiers
in interface AttributeContainer
public AttributeTypeIdentifier[] getAttributeTypeIdentifiers(String logicalForm)
AttributeContainer
getAttributeTypeIdentifiers
in interface AttributeContainer
logicalForm
-
public AttributeIdentifier[] getAttributeIdentifiers()
getAttributeIdentifiers
in interface AttributeContainer
public AttributeIdentifier[] getAttributeIdentifiers(State state)
getAttributeIdentifiers
in interface AttributeContainer
state
- The state of attribute values for which to return
identifiers.
public AttributeIdentifier[] getAttributeIdentifiers(AttributeTypeIdentifier attrTypeId)
getAttributeIdentifiers
in interface AttributeContainer
attrTypeId
- The attribute type identifier to be matched.
public AttributeIdentifier[] getAttributeIdentifiers(AttributeTypeIdentifier attrTypeId, State state)
getAttributeIdentifiers
in interface AttributeContainer
attrTypeId
- The attribute type identifier to match.state
- The state of attributes for which to return identifiers.
public AttributeIdentifier[] getAttributeIdentifiers(AssociationIdentifier associationId)
getAttributeIdentifiers
in interface AttributeContainer
associationId
- The association identifier.
public AttributeIdentifier[] getAttributeIdentifiers(AssociationIdentifier associationId, State state)
AttributeContainer
getAttributeIdentifiers
in interface AttributeContainer
associationId
- The association identifier.state
- The state of attributes to match.
public AttributeIdentifier[] getAttributeIdentifiers(AssociationIdentifier associationId, AttributeTypeIdentifier attrTypeId, boolean isAbsolute)
AttributeContainer
getAttributeIdentifiers
in interface AttributeContainer
associationId
- The association identifier.attrTypeId
- The attribute type identifier to match.isAbsolute
-
public AttributeIdentifier[] getAttributeIdentifiers(AssociationIdentifier associationId, AttributeTypeIdentifier attrTypeId, boolean isAbsolute, State state)
AttributeContainer
getAttributeIdentifiers
in interface AttributeContainer
associationId
- The association identifier.attrTypeId
- The attribute type identifier to match.isAbsolute
- state
- The state to match.
public AttributeIdentifier[] getAttributeIdentifiers(String logicalForm)
AttributeContainer
getAttributeIdentifiers
in interface AttributeContainer
logicalForm
-
public AssociationIdentifier[] getAssociationIdentifiers(TypeInstanceIdentifier typeInstanceId)
AttributeContainer
getAssociationIdentifiers
in interface AttributeContainer
typeInstanceId
- The type instance identifier.
public AssociationIdentifier[] getAssociationIdentifiers(TypeInstanceIdentifier typeInstanceId, State state)
AttributeContainer
getAssociationIdentifiers
in interface AttributeContainer
typeInstanceId
- state
-
public AssociationIdentifier[] getAssociationIdentifiers(TypeIdentifier typeId)
getAssociationIdentifiers
in interface AttributeContainer
typeId
- The type identifier.
public AssociationIdentifier[] getAssociationIdentifiers(TypeIdentifier typeId, State state)
getAssociationIdentifiers
in interface AttributeContainer
typeId
- The type identifier.state
- The state to match.
public Object get(AttributeIdentifier attrId)
get
in interface AttributeContainer
attrId
- The identifier of the attribute to return.
public Object get(AttributeTypeIdentifier attrTypeId)
get
in interface AttributeContainer
attrTypeId
- The attribute type identifier.
public Object getSingle(AttributeTypeIdentifier attrTypeId)
getSingle
in interface AttributeContainer
attrTypeId
- The attribute type identifier.
public Object getSingle(String logicalForm)
AttributeContainer
getSingle
in interface AttributeContainer
logicalForm
-
public AttributeIdentifier put(AttributeIdentifier attrId, Object content) throws IllegalContentException, ConstraintException
put
in interface AttributeContainer
attrId
- The attribute identifiercontent
- The content
IllegalContentException
ConstraintException
public void remove(AttributeIdentifier attrId) throws ConstraintException
remove
in interface AttributeContainer
attrId
- The identifier of the attribute to be removed.
ConstraintException
public void remove(AttributeTypeIdentifier attrTypeId) throws ConstraintException
remove
in interface AttributeContainer
attrTypeId
- The attribute type identifier.
ConstraintException
public DefinitionDescriptor getDescriptor(DefinitionIdentifier defnId)
getDescriptor
in interface AttributeContainer
defnId
- The definition identifier
public AttributeTypeSummary getAttributeTypeSummary(AttributeTypeIdentifier attrTypeId)
getAttributeTypeSummary
in interface AttributeContainer
attrTypeId
- The attribute type identifier
public AttributeTypeSummary getAttributeTypeSummary(String name)
name
- The attribute name
public boolean isDirty()
isDirty
in interface AttributeContainer
public boolean isContentOfState(AttributeIdentifier attrId, State state)
isContentOfState
in interface AttributeContainer
attrId
- The attribute identifierstate
- The state
public State getState(AttributeIdentifier attrId)
getState
in interface AttributeContainer
attrId
- The attribute identifier of the value for which
to return the state
public void acceptDefaultContent()
acceptDefaultContent
in interface AttributeContainer
public AttributeContainer[] decompose(boolean compact)
AttributeContainer
decompose
in interface AttributeContainer
compact
-
public AttributeContainer clone(boolean compact)
AttributeContainer
clone
in interface AttributeContainer
compact
-
public AttributeContainer cloneWithNewCenter(TypeInstanceIdentifier typeInstanceId)
AttributeContainer
cloneWithNewCenter
in interface AttributeContainer
typeInstanceId
-
public void merge(AttributeContainer container)
merge
in interface AttributeContainer
container
- The container to be merged with this one.public void merge(AttributeContainer container, AssociationIdentifier relationship)
AttributeContainer
merge
in interface AttributeContainer
container
- relationship
- public void merge(AttributeContainer container, boolean containerHasPriority)
AttributeContainer
merge
in interface AttributeContainer
container
- containerHasPriority
- public void merge(AttributeContainer container, AssociationIdentifier relationship, boolean containerHasPriority)
AttributeContainer
merge
in interface AttributeContainer
container
- relationship
- containerHasPriority
- public AttributeContainer extract(TypeInstanceIdentifier typeInstanceId)
AttributeContainer
extract
in interface AttributeContainer
typeInstanceId
-
public AttributeContainer[] extract(TypeIdentifier typeId)
AttributeContainer
extract
in interface AttributeContainer
typeId
-
public AttributeContainer extract(TypeInstanceIdentifier typeInstanceId, boolean navigate)
AttributeContainer
extract
in interface AttributeContainer
typeInstanceId
- navigate
-
public AttributeContainer extractCopy(TypeInstanceIdentifier typeInstanceId, boolean navigate, boolean compact)
AttributeContainer
extractCopy
in interface AttributeContainer
typeInstanceId
- navigate
- compact
-
public AttributeContainer[] extractCopies(TypeIdentifier typeId, boolean navigate, boolean compact)
AttributeContainer
extractCopies
in interface AttributeContainer
typeId
- navigate
- compact
-
public AttributeContainer[] extract(TypeIdentifier typeId, boolean navigate)
AttributeContainer
extract
in interface AttributeContainer
typeId
- navigate
-
public void purge(AttributeIdentifier attrId)
AttributeContainer
purge
in interface AttributeContainer
attrId
- public void purge(AttributeTypeIdentifier attrTypeId)
AttributeContainer
purge
in interface AttributeContainer
attrTypeId
- public void purge(TypeInstanceIdentifier typeInstanceId)
AttributeContainer
purge
in interface AttributeContainer
typeInstanceId
- public void purge(TypeIdentifier typeId)
AttributeContainer
purge
in interface AttributeContainer
typeId
- public void purge(TypeInstanceIdentifier typeInstanceId, TypeInstanceIdentifier[] preserve)
AttributeContainer
purge
in interface AttributeContainer
typeInstanceId
- preserve
- public void purgeDefaultContent()
purgeDefaultContent
in interface AttributeContainer
public void purgeNonDirtyContent()
purgeNonDirtyContent
in interface AttributeContainer
public void purgeDuplicateContent()
AttributeContainer
purgeDuplicateContent
in interface AttributeContainer
public void purgeAllContent()
AttributeContainer
purgeAllContent
in interface AttributeContainer
public void purgeAllBut(AttributeTypeIdentifier[] attrTypeIds)
purgeAllBut
in interface AttributeContainer
attrTypeIds
- The attribute types to be retained.public void replaceContent(AttributeContainer newContent)
AttributeContainer
replaceContent
in interface AttributeContainer
newContent
- public void addContentChangedListener(ContentChangedListener listener)
AttributeContainer
addContentChangedListener
in interface AttributeContainer
listener
- public void removeContentChangedListener(ContentChangedListener listener)
AttributeContainer
removeContentChangedListener
in interface AttributeContainer
listener
- public ConstraintContainer getConstraintContainer()
getConstraintContainer
in interface AttributeContainer
public void setConstraintContainer(ConstraintContainer container)
setConstraintContainer
in interface AttributeContainer
container
- The new constraint container.public DescriptorContainer getDescriptorContainer()
getDescriptorContainer
in interface AttributeContainer
public void setDescriptorContainer(DescriptorContainer container)
setDescriptorContainer
in interface AttributeContainer
container
- The new descriptor container.public String toString()
public IeAtt getAtt(AttributeTypeIdentifier attrTypeId)
attrTypeId
- The attribute type identifier.
public IeDatum getDatum(AttributeIdentifier attrId)
attrId
- The attribute identifier.
public void addDatum(IeDatum datum)
datum
- The attribute value. If the attribute value does not
contain an attribute identifier, it is not added.public void removeDatum(IeDatum datum)
datum
- The attribute value. If the attribute value does not
contain an attribute identifier, nothing is removed.public void removeDatum(AttributeIdentifier attrId)
attrId
- The attribute identifier of the value to be removed.public Object getContent(AttributeIdentifier attrId)
attrId
- The attribute identifier of the attribute for which
to return content.
public boolean contains(AttributeIdentifier attrId)
attrId
- The attribute identifier.
public String getFti()
public void setFti(String fti)
fti
- The new federated type identifier.public String getUfid()
public void setUfid(String ufid)
ufid
- The new unique federation identifier.private AttributeIdentifier _put(AttributeIdentifier attrId, Object content, State state) throws IllegalContentException, ConstraintException
IllegalContentException
ConstraintException
private void _remove(AttributeTypeIdentifier attrTypeId, IeDatum datum) throws ConstraintException
ConstraintException
private Object _getKeyFrom(HashMap map, Object oldKey)
private Vector _expandTypeInstanceIdentifier(TypeInstanceIdentifier id)
private boolean _hasInContext(AttributeIdentifier attrId, AssociationIdentifier associationId)
private boolean _hasInContext(AttributeTypeIdentifier attrTypeId, AssociationTypeIdentifier associationTypeId)
private void _merge(AttributeContainer container, AttributeIdentifier[] aids, AttributeIdentifier[] otherAids)
public AttributeContainer clone(AttributeTypeIdentifier[] filter, boolean compact)
AttributeContainer
clone
in interface AttributeContainer
filter
- compact
-
public AttributeContainer cloneWithNewUninitializedIdentifiers(HashMap map)
AttributeContainer
cloneWithNewUninitializedIdentifiers
in interface AttributeContainer
map
-
public AttributeContainer extractCopy(TypeInstanceIdentifier the_type_instance_identifier, AttributeTypeIdentifier[] filter, boolean compact)
AttributeContainer
extractCopy
in interface AttributeContainer
the_type_instance_identifier
- filter
- compact
-
public void replace(TypeInstanceIdentifier old_id, TypeInstanceIdentifier new_id)
AttributeContainer
replace
in interface AttributeContainer
old_id
- new_id
- public void addReplacement(ElementIdentifier old_id, ElementIdentifier new_id)
AttributeContainer
addReplacement
in interface AttributeContainer
old_id
- new_id
- public HashMap getReplacements()
AttributeContainer
getReplacements
in interface AttributeContainer
public void clearReplacements()
AttributeContainer
clearReplacements
in interface AttributeContainer
public Object getInternal(AttributeIdentifier the_attribute_identifier)
AttributeContainer
getInternal
in interface AttributeContainer
the_attribute_identifier
-
public ElementIdentifier getIdentifier()
AttributeContainer
getIdentifier
in interface AttributeContainer
public AttributeIdentifier put(AttributeIdentifier the_attribute_identifier, Object the_content, ConstraintContainer the_constraint_container) throws IllegalContentException, ConstraintException
AttributeContainer
put
in interface AttributeContainer
the_attribute_identifier
- the_content
- the_constraint_container
-
ConstraintException
IllegalContentException
public void remove(AttributeIdentifier the_attribute_identifier, ConstraintContainer the_constraint_container) throws ConstraintException
AttributeContainer
remove
in interface AttributeContainer
the_attribute_identifier
- the_constraint_container
-
ConstraintException
public void remove(AttributeTypeIdentifier the_attribute_type_identifier, ConstraintContainer the_constraint_container) throws ConstraintException
AttributeContainer
remove
in interface AttributeContainer
the_attribute_type_identifier
- the_constraint_container
-
ConstraintException
public AttributeTypeSummary getAttributeTypeSummary(AttributeTypeIdentifier the_attribute_type_identifier, ConstraintContainer the_constraint_container, DescriptorContainer the_descriptor_container)
AttributeContainer
getAttributeTypeSummary
in interface AttributeContainer
the_attribute_type_identifier
- the_constraint_container
- the_descriptor_container
-
public AttributeTypeSummary getAttributeTypeSummary(AssociationIdentifier the_association_identifier, AttributeTypeIdentifier the_attribute_type_identifier, boolean is_absolute)
AttributeContainer
getAttributeTypeSummary
in interface AttributeContainer
the_association_identifier
- the_attribute_type_identifier
- is_absolute
-
public AttributeTypeSummary getAttributeTypeSummary(AssociationIdentifier the_association_identifier, AttributeTypeIdentifier the_attribute_type_identifier, boolean is_absolute, ConstraintContainer the_constraint_container, DescriptorContainer the_descriptor_container)
AttributeContainer
getAttributeTypeSummary
in interface AttributeContainer
the_association_identifier
- the_attribute_type_identifier
- is_absolute
- the_constraint_container
- the_descriptor_container
-
public void acceptChanges()
AttributeContainer
acceptChanges
in interface AttributeContainer
public void setState(AttributeIdentifier the_attribute_identifier, State the_state)
AttributeContainer
setState
in interface AttributeContainer
the_attribute_identifier
- the_state
- public AttributeIdentifier[] getAttributeIdentifiers(TypeInstanceIdentifier the_type_instance_identifier)
AttributeContainer
getAttributeIdentifiers
in interface AttributeContainer
the_type_instance_identifier
-
public AttributeIdentifier[] getAttributeIdentifiers(TypeInstanceIdentifier the_type_instance_identifier, State the_state)
AttributeContainer
getAttributeIdentifiers
in interface AttributeContainer
the_type_instance_identifier
- the_state
-
public void purge(TypeInstanceIdentifier[] the_type_instance_identifiers)
AttributeContainer
purge
in interface AttributeContainer
the_type_instance_identifiers
-
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |