@Api(allMethods=true)
@UserImplemented
public interface Entity
Entity is a representation of an internal layer object (feature, association attribute) as a tree of
objects. Navigation and modification of the tree is possible in a generic way by the provided methods.| Modifier and Type | Method and Description |
|---|---|
Object |
getAttribute(String name)
Gets the specified primitive (or geometry) value.
|
Entity |
getChild(String name)
Returns the child entity of this entity with the specified name (attribute name).
|
EntityCollection |
getChildCollection(String name)
Gets the collection of entities with the specified name.
|
Object |
getId(String name)
Returns the unique identifier value of this entity.
|
void |
setAttribute(String name,
Object value)
Sets the specified primitive (or geometry) attribute value.
|
void |
setChild(String name,
Entity entity)
Sets the child entity with the specified name (attribute name).
|
Object getId(String name) throws LayerException
name - name of the identifier attributeLayerException - oopsEntity getChild(String name) throws LayerException
name - attribute nameLayerException - oopsvoid setChild(String name, Entity entity) throws LayerException
name - attribute nameentity - the new entityLayerException - oopsEntityCollection getChildCollection(String name) throws LayerException
name - attribute nameLayerException - oopsvoid setAttribute(String name, Object value) throws LayerException
name - attribute namevalue - attribute valueLayerException - oopsObject getAttribute(String name) throws LayerException
name - attribute nameLayerException - oopsCopyright © 2015 Geosparc. All Rights Reserved.