public abstract class AbstractFeature extends Object implements Serializable
Modifier and Type | Field and Description |
---|---|
private String |
description
Feature description
|
private String |
gmlId
GML id
|
private CodeWithAuthority |
identifier
Feature identifier
|
private List<CodeType> |
names
List of feature names
|
private static long |
serialVersionUID
serial number
|
Constructor and Description |
---|
AbstractFeature()
constructor
|
AbstractFeature(CodeWithAuthority featureIdentifier)
constructor
|
AbstractFeature(CodeWithAuthority featureIdentifier,
String gmlId)
constructor
|
Modifier and Type | Method and Description |
---|---|
void |
addName(CodeType name) |
void |
addName(String name)
Add a feature name
|
boolean |
equals(Object o) |
String |
getDescription()
Get feature description
|
CodeType |
getFirstName()
Get first feature name or null if feature has no names
|
String |
getGmlId()
Get GML id
|
CodeWithAuthority |
getIdentifier()
Get identifier
|
List<CodeType> |
getName()
Get feature names
|
int |
hashCode() |
boolean |
isReferenced()
Check whether feature is still contained in XML document by sign
Constants.NUMBER_SIGN_STRING . |
boolean |
isSetDescription()
Check whether feature has a description
|
boolean |
isSetGmlID()
Check whether GML id is set
|
boolean |
isSetIdentifier() |
boolean |
isSetNames()
Check whether feature has names
|
void |
setDescription(String description)
Set feature description
|
void |
setGmlId(String gmlId)
Set GML id
|
void |
setIdentifier(CodeWithAuthority identifier)
Set observation identifier
|
void |
setIdentifier(String identifier)
Set observation identifier
|
void |
setName(List<CodeType> name)
Add feature names
|
private static final long serialVersionUID
private CodeWithAuthority identifier
private String description
private String gmlId
public AbstractFeature()
public AbstractFeature(CodeWithAuthority featureIdentifier)
featureIdentifier
- Feature identifierpublic AbstractFeature(CodeWithAuthority featureIdentifier, String gmlId)
featureIdentifier
- Feature identifiergmlId
- GML idpublic CodeWithAuthority getIdentifier()
public void setIdentifier(CodeWithAuthority identifier)
identifier
- the identifier to setpublic void setIdentifier(String identifier)
identifier
- the identifier to setpublic boolean isSetIdentifier()
public void setName(List<CodeType> name)
name
- Feature names to adpublic void addName(CodeType name)
name
- public void addName(String name)
name
- Feature name to addpublic boolean isSetNames()
true
if feature has namespublic CodeType getFirstName()
public String getDescription()
public void setDescription(String description)
description
- Feature description to setpublic boolean isSetDescription()
true
if feature a descriptionpublic String getGmlId()
public void setGmlId(String gmlId)
gmlId
- GML id to setpublic boolean isSetGmlID()
true
if GML id is setpublic boolean isReferenced()
Constants.NUMBER_SIGN_STRING
.true
if feature is still contained in XML documentCopyright © 2012-2014 52north.org. All Rights Reserved.