com.micello.mapapi.data
Class Entity

java.lang.Object
  extended by com.micello.mapapi.data.Entity
All Implemented Interfaces:
InfoObject

public class Entity
extends java.lang.Object
implements InfoObject

This class encapsulates an Entity object.


Nested Class Summary
 
Nested classes/interfaces inherited from interface com.micello.mapapi.data.InfoObject
InfoObject.InfoObjectType, InfoObject.StandardDetailInfo
 
Field Summary
 
Fields inherited from interface com.micello.mapapi.data.InfoObject
DETAIL_CUSTOM, DETAIL_HTML, DETAIL_NONE, DETAIL_STANDARD, DETAIL_SUPPRESS, DETAIL_URL_HTML, DETAIL_URL_VALUES, DETAIL_VALUE_LIST
 
Constructor Summary
Entity()
           
 
Method Summary
 java.util.List<EntityAddress> getAddressList()
          This method returns the addresses for this Entity.
 java.lang.Object getDetailObject()
          This method returns the detail object for the entity.
 int getDetailType()
          This method returns the detail type for the entity.
 int getId()
          This method returns the entity ID.
 java.lang.String getName()
          This method returns the text name for an entity.
 MStyle getOverrideStyle()
          This method returns the override style for the entity, if there is onw.
 java.lang.String getStyleName()
          This returns the style name for the entity.
static Entity load(JSONObject json)
          This method loads the geometry from a JSON object.
 java.lang.String toString()
          This method returns a display string for the entity.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Entity

public Entity()
Method Detail

toString

public java.lang.String toString()
This method returns a display string for the entity.

Overrides:
toString in class java.lang.Object

getId

public int getId()
This method returns the entity ID.


getAddressList

public java.util.List<EntityAddress> getAddressList()
This method returns the addresses for this Entity.


getStyleName

public java.lang.String getStyleName()
This returns the style name for the entity.


getOverrideStyle

public MStyle getOverrideStyle()
This method returns the override style for the entity, if there is onw.


getDetailType

public int getDetailType()
This method returns the detail type for the entity.

Specified by:
getDetailType in interface InfoObject
Returns:
An integer describing the detail type. See the constants defined for this interface.

getDetailObject

public java.lang.Object getDetailObject()
This method returns the detail object for the entity. The type of object can be determined using getDetailType;

Specified by:
getDetailObject in interface InfoObject

getName

public java.lang.String getName()
This method returns the text name for an entity.

Specified by:
getName in interface InfoObject

load

public static Entity load(JSONObject json)
                   throws java.lang.Exception
This method loads the geometry from a JSON object.

Throws:
java.lang.Exception