- 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
FieldsModifier and TypeFieldDescriptionstatic final TelephoneTypeTelephone provides facsimile service.static final TelephoneTypeTelephone provides SMS service.static final TelephoneTypeTelephone provides voice service. -
Method Summary
Modifier and TypeMethodDescriptionfamily()Returns the list of codes of the same kind as this code list element.static TelephoneTypeReturns the telephone type that matches the given string, or returns a new one if none match it.static TelephoneType[]values()Returns the list ofTelephoneTypes.Methods inherited from class org.opengis.util.CodeList
compareTo, identifier, name, ordinal, readResolve, toString, valueOf, valueOf, valueOf, valuesMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods 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 ofTelephoneTypes.- 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 parentCodeListclass.- Specified by:
familyin interfaceControlledVocabulary- Specified by:
familyin 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.
-