| java.lang.Object org.cougaar.community.EntityImpl
All known Subclasses: org.cougaar.community.AgentImpl, org.cougaar.community.CommunityImpl,
EntityImpl | public EntityImpl(String name)(Code) | | Constructor.
Parameters: name - Name of new Entity |
EntityImpl | public EntityImpl(String name, Attributes attrs)(Code) | | Constructor.
Parameters: name - Name of new Entity Parameters: attrs - Initial attributes |
attrsToString | public static String attrsToString(Attributes attrs)(Code) | | Creates a string representation of an Attribute set.
Parameters: attrs - Attributes String representation of attributes |
attrsToString | public static String attrsToString(Attributes attrs, String indent)(Code) | | Creates a string representation of an Attribute set.
Parameters: attrs - Attributes Parameters: indent - Indentation for pretty printing String representation of attributes |
attrsToString | public String attrsToString()(Code) | | Creates a string representation of an Attribute set.
String representation of attributes |
getAttributes | public Attributes getAttributes()(Code) | | Get entity attributes.
Entity attributes |
getName | public String getName()(Code) | | Get entity name.
Entity name |
hashCode | public int hashCode()(Code) | | |
setAttributes | public void setAttributes(Attributes attrs)(Code) | | Set entity attributes.
Parameters: attrs - Entity attributes |
setName | public void setName(String name)(Code) | | Set entity name.
Parameters: name - Entity name |
toString | public String toString()(Code) | | Returns name of entity.
entity name |
toXml | public String toXml()(Code) | | Returns an XML representation of entity.
XML representation of entity |
toXml | public String toXml(String indent)(Code) | | Returns an XML representation of Entity.
Parameters: indent - Blank string used to pad beginning of entry to controlindentation formatting XML representation of entity |
|
|