|
Components |
|
| |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
com.sas.entities.EntityAttr
public class EntityAttr
EntityAttr is a helper class that organizes and maintains EntityInterface+AttributeDescriptor name entries for the AggregateEntity. An EntityAttr has the form of:
[name of the EntityInterface].AttributeDescriptor name EntityAttr fooAttr = new EntityAttr("entityOne", "foo") --> [entityOne].foo
AggregateEntity
Constructor Summary | |
---|---|
EntityAttr(EntityInterface entity,
java.lang.String attrName)
Constructor that uses an instance of EntityInterface and an AttributeDescriptor name to create an EntityAttr object. |
|
EntityAttr(java.lang.String entityKey,
java.lang.String attrName)
Constructor that uses an entity key and an AttributeDescriptor name to create an EntityAttr object. |
Method Summary | |
---|---|
boolean |
equals(java.lang.Object value)
Returns a boolean indicating whether the object parameter is equal to the EntityAttr object. |
java.lang.String |
getAttrName()
Returns the name of the EntityAttr. |
EntityInterface |
getEntity()
Returns the Entity associated with the EntityAttr. |
java.lang.String |
getEntityKey()
Returns the entity key of the Entity. |
java.lang.String |
getEntityName()
Returns the name of the Entity associated with the EntityAttr. |
void |
setEntity(EntityInterface entity)
Sets the Entity used to create the EntityAttr. |
void |
setEntityName(java.lang.String entityName)
Sets the Entity name. |
java.lang.String |
toString()
Returns a string representation of the EntityAttr. |
Constructor Detail |
---|
public EntityAttr(EntityInterface entity, java.lang.String attrName)
entity
- instance of EntityInterfaceattrName
- AttributeDescriptor namepublic EntityAttr(java.lang.String entityKey, java.lang.String attrName)
entityKey
- unique identitifer associated with an EntityattrName
- AttributeDescriptor nameEntityKeyInterface
Method Detail |
---|
public boolean equals(java.lang.Object value)
equals
in class java.lang.Object
value
- object to be tested for equality
public java.lang.String getAttrName()
public EntityInterface getEntity()
setEntity(EntityInterface entity)
public java.lang.String getEntityKey()
EntityKeyInterface
public java.lang.String getEntityName()
setEntityName(String entityName)
public void setEntity(EntityInterface entity)
entity
- Entity associated with the EntityAttrgetEntity()
,
EntityInterface
public void setEntityName(java.lang.String entityName)
entityName
- name associated with the EntitygetEntityName()
public java.lang.String toString()
toString
in class java.lang.Object
|
Components |
|
| |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |