public static class AttributeMetaData.MetaDataElement
extends java.lang.Object
implements java.io.Serializable
equals(Object)
and hashCode() are implemented to only consider
getEntityType() and getName().| Constructor and Description |
|---|
MetaDataElement(EntityType entityType,
java.lang.String name,
DataType dataType,
int sizeHint,
java.lang.String omExt,
java.lang.String mappedTo,
boolean imported,
boolean isReadOnly)
Constructs a new
MetaDataElement for the given entity type,
attribute name and data type. |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj) |
DataType |
getDataType()
Returns the date type of the attribute.
|
EntityType |
getEntityType()
Returns the entity type this attribute belongs to.
|
SerialisablePair<java.lang.String,java.lang.String> |
getMappedTo()
Gets the name of the org model extension and the name of the attribute to
which this attribute is mapped to.
|
java.lang.String |
getName()
Returns the the name of the attribute.
|
int |
getSizeHint()
Returns the desired size (only for STRING attributes).
|
int |
hashCode() |
boolean |
isImported()
Returns whether the value of a mapped attribute is imported into the OM.
|
boolean |
isMandatory()
Returns whether the attribute is mandatory within the entity type.
|
boolean |
isReadOnly()
Returns whether the attribute is read-only within the entity type.
|
public MetaDataElement(EntityType entityType, java.lang.String name, DataType dataType, int sizeHint, java.lang.String omExt, java.lang.String mappedTo, boolean imported, boolean isReadOnly)
MetaDataElement for the given entity type,
attribute name and data type.entityType - the entity type this attribute belongs toname - the name of the attributedataType - the data type of the attributesizeHint - the desired size (only for STRING attributes)omExt - The name of the org model extension if this OM attribute is
mapped to an atrtibute of an org model extension,
null otherwise.mappedTo - The name of the attribute of an org model extension if
this OM attribute is mapped to one, null otherwise.imported - isReadOnly - whetherpublic EntityType getEntityType()
public java.lang.String getName()
public DataType getDataType()
public int getSizeHint()
public SerialisablePair<java.lang.String,java.lang.String> getMappedTo()
null will be returned.null will be
returned.public boolean isImported()
public boolean isMandatory()
public boolean isReadOnly()
public boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Object