|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.metamatrix.api.core.xmi.EntityInfo
public class EntityInfo
Represents the minimal information required for XMI entities. This class is used when reading in XMI files to manage the identification information for an entity.
The XMI processor is designed to hide as much as possible the semantics of XMI by simply constructing
FeatureInfo
and EntityInfo
instances as an XMI stream is processed. These info classes are
thus similar to SAX events of a SAX XML document parser.
Constructor Summary | |
---|---|
EntityInfo(FeatureInfo ownerFeature,
java.lang.String metaClassName)
Construct a new instance of the EntityInfo using the metamodel entity's name. |
|
EntityInfo(FeatureInfo ownerFeature,
java.lang.String metaClassName,
java.lang.String uri)
Construct a new instance of the EntityInfo using the metamodel entity's name and URI. |
Method Summary | |
---|---|
org.xml.sax.Attributes |
getAttributes()
|
java.lang.String |
getHref()
Gets the href. |
java.lang.String |
getID()
Get the value of the XMI ID. |
java.lang.String |
getIDRef()
Gets the idRef. |
java.lang.String |
getLabel()
Gets the label. |
java.lang.String |
getMetaClassName()
Gets the metaModelEntityName. |
java.lang.String |
getMetaModelURI()
Get the URI of the namespace for the metamodel. |
java.lang.String |
getName()
Get the name of the metamodel entity without its metamodel namespace prefix. |
FeatureInfo |
getOwnerFeatureInfo()
Gets the FeatureInfo for the feature on the entity that contains this entity (e.g., this entity's parent entity). |
java.lang.String |
getParentId()
Accessor for the parentId field... |
java.lang.String |
getQMetaClassName()
Gets the qMetaModelEntityName. |
java.lang.String |
getUUID()
Gets the uuid. |
void |
setAttributes(org.xml.sax.Attributes attributes)
|
void |
setHref(java.lang.String href)
Sets the href. |
void |
setID(java.lang.String xmiID)
Set the value of the XMI ID. |
void |
setIDRef(java.lang.String entityIDRef)
Sets the entityIDRef. |
void |
setLabel(java.lang.String label)
Sets the label. |
void |
setMetaClassName(java.lang.String metaClassName)
Sets the metaModelEntityName. |
void |
setMetaModelURI(java.lang.String uri)
Set the URI for the namespace for the metamodel. |
void |
setName(java.lang.String name)
Set the name of the metamodel entity. |
void |
setParentId(java.lang.String id)
Setter for ParentId field. |
void |
setQMetaClassName(java.lang.String uri,
java.lang.String metaClassName)
Sets the metaModelEntityName. |
void |
setUUID(java.lang.String uuid)
Sets the uuid. |
java.lang.String |
toString()
Return the string representation for this entity. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public EntityInfo(FeatureInfo ownerFeature, java.lang.String metaClassName)
ownerFeature
- the feature of this entity's owner that describes the ownership; may be null
if there is no ownermetaClassName
- the name (without metamodel namespace prefix) of the metamodel entity;
may not be null or zero-lengthpublic EntityInfo(FeatureInfo ownerFeature, java.lang.String metaClassName, java.lang.String uri)
ownerFeature
- the feature of this entity's owner that describes the ownership; may be null
if there is no ownermetaClassName
- the name (without metamodel namespace prefix) of the metamodel entity;
may not be null or zero-lengthuri
- the URI of the metamodel namespace; may be null or zero-length,
which means the metaClassName must unambigously identify a single metaclass within
one of the metamodels defined in the header.
java.lang.IllegalArgumentException
- if the supplied name is null or zero-lengthMethod Detail |
---|
public java.lang.String getMetaClassName()
public java.lang.String getParentId()
public void setParentId(java.lang.String id)
id
- public java.lang.String getQMetaClassName()
public void setQMetaClassName(java.lang.String uri, java.lang.String metaClassName)
uri
- of the metamodel, may not be null or zero-lengthmetaClassName
- the name (without metamodel namespace prefix) of the metamodel entity;
may not be null or zero-length
java.lang.IllegalArgumentException
- if the supplied name is null or zero-lengthpublic void setMetaClassName(java.lang.String metaClassName)
metaClassName
- the name (without metamodel namespace prefix) of the metamodel entity;
may not be null or zero-length
java.lang.IllegalArgumentException
- if the supplied name is null or zero-lengthpublic java.lang.String getName()
public void setName(java.lang.String name)
name
- the metamodel entity name (without metamodel namespace prefix); may be null or zero-lengthpublic java.lang.String getMetaModelURI()
public void setMetaModelURI(java.lang.String uri)
uri
- the URI of the metamodel namespace; may be null or zero-length,
which means the metaClassName must unambigously identify a single metaclass within
one of the metamodels defined in the header.public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.String getID()
public void setID(java.lang.String xmiID)
xmiID
- the string ID for this entity; may be null or zero-lengthpublic java.lang.String getUUID()
public void setUUID(java.lang.String uuid)
uuid
- The uuid to set; may be null or zero-lengthpublic java.lang.String getHref()
public void setHref(java.lang.String href)
href
- The href to set; may be null or zero-lengthpublic java.lang.String getLabel()
public void setLabel(java.lang.String label)
label
- The label to set; may be null or zero-lengthpublic java.lang.String getIDRef()
public void setIDRef(java.lang.String entityIDRef)
entityIDRef
- The entityIDRef to set; may be null or zero-lengthpublic FeatureInfo getOwnerFeatureInfo()
public org.xml.sax.Attributes getAttributes()
public void setAttributes(org.xml.sax.Attributes attributes)
attributes
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |