public class FeatureRef extends CachedReference<GenericFeature> implements GenericFeature
Wrapper class for use when an IFeature object is or can be included by reference. This enables fetching and instantiating the target object lazily.
Constructor and Description |
---|
FeatureRef() |
FeatureRef(String href) |
Modifier and Type | Method and Description |
---|---|
void |
addName(Code name)
Adds a new name property
|
protected GenericFeature |
fetchTarget(String href) |
Envelope |
getBoundedBy()
Gets the boundedBy property
|
String |
getDescription()
Gets the description property
|
Reference |
getDescriptionReference()
Gets the descriptionReference property
|
String |
getId()
Gets the id property
|
CodeWithAuthority |
getIdentifier()
Gets the identifier property
|
AbstractGeometry |
getLocation()
Gets the location property
|
OgcProperty<AbstractGeometry> |
getLocationProperty()
Gets extra info (name, xlink, etc.) carried by the location property
|
OgcPropertyList<Object> |
getMetaDataPropertyList()
Gets the list of metaDataProperty properties
|
String |
getName() |
List<Code> |
getNameList()
Gets the list of name properties
|
int |
getNumNames()
Returns number of name properties
|
Map<QName,Object> |
getProperties() |
Object |
getProperty(QName qname) |
Object |
getProperty(String name) |
QName |
getQName() |
String |
getType() |
String |
getUniqueIdentifier()
Gets the identifier property
|
boolean |
isSetBoundedBy()
Checks if boundedBy is set
|
boolean |
isSetDescription()
Checks if description is set
|
boolean |
isSetDescriptionReference()
Checks if descriptionReference is set
|
boolean |
isSetIdentifier()
Checks if identifier is set
|
boolean |
isSetLocation()
Checks if location is set
|
void |
setBoundedByAsEnvelope(Envelope boundedBy)
Sets the boundedByAsEnvelope property
|
void |
setDescription(String description)
Sets the description property
|
void |
setDescriptionReference(Reference descriptionReference)
Sets the descriptionReference property
|
void |
setId(String id)
Sets the id property
|
void |
setIdentifier(CodeWithAuthority identifier)
Sets the identifier property
|
void |
setLocation(AbstractGeometry location)
Sets the locationAsAbstractGeometry property
|
void |
setName(String name)
Sets the default name
|
void |
setProperty(QName qname,
Object value) |
void |
setProperty(String name,
Object value) |
void |
setType(String type) |
void |
setUniqueIdentifier(String identifier)
Sets the identifier property
|
getArcRole, getHref, getRole, getTarget, refresh, setArcRole, setHref, setResolver, setRole
public FeatureRef()
public FeatureRef(String href)
protected GenericFeature fetchTarget(String href)
fetchTarget
in class CachedReference<GenericFeature>
public OgcPropertyList<Object> getMetaDataPropertyList()
AbstractGML
getMetaDataPropertyList
in interface AbstractGML
public Envelope getBoundedBy()
AbstractFeature
getBoundedBy
in interface AbstractFeature
public boolean isSetBoundedBy()
AbstractFeature
isSetBoundedBy
in interface AbstractFeature
public String getDescription()
AbstractGML
getDescription
in interface AbstractGML
public void setBoundedByAsEnvelope(Envelope boundedBy)
AbstractFeature
setBoundedByAsEnvelope
in interface AbstractFeature
public boolean isSetDescription()
AbstractGML
isSetDescription
in interface AbstractGML
public AbstractGeometry getLocation()
AbstractFeature
getLocation
in interface AbstractFeature
public void setDescription(String description)
AbstractGML
setDescription
in interface AbstractGML
public QName getQName()
getQName
in interface AbstractFeature
getQName
in interface GenericFeature
public OgcProperty<AbstractGeometry> getLocationProperty()
AbstractFeature
getLocationProperty
in interface AbstractFeature
public Reference getDescriptionReference()
AbstractGML
getDescriptionReference
in interface AbstractGML
public String getType()
getType
in interface GenericFeature
public void setType(String type)
setType
in interface GenericFeature
public Map<QName,Object> getProperties()
getProperties
in interface GenericFeature
public boolean isSetDescriptionReference()
AbstractGML
isSetDescriptionReference
in interface AbstractGML
public Object getProperty(String name)
getProperty
in interface GenericFeature
public boolean isSetLocation()
AbstractFeature
isSetLocation
in interface AbstractFeature
public void setProperty(String name, Object value)
setProperty
in interface GenericFeature
public Object getProperty(QName qname)
getProperty
in interface GenericFeature
public void setLocation(AbstractGeometry location)
AbstractFeature
setLocation
in interface AbstractFeature
public void setDescriptionReference(Reference descriptionReference)
AbstractGML
setDescriptionReference
in interface AbstractGML
public void setProperty(QName qname, Object value)
setProperty
in interface GenericFeature
public CodeWithAuthority getIdentifier()
AbstractGML
getIdentifier
in interface AbstractGML
public String getUniqueIdentifier()
AbstractGML
getUniqueIdentifier
in interface AbstractGML
public boolean isSetIdentifier()
AbstractGML
isSetIdentifier
in interface AbstractGML
public void setIdentifier(CodeWithAuthority identifier)
AbstractGML
setIdentifier
in interface AbstractGML
public void setUniqueIdentifier(String identifier)
AbstractGML
setUniqueIdentifier
in interface AbstractGML
public List<Code> getNameList()
AbstractGML
getNameList
in interface AbstractGML
public int getNumNames()
AbstractGML
getNumNames
in interface AbstractGML
public void addName(Code name)
AbstractGML
addName
in interface AbstractGML
public void setName(String name)
AbstractGML
setName
in interface AbstractGML
public String getName()
getName
in interface AbstractGML
public String getId()
AbstractGML
getId
in interface AbstractGML
public void setId(String id)
AbstractGML
setId
in interface AbstractGML
Copyright © 2016 Sensia Software LLC. All rights reserved.