public class ERMEntity
extends java.lang.Object
implements java.io.Serializable
Constructor and Description |
---|
ERMEntity() |
Modifier and Type | Method and Description |
---|---|
ERMAttribute |
addAttribute(ERMAttribute attribute)
Adds and ERMAttribute the the entity's attribute list.
|
void |
addChildEntity(java.lang.String name,
ERMEntity entity)
This method adds a related entity (child) entity to this entity with a specified name.
|
void |
cleanup() |
ERMAttribute |
getAttribute(java.lang.String attributeName)
Returns the ERMAttribute associated with the passed in Attribute
|
java.util.Collection<ERMAttribute> |
getAttributes()
Returns an unmodifiable collection of ERMAttributes for this Entity.
|
java.util.Collection<ERMEntity> |
getChildEntities()
Returns a list of all child Entities to this entity.
|
ERMEntity |
getChildEntity(java.lang.String name)
Returns the child entity by name.
|
java.lang.String |
getName()
Returns the name of this Entity.
|
ERMEntity |
getParentEntity()
Returns the parent ERMEntity for this entity
|
ERMEntity |
getRelatedEntity(java.lang.String relationship)
Returns the child entity whose Mbo relationship is the same as the relationship passed in.
|
void |
setName(java.lang.String name)
Sets the name of the entity
|
public java.util.Collection<ERMAttribute> getAttributes()
public ERMAttribute getAttribute(java.lang.String attributeName)
attributeName
- public ERMAttribute addAttribute(ERMAttribute attribute)
attribute
- The ERMAttribute to add to the listpublic java.util.Collection<ERMEntity> getChildEntities()
public void addChildEntity(java.lang.String name, ERMEntity entity)
name
- The name of the child entityentity
- The child ERMEntity to add to this entitypublic ERMEntity getChildEntity(java.lang.String name)
name
- The name of the child entity you are looking forpublic ERMEntity getRelatedEntity(java.lang.String relationship)
relationship
- The mbo relationship of the child entity you are looking forpublic java.lang.String getName()
public void setName(java.lang.String name)
name
- the name of the entitypublic ERMEntity getParentEntity()
public void cleanup()