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.InternationalString
The 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, toString
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface java.lang.CharSequence
chars, codePoints, isEmpty
-
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:
toString
in interfaceorg.opengis.util.InternationalString
- Specified by:
toString
in 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.
-