public final class EntityDefinition
extends java.lang.Object
Constructor and Description |
---|
EntityDefinition(java.lang.String entityType) |
Modifier and Type | Method and Description |
---|---|
void |
addAttribute(AttributeDefinition def) |
void |
addChildEntity(AttributeDefinition def) |
void |
addContainedEntity(java.lang.String entityType)
Add an entity type to the set of entity types that can be contained in this container.
|
void |
addControlAttribute(ControlAttributeDefinition def) |
void |
AttachMetadata(java.util.Map metaAttachment) |
java.util.Map |
getAttachedMetadata()
Get all attached metadata
|
java.util.Map |
getAttachedMetadata(java.lang.String category)
Get all attached metadata of a specific category
|
AttributeDefinition |
getAttributeDefinition(java.lang.String attrName)
Get the attribute definition of a specific attribute
|
java.util.HashMap |
getAttributeDefinitions()
Get the attribute definitions of all attributes
|
java.lang.String |
getAttributeGroupName(java.lang.String attrName)
Get the attribute group name of a specific attribute
|
java.util.Set |
getAttributeGroupNames()
Get the list of attribute group names
|
java.util.Set |
getAttributeNames()
Get all the attribute names
|
java.util.Set |
getAttributeNames(java.lang.String attrGroupName)
Get all the attribute names of a specific attribute group
|
AttributeDefinition |
getChildEntityAttributeDefinition(java.lang.String ceName)
Get child entity attribute definition of a specific child entity
|
java.util.HashMap |
getChildEntityAttributeDefinitions()
Get all child entity attribute definitions
|
java.util.Set |
getChildEntityNames()
Get all child entity names
|
java.util.Set |
getContainedEntities()
Get the set of entity types that can be contained in this container.
|
ControlAttributeDefinition |
getControlAttributeDefinition(java.lang.String attrName)
Get the attribute definition of a specific control attribute
|
java.util.HashMap |
getControlAttributeDefinitions()
Get the attribute definitions of all control attributes
|
java.lang.String |
getEntityType()
Get the entity type
|
java.util.Set |
getMLSAttributeNames()
Get all the MLS attribute names
|
java.util.Set |
getMultiRepresentedAttributeNames()
Get all the MLS attribute names
|
java.util.Set |
getMultiValuedAttributeNames()
Get all the Multi Valued attribute (MVA) names
|
java.util.Set |
getRequiredAttributeNames()
Get all the required attribute names
|
boolean |
isContainer()
Check if it is a container.
|
void |
setContainer(boolean isContainer)
Sets whether or not it is a container.
|
public EntityDefinition(java.lang.String entityType)
entityType
- public java.lang.String getEntityType()
public boolean isContainer()
public void setContainer(boolean isContainer)
isContainer
- public void addControlAttribute(ControlAttributeDefinition def)
def
- public void addAttribute(AttributeDefinition def)
def
- public java.util.Set getAttributeNames()
public java.util.Set getRequiredAttributeNames()
public java.util.Set getChildEntityNames()
public AttributeDefinition getChildEntityAttributeDefinition(java.lang.String ceName)
ceName
- the child entity namepublic java.util.Set getMLSAttributeNames()
public java.util.Set getMultiValuedAttributeNames()
public AttributeDefinition getAttributeDefinition(java.lang.String attrName)
attrName
- attribute namepublic java.util.HashMap getAttributeDefinitions()
public java.util.Map getAttachedMetadata(java.lang.String category)
category
- category namepublic ControlAttributeDefinition getControlAttributeDefinition(java.lang.String attrName)
attrName
- attribute namepublic java.util.HashMap getControlAttributeDefinitions()
public java.util.Set getAttributeNames(java.lang.String attrGroupName)
attrGroupName
- attribute group namepublic java.lang.String getAttributeGroupName(java.lang.String attrName)
attrName
- attribute namepublic java.util.HashMap getChildEntityAttributeDefinitions()
public java.util.Set getAttributeGroupNames()
public java.util.Set getMultiRepresentedAttributeNames()
public java.util.Set getContainedEntities() throws java.lang.UnsupportedOperationException
java.lang.UnsupportedOperationException
- if the entity metadata object does not represents a containerpublic void addContainedEntity(java.lang.String entityType) throws java.lang.UnsupportedOperationException
entityType
- the entity type to be addedjava.lang.UnsupportedOperationException
- if the entity metadata object does not represents a containerpublic void addChildEntity(AttributeDefinition def)
def
- public java.util.Map getAttachedMetadata()
public void AttachMetadata(java.util.Map metaAttachment)
metaAttachment
-