net.cnri.do_api
Class EntityMap.Entity

java.lang.Object
  extended by net.cnri.do_api.EntityMap.Entity
Enclosing class:
EntityMap

public class EntityMap.Entity
extends java.lang.Object


Constructor Summary
EntityMap.Entity()
           
 
Method Summary
 java.lang.String getAttribute(java.lang.String attributeName, java.lang.String defaultVal)
          Gets the value that is associated with the given attribute within this entity or defaultVal if there is no value associated with the given attribute.
 java.lang.String getID()
          Return the identifier (handle) for this entity
 boolean hasID(java.lang.String id)
          Returns true if this entity has the given ID
 void setAttribute(java.lang.String attributeName, java.lang.String attributeVal)
          Sets the value that is associated with the given attribute within this entity
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

EntityMap.Entity

public EntityMap.Entity()
Method Detail

hasID

public boolean hasID(java.lang.String id)
Returns true if this entity has the given ID


getID

public java.lang.String getID()
Return the identifier (handle) for this entity


setAttribute

public void setAttribute(java.lang.String attributeName,
                         java.lang.String attributeVal)
Sets the value that is associated with the given attribute within this entity


getAttribute

public java.lang.String getAttribute(java.lang.String attributeName,
                                     java.lang.String defaultVal)
Gets the value that is associated with the given attribute within this entity or defaultVal if there is no value associated with the given attribute.


toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object