- All Implemented Interfaces:
Serializable
,Comparable<TelephoneType>
,ControlledVocabulary
@UML(identifier="CI_TelephoneTypeCode",
specification=ISO_19115)
public final class TelephoneType
extends CodeList<TelephoneType>
Type of telephone.
- Since:
- 3.1
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class org.opengis.util.CodeList
CodeList.Filter
-
Field Summary
Modifier and TypeFieldDescriptionstatic final TelephoneType
Telephone provides facsimile service.static final TelephoneType
Telephone provides SMS service.static final TelephoneType
Telephone provides voice service. -
Method Summary
Modifier and TypeMethodDescriptionfamily()
Returns the list of codes of the same kind as this code list element.static TelephoneType
Returns the telephone type that matches the given string, or returns a new one if none match it.static TelephoneType[]
values()
Returns the list ofTelephoneType
s.Methods inherited from class org.opengis.util.CodeList
compareTo, identifier, name, ordinal, readResolve, toString, valueOf, valueOf, valueOf, values
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.opengis.util.ControlledVocabulary
names
-
Field Details
-
VOICE
@UML(identifier="voice", obligation=CONDITIONAL, specification=ISO_19115) public static final TelephoneType VOICETelephone provides voice service. -
FACSIMILE
@UML(identifier="facsimile", obligation=CONDITIONAL, specification=ISO_19115) public static final TelephoneType FACSIMILETelephone provides facsimile service. -
SMS
@UML(identifier="sms", obligation=CONDITIONAL, specification=ISO_19115) public static final TelephoneType SMSTelephone provides SMS service.
-
-
Method Details
-
values
Returns the list ofTelephoneType
s.- Returns:
- the list of codes declared in the current JVM.
-
family
Returns the list of codes of the same kind as this code list element. Invoking this method is equivalent to invokingvalues()
, except that this method can be invoked on an instance of the parentCodeList
class.- Specified by:
family
in interfaceControlledVocabulary
- Specified by:
family
in classCodeList<TelephoneType>
- Returns:
- all code values for this code list.
-
valueOf
Returns the telephone type that matches the given string, or returns a new one if none match it. This methods returns the first instance (in declaration order) for which the name is equals, ignoring case, to the given name. If no existing instance is found, then a new one is created for the given name.- Parameters:
code
- the name of the code to fetch or to create.- Returns:
- a code matching the given name.
-