|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.infoengine.object.factory.Element
Field Summary | |
private ElementIdentifier |
identifier
|
static String |
IDENTIFIER_KEY
|
private IeNode |
myNode
|
static String |
PERSISTENCE_ID_KEY
|
static String |
SELF_ASSOCIATION_ROLE
|
Constructor Summary | |
Element()
Constructs an empty element. |
|
Element(AttributeContainer container)
Constructs an element that wraps an existing attribute container. |
|
Element(IeNode node)
Constructs an element that wraps an existing IeNode. |
|
Element(String name)
Constructs an element with a name but no initial value. |
|
Element(String name,
Att data)
Constructs an element with a name and initial value. |
|
Element(TypeInstance typeInstance)
Constructs an element from a type instance. |
|
Element(TypeInstanceIdentifier typeInstanceId)
Constructs an instance with a specific type instance identifier. |
Method Summary | |
void |
acceptChanges()
Supported API: false |
void |
acceptDefaultContent()
Changes all attributes with state of DEFAULT to state of NEW. |
void |
addAtt(Att attribute)
Adds an attribute to the element. |
void |
addContentChangedListener(ContentChangedListener listener)
Supported API: false |
void |
addMeta(String name,
byte[] value)
Adds a meta item with a byte array value to the element. |
void |
addMeta(String name,
Date value)
Adds a meta item with a Date value to the element. |
void |
addMeta(String name,
Number value)
Adds a meta item with a Number value to the element. |
void |
addMeta(String name,
String value)
Adds a meta item with a String value to the element. |
void |
addReplacement(ElementIdentifier old_id,
ElementIdentifier new_id)
Supported API: false |
void |
clearReplacements()
Supported API: false |
Object |
clone()
Returns a shallow copy of the element. |
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 |
int |
compareFreshness(Element element)
The compareFreshness() method computes the "freshness distance" between the two objects (the one the method is applied on and the one provided in parameters). |
boolean |
containsMetaValue(String name,
Object value)
Determines whether the element contains a meta item with a specific name and value. |
AttributeContainer[] |
decompose(boolean compact)
Supported API: false |
Element |
deepClone()
Returns a deep copy of the element. |
boolean |
equals(Object object)
Indicates whether some other object is "equal to" this one. |
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)
Returns the content associated with a specific attribute identifier. |
Object |
get(AttributeTypeIdentifier attrTypeId)
Returns the content associated with a specific attribute type identifier. |
AssociationIdentifier[] |
getAssociationIdentifiers(TypeIdentifier typeId)
Returns all Attribute Identifiers that match a specific attribute type identifier as the context from this container. |
AssociationIdentifier[] |
getAssociationIdentifiers(TypeIdentifier typeId,
State state)
Returns all Attribute Identifiers that match a specific attribute 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. |
Att |
getAtt(AttributeTypeIdentifier attrTypeId)
Returns an attribute by attribute type identifier. |
Att |
getAtt(String name)
Returns an attribute by name. |
Att |
getAttByMeta(String name,
Object value)
Returns the attribute containing a specific metadata name and value. |
AttributeContainer |
getAttributeContainer()
Gets the attribute container associated with the instance. |
AttributeIdentifier[] |
getAttributeIdentifiers()
Returns all AttributeIdentifiers from this container. |
AttributeIdentifier[] |
getAttributeIdentifiers(AssociationIdentifier associationId)
Returns all AttributeIdentifiers that a specific association 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 matching this container's attribute type identifier. |
AttributeIdentifier[] |
getAttributeIdentifiers(AttributeTypeIdentifier attrTypeId,
State state)
Returns all AttributeIdentifiers that match this state and attribute type from this container. |
AttributeIdentifier[] |
getAttributeIdentifiers(State state)
Returns all AttributeIdentifiers that match this state from this container. |
AttributeIdentifier[] |
getAttributeIdentifiers(String logicalForm)
Returns all AttributeIdentifiers from this container that are associated with a specific logical identifier. |
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 unique AttributeTypeIdentifiers from this container that are associated with a specific logical identifier. |
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 attribute type summary for a specific attribute type identifier. |
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 attribute type summary for a specific attribute identified by logical identifier. |
Enumeration |
getAtts()
Returns the Info*Engine attribute objects currently assigned to this element. |
String |
getClassName()
Returns the class name currently assigned to the element. |
ConstraintContainer |
getConstraintContainer()
Returns the constraint container associated with this instance. |
DefinitionDescriptor |
getDescriptor(DefinitionIdentifier defnId)
Returns the descriptor for a specific definition identifier. |
DescriptorContainer |
getDescriptorContainer()
Returns the descriptor container associated with this instance. |
byte[] |
getErrorStream()
Returns the contents of this element's error stream. |
String |
getFti()
Returns the Federation Type Identifier of the object represented by this element, if any. |
ElementIdentifier |
getIdentifier()
Returns the identifier of this object. |
Object |
getInternal(AttributeIdentifier the_attribute_identifier)
Supported API: false |
Object |
getMeta(String name)
Returns the value of a meta item by name. |
Enumeration |
getMetaNames()
Returns the names of all meta items associated with the element. |
Enumeration |
getMetaValues(String name)
Returns all of the values of a meta item associated with the element. |
String |
getMimeType()
Returns the MIME content type currently associated with this element. |
String |
getName()
Returns the name currently assigned to the element. |
IeNode |
getNode()
Returns the element's internal node structure. |
String |
getPersistenceIdentifier()
Returns the persistence identifier associated with the object. |
HashMap |
getReplacements()
Supported API: false |
Object |
getSingle(AttributeTypeIdentifier attrTypeId)
Returns the single content associated with a specific attribute type identifier. |
Object |
getSingle(String logicalForm)
Returns the single content associated with a specific logical attribute identifier. |
State |
getState(AttributeIdentifier attrId)
Returns the state of the content associated with a specific attribute identifier. |
State |
getState(String name)
Returns the state of the value of an attribute that is retrieved by name, ignoring the case of the characters in the name. |
State |
getStateAt(String name,
int index)
Returns the state of a value at a specific index position of a multivalued attribute that is retrieved by name, ignoring the case of the characters in the name. |
byte[] |
getStream()
Returns the contents of this element's stream. |
String |
getUfid()
Returns the Unique Federation Identifier of the object represented by this element, if any. |
Object |
getValue(AttributeIdentifier attrId)
Returns the value of an attribute that is retrieved by attribute identifier. |
Object |
getValue(String name)
Returns the value of an attribute that is retrieved by name, ignoring the case of the characters in the name. |
Object |
getValueAt(String name,
int index)
Returns the value at a specific index position of a multivalued attribute that is retrieved by name, ignoring the case of the characters in the name. |
int |
getValueCount(String name)
Returns the number of values contained in a possibly multivalued attribute that is identified by name, ignoring the case of the characters in the name. |
Vector |
getValues(String name)
Returns all of the values associated with an attribute that is retrieved by name. |
Vector |
getValues(String name,
boolean ignoreCase)
Deprecated. Use one-argument signature instead. |
Vector |
getValuesIc(String name)
Deprecated. Use getValues instead. |
int |
hashCode()
Returns a hash code value for the object. |
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 |
isDefinitionEquivalent(Element element)
This method will return true when this com.ptc.core.meta.common.Element instance and the element passed from parameter have the same Definition. |
boolean |
isDirty()
Returns true if any attributes have been modified, added, or removed. |
boolean |
isInitialized()
This method will return true when this object is initialized. |
boolean |
isInstanceOf(Definition definition)
This method will return true when this com.ptc.core.meta.common.Element instance is an instance of the definition passed from the parameter. |
private boolean |
isSelfAssociation(AttributeTypeIdentifier attrTypeId)
|
void |
merge(AttributeContainer container)
Combines the content of a specific attribute container with the contents of this container. |
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 |
protected static IeNode |
newStructure()
Builds a new element structure with no initial name or value. |
protected static IeNode |
newStructure(String name)
Builds a new element structure with a specific name and no initial value. |
protected static IeNode |
newStructure(String name,
Att attribute)
Builds a new element structure with a specific name and value. |
void |
printTree()
Prints the structure of the element to System.out. |
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 content with attribute types not included in a specific set of attribute types. |
void |
purgeAllContent()
Removes all content from the type instance. |
void |
purgeDefaultContent()
Removes all content that is considered DEFAULT. |
void |
purgeDuplicateContent()
Supported API: false |
void |
purgeNonDirtyContent()
Removes all content with state of DEFAULT, UNCHANGED, or UNINITIALIZED. |
AttributeIdentifier |
put(AttributeIdentifier attrId,
Object content)
Stores content in the attribute container for a specific attribute identifier. |
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 |
remove(AttributeIdentifier attrId)
Removes a specific attribute identifier and its 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 Attribute Identifiers and their content that have a specific attribute type identifier. |
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 |
removeAtt(Att attribute)
Removes a specific attribute from the element. |
void |
removeAtt(String name)
Removes a specific attribute from the element by name. |
void |
removeAtts()
Remove all attributes from the element. |
void |
removeContentChangedListener(ContentChangedListener listener)
Supported API: false |
void |
removeMeta(String name)
Removes a meta item from the element. |
void |
removeMetaValue(String name,
Object value)
Removes a specific value of a meta item from the element. |
void |
replace(TypeInstanceIdentifier old_id,
TypeInstanceIdentifier new_id)
Supported API: false |
void |
replaceContent(AttributeContainer newContent)
Establishes specific content as the content of the type instance. |
void |
setAtt(Att attribute)
Sets the attribute associated with the element. |
void |
setAttributeContainer(AttributeContainer attributeContainer)
Sets the attribute container associated with the instance. |
void |
setClassName(String name)
Sets the element's class name. |
void |
setConstraintContainer(ConstraintContainer container)
Sets the constraint container for this instance. |
void |
setDescriptorContainer(DescriptorContainer container)
Sets the descriptor container for this instance. |
void |
setErrorStream(byte[] data)
Sets this element's error stream to the contents of a byte array. |
void |
setFti(String fti)
Sets the Federated Type Identifier of the object represented by this element. |
void |
setIdentifier(ElementIdentifier identifier)
Sets the identifier of this object. |
void |
setIdentifier(String typeName,
String ufid)
Sets the type instance identifier associated with this element. |
void |
setIdentifier(TypeInstanceIdentifier typeInstanceId)
Sets the type instance identifier associated with this element. |
void |
setMeta(String name,
byte[] value)
Sets a meta item with a byte array value in the element. |
void |
setMeta(String name,
Date value)
Sets a meta item with a Date value in the element. |
void |
setMeta(String name,
Number value)
Sets a meta item with a Number value in the element. |
void |
setMeta(String name,
String value)
Sets a meta item with a String value in the element. |
void |
setMimeType(String contentType)
Sets this element's MIME content type. |
void |
setName(String name)
Sets the element's name. |
protected void |
setNode(IeNode node)
Sets the element's internal node structure. |
void |
setPersistenceIdentifier(String persistenceId)
Sets the persistence identifier associated with the object. |
void |
setState(AttributeIdentifier the_attribute_identifier,
State the_state)
Sets the state associated with the given AttributeIdentifier in this container. |
void |
setStream(byte[] data)
Sets this element's stream to the contents of a byte array. |
void |
setStream(File file)
Sets this element's stream to the contents of a file. |
void |
setStream(String data)
Sets this element's stream to the contents of a string. |
void |
setUfid(String ufid)
Sets the Unique Federation Identifier of the object represented by this element. |
String |
toString()
|
void |
toXML(PrintWriter output)
Writes an XML representation of the element to a PrintWriter. |
void |
toXML(PrintWriter output,
boolean includeMeta)
Writes an XML representation of the element to a PrintWriter. |
Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
public static final String IDENTIFIER_KEY
public static final String PERSISTENCE_ID_KEY
private ElementIdentifier identifier
private IeNode myNode
public static final String SELF_ASSOCIATION_ROLE
Constructor Detail |
public Element()
public Element(String name, Att data)
name
- The name to be assigned to the element.data
- The initial value of the element.public Element(String name)
name
- The name to be assigned to the element.public Element(IeNode node)
node
- The IeNode object to be wrapped.public Element(AttributeContainer container)
container
- The attribute container to be wrapped.public Element(TypeInstance typeInstance)
typeInstance
- The type instance from which to construct
the element.public Element(TypeInstanceIdentifier typeInstanceId)
typeInstanceId
- The type instance identifier.Method Detail |
public void setIdentifier(String typeName, String ufid)
typeName
- The name of the type or class of the object
represented by this element.ufid
- The Unique Federation Identifier of the object represented
by this element.public void setIdentifier(TypeInstanceIdentifier typeInstanceId)
typeInstanceId
- The new type instance identifierpublic String getUfid()
public void setUfid(String ufid)
ufid
- The new UFID.public String getFti()
public void setFti(String fti)
fti
- The new FTI.public void toXML(PrintWriter output)
output
- The PrintWriter on which to write the XML representation
of the element.public void toXML(PrintWriter output, boolean includeMeta)
output
- The PrintWriter on which to write the XML representation
of the element.includeMeta
- Specify true to include meta-information in the XML
representation.public void printTree()
public Object clone()
clone
in interface AttributeContainer
public Element deepClone()
public String getName()
public void setName(String name)
name
- The element's new name.public String getClassName()
public void setClassName(String name)
name
- The element's new class name.public void setStream(byte[] data)
data
- The byte array that becomes the contents of the stream.public void setStream(String data)
data
- The string that becomes the contents of the stream.public void setStream(File file) throws IOException
file
- The file that becomes the contents of the stream.
IOException
public byte[] getStream()
public void setErrorStream(byte[] data)
data
- The byte array that becomes the contents of the error
stream.public byte[] getErrorStream()
public void setMimeType(String contentType)
contentType
- The MIME content type to associate with this
element.public String getMimeType()
public Enumeration getAtts()
public Att getAtt(String name)
name
- The name of the attribute to be returned.
public Att getAtt(AttributeTypeIdentifier attrTypeId)
attrTypeId
- The attribute type identifier of the attribute
to be returned.
public Att getAttByMeta(String name, Object value)
name
- The name of the metadata.value
- The value of the metadata.
public Object getValue(String name)
name
- The name of the attribute.
public Object getValueAt(String name, int index)
name
- The name of the attribute.index
- The index of the value to retrieve.
public int getValueCount(String name)
name
- The name of the attribute.
public Object getValue(AttributeIdentifier attrId)
attrId
- The attribute identifier.
public Vector getValuesIc(String name)
name
- The name of the attribute.
public Vector getValues(String name)
name
- The name of the attribute.
public Vector getValues(String name, boolean ignoreCase)
name
- The name of the attribute.ignoreCase
- true if attribute name should be matched by
comparing in a way that is not case sensitive
public void setAtt(Att attribute)
attribute
- The new attribute to be associated with the element.public void addAtt(Att attribute)
attribute
- The attribute to be added to the element.public void removeAtt(Att attribute)
attribute
- The attribute to be removed.public void removeAtt(String name)
name
- The name of the attribute to be removed.public void removeAtts()
public boolean containsMetaValue(String name, Object value)
name
- The name of the meta.value
- The value of the meta.
public Enumeration getMetaNames()
public Enumeration getMetaValues(String name)
name
- The name of the meta item.
public Object getMeta(String name)
name
- The name of the meta item to be returned.
public void addMeta(String name, String value)
name
- the name of the meta item.value
- the value of the meta item.public void setMeta(String name, String value)
name
- The name of the meta item.value
- The value of the meta item.public void addMeta(String name, Date value)
name
- the name of the meta item.value
- the value of the meta item.public void setMeta(String name, Date value)
name
- The name of the meta item.value
- The value of the meta item.public void addMeta(String name, Number value)
name
- the name of the meta item.value
- the value of the meta item.public void setMeta(String name, Number value)
name
- The name of the meta item.value
- The value of the meta item.public void addMeta(String name, byte[] value)
name
- the name of the meta item.value
- the value of the meta item.public void setMeta(String name, byte[] value)
name
- The name of the meta item.value
- The value of the meta item.public void removeMeta(String name)
name
- The name of the meta item to remove.public void removeMetaValue(String name, Object value)
name
- The name of the meta item containing the value to remove.value
- The value to be removed.protected static IeNode newStructure(String name, Att attribute)
name
- The name of the new element.attribute
- The value of the new element.
protected static IeNode newStructure(String name)
name
- The name of the new element.
protected static IeNode newStructure()
public IeNode getNode()
protected void setNode(IeNode node)
node
- The new internal IeNode object.public AttributeContainer getAttributeContainer()
public void setAttributeContainer(AttributeContainer attributeContainer)
attributeContainer
- The attribute container.public String getPersistenceIdentifier()
getPersistenceIdentifier
in interface TypeInstance
public void setPersistenceIdentifier(String persistenceId)
persistenceId
- The new persistence identifier.public int compareFreshness(Element element) throws ComparisonImpossibleException
compareFreshness
in interface Element
element
- The element to compare against this instance.
ComparisonImpossibleException
- if the two objects are
not capable to be compared.public boolean isInstanceOf(Definition definition)
isInstanceOf
in interface Element
definition
- The definition for which to determine whether this
object is an instance
public boolean isDefinitionEquivalent(Element element)
isDefinitionEquivalent
in interface Element
element
- The instance to compare.
public boolean equals(Object object)
equals
in interface Element
public int hashCode()
hashCode
in interface Element
public boolean isInitialized()
isInitialized
in interface Element
public ElementIdentifier getIdentifier()
getIdentifier
in interface Element
public void setIdentifier(ElementIdentifier identifier)
setIdentifier
in interface Element
identifier
- The new identifier.public AttributeTypeIdentifier[] getAttributeTypeIdentifiers()
getAttributeTypeIdentifiers
in interface AttributeContainer
public AttributeTypeIdentifier[] getAttributeTypeIdentifiers(String logicalForm)
getAttributeTypeIdentifiers
in interface AttributeContainer
logicalForm
- The logical identifier
public AttributeIdentifier[] getAttributeIdentifiers()
getAttributeIdentifiers
in interface AttributeContainer
public AttributeIdentifier[] getAttributeIdentifiers(String logicalForm)
getAttributeIdentifiers
in interface AttributeContainer
logicalForm
- The logical identifier
public AttributeIdentifier[] getAttributeIdentifiers(State state)
getAttributeIdentifiers
in interface AttributeContainer
state
-
public AttributeIdentifier[] getAttributeIdentifiers(AttributeTypeIdentifier attrTypeId)
getAttributeIdentifiers
in interface AttributeContainer
attrTypeId
- The attribute type identifier that identifies
the type for the attribute identifier.
public AttributeIdentifier[] getAttributeIdentifiers(AttributeTypeIdentifier attrTypeId, State state)
getAttributeIdentifiers
in interface AttributeContainer
attrTypeId
- state
-
public AttributeIdentifier[] getAttributeIdentifiers(AssociationIdentifier associationId)
getAttributeIdentifiers
in interface AttributeContainer
associationId
-
public AttributeIdentifier[] getAttributeIdentifiers(AssociationIdentifier associationId, State state)
AttributeContainer
getAttributeIdentifiers
in interface AttributeContainer
associationId
- state
-
public AttributeIdentifier[] getAttributeIdentifiers(AssociationIdentifier associationId, AttributeTypeIdentifier attrTypeId, boolean isAbsolute)
AttributeContainer
getAttributeIdentifiers
in interface AttributeContainer
associationId
- attrTypeId
- isAbsolute
-
public AttributeIdentifier[] getAttributeIdentifiers(AssociationIdentifier associationId, AttributeTypeIdentifier attrTypeId, boolean isAbsolute, State state)
AttributeContainer
getAttributeIdentifiers
in interface AttributeContainer
associationId
- attrTypeId
- isAbsolute
- state
-
public AssociationIdentifier[] getAssociationIdentifiers(TypeInstanceIdentifier typeInstanceId)
AttributeContainer
getAssociationIdentifiers
in interface AttributeContainer
typeInstanceId
-
public AssociationIdentifier[] getAssociationIdentifiers(TypeInstanceIdentifier typeInstanceId, State state)
AttributeContainer
getAssociationIdentifiers
in interface AttributeContainer
typeInstanceId
- state
-
public AssociationIdentifier[] getAssociationIdentifiers(TypeIdentifier typeId)
getAssociationIdentifiers
in interface AttributeContainer
typeId
-
public AssociationIdentifier[] getAssociationIdentifiers(TypeIdentifier typeId, State state)
getAssociationIdentifiers
in interface AttributeContainer
typeId
- state
-
public Object get(AttributeIdentifier attrId)
get
in interface AttributeContainer
attrId
- The identifier of the attribute to be returned.
public Object get(AttributeTypeIdentifier attrTypeId)
get
in interface AttributeContainer
attrTypeId
- The identifier of the attribute type to be returned.
public Object getSingle(AttributeTypeIdentifier attrTypeId)
getSingle
in interface AttributeContainer
attrTypeId
- The identifier of the attribute to be returned.
public Object getSingle(String logicalForm)
getSingle
in interface AttributeContainer
logicalForm
- The logical identifier of the attribute to
be returned.
public AttributeIdentifier put(AttributeIdentifier attrId, Object content) throws IllegalContentException, ConstraintException
put
in interface AttributeContainer
attrId
- The identifier of the attribute.content
- The value of the attribute.
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 of the attrributes
to be removed
ConstraintException
public DefinitionDescriptor getDescriptor(DefinitionIdentifier defnId)
getDescriptor
in interface AttributeContainer
defnId
- The identifier of the descriptor to be returned.
public AttributeTypeSummary getAttributeTypeSummary(AttributeTypeIdentifier attrTypeId)
getAttributeTypeSummary
in interface AttributeContainer
attrTypeId
- The attribute type identifier for which to retrieve
a summary.
public AttributeTypeSummary getAttributeTypeSummary(String name)
name
- The attribute name for which to retrieve a summary.
public boolean isDirty()
isDirty
in interface AttributeContainer
public boolean isContentOfState(AttributeIdentifier attrId, State state)
isContentOfState
in interface AttributeContainer
attrId
- The identifier of the attribute to be tested.state
- The state to test the attribute against.
public State getState(AttributeIdentifier attrId)
getState
in interface AttributeContainer
attrId
- The identifier of the attribute for which to return state.
public State getState(String name)
name
- The name of the attribute.
public State getStateAt(String name, int index)
name
- The name of the attribute.index
- The index of the value for which to retrieve state.
public void acceptDefaultContent()
acceptDefaultContent
in interface AttributeContainer
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 whose contents will be combined with
the contents of 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[] extract(TypeIdentifier typeId, boolean navigate)
AttributeContainer
extract
in interface AttributeContainer
typeId
- 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 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(TypeInstanceIdentifier typeInstanceId, TypeInstanceIdentifier[] preserve)
AttributeContainer
purge
in interface AttributeContainer
typeInstanceId
- preserve
- public void purge(TypeIdentifier typeId)
AttributeContainer
purge
in interface AttributeContainer
typeId
- 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()
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)
replaceContent
in interface AttributeContainer
newContent
- The new content.public void addContentChangedListener(ContentChangedListener listener)
AttributeContainer
addContentChangedListener
in interface AttributeContainer
listener
- public void removeContentChangedListener(ContentChangedListener listener)
AttributeContainer
removeContentChangedListener
in interface AttributeContainer
listener
- public AttributeContainer[] decompose(boolean compact)
AttributeContainer
decompose
in interface AttributeContainer
compact
-
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.private boolean isSelfAssociation(AttributeTypeIdentifier attrTypeId)
public String toString()
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 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 |