Class MetadataBuilder.Sentence
java.lang.Object
org.apache.sis.util.AbstractInternationalString
org.apache.sis.internal.storage.MetadataBuilder.Sentence
- All Implemented Interfaces:
CharSequence, Comparable<org.opengis.util.InternationalString>, Formattable, org.opengis.util.InternationalString
- Enclosing class:
MetadataBuilder
An international string where localized identifiers are formatted more like an English sentence.
This is used for wrapping
GenericName.toInternationalString() representation for use as
a citation title.- Since:
- 0.8
- Version:
- 1.3
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final org.opengis.util.InternationalStringThe generic name localized representation. -
Constructor Summary
ConstructorsConstructorDescriptionSentence(org.opengis.util.GenericName name) Returns a new wrapper for the given generic name. -
Method Summary
Methods inherited from class AbstractInternationalString
charAt, compareTo, formatTo, length, subSequence, toStringMethods inherited from interface CharSequence
chars, codePoints
-
Field Details
-
name
private final org.opengis.util.InternationalString nameThe generic name localized representation.
-
-
Constructor Details
-
Sentence
Sentence(org.opengis.util.GenericName name) Returns a new wrapper for the given generic name.
-
-
Method Details
-
toString
Returns the generic name as an English-like sentence.- Specified by:
toStringin interfaceorg.opengis.util.InternationalString- Specified by:
toStringin classAbstractInternationalString- Parameters:
locale- the desired locale for the string to be returned.- Returns:
- the string in the given locale if available, or in an implementation-dependent fallback locale otherwise.
- See Also:
-
hashCode
-
equals
-