|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
ObjectSimpleIdentifiedObject
public class SimpleIdentifiedObject
An IdentifiedObject abstract base class, which contain only the name
attribute. All other IdentifiedObject attributes are null or empty collections.
Since the name is the only identifier contained by this class,
SimpleIdentifiedObject implements directly the ReferenceIdentifier interface.
Consequently this class can also be used as a ReferenceIdentifier implementation.
| Field Summary | |
|---|---|
protected Citation |
authority
Returns the organization or party responsible for definition and maintenance of the code. |
protected String |
code
Alphanumeric value identifying an instance in the authority name space. |
| Fields inherited from interface IdentifiedObject |
|---|
ALIAS_KEY, IDENTIFIERS_KEY, NAME_KEY, REMARKS_KEY |
| Fields inherited from interface ReferenceIdentifier |
|---|
CODESPACE_KEY, VERSION_KEY |
| Fields inherited from interface Identifier |
|---|
AUTHORITY_KEY, CODE_KEY |
| Constructor Summary | |
|---|---|
SimpleIdentifiedObject(Citation authority,
String name)
Creates a new object of the given authority and name. |
|
| Method Summary | |
|---|---|
boolean |
equals(Object object)
Compares this identifier with the given object for equality. |
Collection<GenericName> |
getAlias()
Alternative names by which this object is identified. |
Citation |
getAuthority()
Returns the organization or party responsible for definition and maintenance of the code. |
String |
getCode()
Returns the name given at construction time. |
String |
getCodeSpace()
Returns the name or identifier of the person or organization responsible for namespace. |
Extent |
getDomainOfValidity()
Area or region or timeframe in which this object is valid. |
Set<ReferenceIdentifier> |
getIdentifiers()
An identifier which references elsewhere the object's defining information. |
ReferenceIdentifier |
getName()
Returns the name of this identified object, which is represented directly by this
implementation class. |
InternationalString |
getRemarks()
Comments on or information about this object, including data source information. |
InternationalString |
getScope()
Description of domain of usage, or limitations of usage, for which this object is valid. |
String |
getVersion()
Version identifier for the namespace, as specified by the code authority. |
int |
hashCode()
Returns a hash code value calculated from the name identifier. |
String |
toString()
Returns a string representation of the name identifier. |
String |
toWKT()
Returns a Well Known Text (WKT) for this object. |
| Methods inherited from class Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected final Citation authority
getAuthority(),
getCodeSpace()protected final String code
getCode()| Constructor Detail |
|---|
public SimpleIdentifiedObject(Citation authority,
String name)
authority - The value to be returned by getAuthority(), or null if none.name - The name of the new object.| Method Detail |
|---|
public ReferenceIdentifier getName()
this
implementation class. This is the only IdentifiedObject method in this class
returning a non-null and non-empty value.
getName in interface IdentifiedObjectpublic Citation getAuthority()
getAuthority in interface Identifiernull if none.public String getCodeSpace()
getCodeSpace in interface ReferenceIdentifiernull if none.public String getCode()
getCode in interface Identifierpublic String getVersion()
null.
getVersion in interface ReferenceIdentifierpublic Collection<GenericName> getAlias()
getAlias in interface IdentifiedObjectpublic Set<ReferenceIdentifier> getIdentifiers()
getIdentifiers in interface IdentifiedObjectpublic InternationalString getScope()
IdentifiedObject, but is
defined in sub-interfaces like SingleCRS.
The default implementation returns null.
null if none.public Extent getDomainOfValidity()
IdentifiedObject, but is
defined in sub-interfaces like SingleCRS.
The default implementation returns null.
null if not available.public InternationalString getRemarks()
null.
getRemarks in interface IdentifiedObjectnull if none.
public String toWKT()
throws UnsupportedOperationException
toWKT in interface IdentifiedObjectUnsupportedOperationException - If this object can't be formatted as WKT.public int hashCode()
hashCode in class Objectpublic boolean equals(Object object)
equals in class Objectobject - The object to compare with this SimpleIdentifiedObject.
true if the given object is equals to this object.public String toString()
':' character, then the
code.
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||