|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.metamatrix.api.core.xmi.FeatureInfo
public class FeatureInfo
Class for managing information during the creation of Features. An instance of this class represents
a particular feature and (optiona) value on an owner object
.
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 | |
---|---|
FeatureInfo(EntityInfo ownerEntity,
java.lang.String featureName,
java.lang.String metaClassName,
java.lang.String uri)
Construct a new instance of the FeatureInfo using the feature name, metamodel entity's name and metamodel URI. |
Method Summary | |
---|---|
java.lang.String |
getMetaClassName()
Get the name of the metaclass to which this feature applies. |
java.lang.String |
getMetaModelURI()
Get the URI of the namespace for the metamodel. |
java.lang.String |
getName()
Get the name of the feature. |
EntityInfo |
getOwnerEntityInfo()
Gets the EntityInfo for the feature on the entity that contains this entity. |
java.lang.Object |
getValue()
Get the value of the feature |
void |
setMetaClassName(java.lang.String metaClassName)
Set the name of the metaclass to which this feature applies. |
void |
setMetaModelURI(java.lang.String uri)
Set the URI for the namespace for the metamodel. |
void |
setName(java.lang.String featureName)
Set the name of the feature. |
void |
setValue(java.lang.Object value)
Set the value of the feature |
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 FeatureInfo(EntityInfo ownerEntity, java.lang.String featureName, java.lang.String metaClassName, java.lang.String uri)
ownerEntity
- the EntityInfo for the entity on which this feature exists; may not be nullfeatureName
- the name of the featuremetaClassName
- the name (without metamodel namespace prefix) of the metamodel entity
to which this feature applies; 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-length, feature
name is null or zero-length, or the ownerEntity reference is nullMethod Detail |
---|
public java.lang.String getName()
public void setName(java.lang.String featureName)
featureName
- The name of the featurepublic java.lang.String getMetaClassName()
public 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 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.Object getValue()
public void setValue(java.lang.Object value)
value
- The value to setpublic EntityInfo getOwnerEntityInfo()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |