Package org.apache.sis.internal.simple
Class SimpleAttributeType<V>
java.lang.Object
org.apache.sis.internal.simple.SimpleAttributeType<V>
- Type Parameters:
V
- the type of attribute value.
- All Implemented Interfaces:
Serializable
,org.opengis.util.Type
public final class SimpleAttributeType<V>
extends Object
implements org.opengis.util.Type, Serializable
A simple attribute type containing only a name and a class of values.
Such simple type are suitable for use in ISO 19103
RecordType
in addition to ISO 19109 org.opengis.feature.FeatureType
.- Since:
- 0.5
- Version:
- 0.5
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final org.opengis.util.TypeName
The name for this attribute type.private static final long
For cross-version compatibility.The class of value for attributes of this type. -
Constructor Summary
ConstructorsConstructorDescriptionSimpleAttributeType
(org.opengis.util.TypeName name, Class<V> valueClass) Creates a new attribute type for the given name and class of values. -
Method Summary
Modifier and TypeMethodDescriptionboolean
Compares this attribute type with the given object for equality.Not used for this simple attribute type.org.opengis.util.InternationalString
Not used for this simple attribute type.org.opengis.util.InternationalString
Not used for this simple attribute type.org.opengis.util.InternationalString
Not used for this simple attribute type.int
Returns 1 as of simple feature definition.int
Returns 1 as of simple feature definition.org.opengis.util.GenericName
getName()
Returns the name of this attribute type (ISO 19109).org.opengis.util.TypeName
Returns the name of this attribute type (ISO 19103).Returns the class of value for attributes of this type.int
hashCode()
Returns a hash code value for this type.toString()
Returns the type name.
-
Field Details
-
serialVersionUID
private static final long serialVersionUIDFor cross-version compatibility.- See Also:
-
name
private final org.opengis.util.TypeName nameThe name for this attribute type. -
valueClass
The class of value for attributes of this type.
-
-
Constructor Details
-
SimpleAttributeType
Creates a new attribute type for the given name and class of values.- Parameters:
name
- the name for this attribute type (shall not be null).valueClass
- the class of value for attributes of this type (shall not be null).
-
-
Method Details
-
getName
public org.opengis.util.GenericName getName()Returns the name of this attribute type (ISO 19109).- Returns:
- the name of this attribute type.
-
getTypeName
public org.opengis.util.TypeName getTypeName()Returns the name of this attribute type (ISO 19103).- Specified by:
getTypeName
in interfaceorg.opengis.util.Type
- Returns:
- the name of this attribute type.
-
getValueClass
Returns the class of value for attributes of this type.- Returns:
- the class of value for attributes of this type.
-
getMinimumOccurs
public int getMinimumOccurs()Returns 1 as of simple feature definition.- Returns:
- always 1.
-
getMaximumOccurs
public int getMaximumOccurs()Returns 1 as of simple feature definition.- Returns:
- always 1.
-
getDefaultValue
Not used for this simple attribute type.- Returns:
- always
null
.
-
getDefinition
public org.opengis.util.InternationalString getDefinition()Not used for this simple attribute type.- Returns:
- always
null
.
-
getDesignation
public org.opengis.util.InternationalString getDesignation()Not used for this simple attribute type.- Returns:
- always
null
.
-
getDescription
public org.opengis.util.InternationalString getDescription()Not used for this simple attribute type.- Returns:
- always
null
.
-
hashCode
public int hashCode()Returns a hash code value for this type. -
equals
Compares this attribute type with the given object for equality. -
toString
Returns the type name.
-