public class AbstractIdentifiedType extends Object implements Serializable
IdentifiedType
interface in a future version.
When such interface will be available, most references to AbstractIdentifiedType
in the API
will be replaced by references to the IdentifiedType
interface.Defined in the sis-feature
module
Modifier and Type | Field and Description |
---|---|
static String |
DEFINITION_KEY
Key for the
"definition" property to be given to the constructor. |
static String |
DESCRIPTION_KEY
Key for the
"description" property to be given to the constructor. |
static String |
DESIGNATION_KEY
Key for the
"designation" property to be given to the constructor. |
static String |
NAME_KEY
Key for the
"name" property to be given to the constructor. |
Modifier | Constructor and Description |
---|---|
protected |
AbstractIdentifiedType(Map<String,?> identification)
Constructs a type from the given properties.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj)
Compares this type with the given object for equality.
|
InternationalString |
getDefinition()
Returns a concise definition of the element.
|
InternationalString |
getDescription()
Returns optional information beyond that required for concise definition of the element.
|
InternationalString |
getDesignation()
Returns a natural language designator for the element.
|
GenericName |
getName()
Returns the name of this type.
|
int |
hashCode()
Returns a hash code value for this type.
|
public static final String NAME_KEY
"name"
property to be given to the constructor.
This is used for setting the value to be returned by getName()
.getName()
,
Constant Field Valuespublic static final String DEFINITION_KEY
"definition"
property to be given to the constructor.
This is used for setting the value to be returned by getDefinition()
.getDefinition()
,
Constant Field Valuespublic static final String DESIGNATION_KEY
"designation"
property to be given to the constructor.
This is used for setting the value to be returned by getDesignation()
.getDesignation()
,
Constant Field Valuespublic static final String DESCRIPTION_KEY
"description"
property to be given to the constructor.
This is used for setting the value to be returned by getDescription()
.getDescription()
,
Constant Field Valuesprotected AbstractIdentifiedType(Map<String,?> identification) throws IllegalArgumentException
Map key | Value type | Returned by |
---|---|---|
"name" | GenericName or String |
getName() |
"definition" | InternationalString or String |
getDefinition() |
"designation" | InternationalString or String |
getDesignation() |
"description" | InternationalString or String |
getDescription() |
"locale" | Locale |
(none) |
"definition"
may have a language and country code suffix.
For example the "definition_fr"
property stands for remarks in French and
the "definition_fr_CA"
property stands for remarks in French Canadian.
They are convenience properties for building the InternationalString
value.
The "locale"
property applies only in case of exception for formatting the error message, and
is used only on a best effort basis. The locale is discarded after successful construction
since localizations are applied by the InternationalString.toString(Locale)
method.
identification
- The name and other information to be given to this identified type.IllegalArgumentException
- if a property has an invalid value.public final GenericName getName()
For feature types, the name is mandatory and shall be unique
in the unit processing the data (e.g. a DataStore
reading a file).
IdentifiedType
instances
and need some guarantees about its stability.
public InternationalString getDefinition()
public InternationalString getDesignation()
public InternationalString getDescription()
null
if none.public int hashCode()
Copyright © 2010–2015 The Apache Software Foundation. All rights reserved.