public class AttributeMetaData extends java.lang.Object implements java.lang.Iterable<AttributeMetaData.MetaDataElement>, java.io.Serializable
AttributeMetaData is a simple immutable container class for
AttributeMetaData.MetaDataElement-objects, supposed to conveniently hold all available
meta information about the attributes of one entity type.| Modifier and Type | Class and Description |
|---|---|
static class |
AttributeMetaData.MetaDataElement
Used to hold information about a single attribute.
|
| Constructor and Description |
|---|
AttributeMetaData(AttributeMetaData.MetaDataElement[] metaDataElements)
Constructs a new
AttributeMetaData-object containing the given
AttributeMetaData.MetaDataElements. |
| Modifier and Type | Method and Description |
|---|---|
AttributeMetaData.MetaDataElement |
get(int index)
Returns the
AttributeMetaData.MetaDataElement at the given index. |
AttributeMetaData.MetaDataElement |
get(java.lang.String attrName)
Returns the
AttributeMetaData.MetaDataElement for the given attribute name or
null if none is contained for this attribute name. |
int |
getCount()
Returns the number of
AttributeMetaData.MetaDataElements held by this container. |
java.lang.String[] |
getNames()
Returns the names of all attributes in a new array.
|
java.util.Iterator<AttributeMetaData.MetaDataElement> |
iterator() |
AttributeMetaData.MetaDataElement[] |
toArray()
Returns an array containing all
AttributeMetaData.MetaDataElements. |
public AttributeMetaData(AttributeMetaData.MetaDataElement[] metaDataElements)
AttributeMetaData-object containing the given
AttributeMetaData.MetaDataElements.metaDataElements - the AttributeMetaData.MetaDataElements this container should
holdpublic java.lang.String[] getNames()
public int getCount()
AttributeMetaData.MetaDataElements held by this container.AttributeMetaData.MetaDataElements held by this containerpublic AttributeMetaData.MetaDataElement get(int index)
AttributeMetaData.MetaDataElement at the given index.index - the index for which the AttributeMetaData.MetaDataElement should be
returnedAttributeMetaData.MetaDataElement at the given indexpublic AttributeMetaData.MetaDataElement get(java.lang.String attrName)
AttributeMetaData.MetaDataElement for the given attribute name or
null if none is contained for this attribute name.attrName - the attribute name for which the AttributeMetaData.MetaDataElement
should be returnedAttributeMetaData.MetaDataElement for the given attribute name or
null if none is contained for this attribute namepublic AttributeMetaData.MetaDataElement[] toArray()
AttributeMetaData.MetaDataElements.AttributeMetaData.MetaDataElementspublic java.util.Iterator<AttributeMetaData.MetaDataElement> iterator()
iterator in interface java.lang.Iterable<AttributeMetaData.MetaDataElement>