Package org.apache.sis.internal.storage
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.-
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 org.apache.sis.util.AbstractInternationalString
charAt, compareTo, formatTo, length, subSequence, toStringMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface java.lang.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
public int hashCode()Returns a hash code value for this sentence. -
equals
Compares the given object with this sentence for equality.
-