Package org.apache.sis.util.iso
Class DefaultMemberName
Object
AbstractName
DefaultLocalName
DefaultMemberName
- All Implemented Interfaces:
- Serializable,- Comparable<GenericName>,- GenericName,- LocalName,- MemberName
The name to identify a member of a record.
 
DefaultMemberName can be instantiated by any of the following methods:
 - DefaultNameFactory.createMemberName(NameSpace, CharSequence, TypeName)
- Similar static convenience method in Names.
Immutability and thread safety
This class is immutable and thus inherently thread-safe if theNameSpace, CharSequence and
 TypeName arguments given to the constructor are also immutable. Subclasses shall make sure that any
 overridden methods remain safe to call from multiple threads and do not change any public MemberName
 state.- Since:
- 0.3
- See Also:
Defined in the sis-metadata module
- 
Constructor SummaryConstructorsModifierConstructorDescriptionprotectedDefaultMemberName(NameSpace scope, CharSequence name, TypeName attributeType) Constructs a member name from the given character sequence and attribute type.
- 
Method SummaryModifier and TypeMethodDescriptionstatic DefaultMemberNamecastOrCopy(MemberName object) Returns a SIS member name implementation with the values of the given arbitrary implementation.booleanCompares this member name with the specified object for equality.Returns the type of the data associated with the record member.Methods inherited from class DefaultLocalNamecastOrCopy, compareTo, depth, getParsedNames, head, scope, tip, toInternationalString, toStringMethods inherited from class AbstractNamecastOrCopy, hashCode, push, toFullyQualifiedNameMethods inherited from class Objectclone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface ComparablecompareToMethods inherited from interface GenericNamepush, scope, toFullyQualifiedName, toInternationalString
- 
Constructor Details- 
DefaultMemberNameConstructs a member name from the given character sequence and attribute type.- Parameters:
- scope- the scope of this name, or- nullfor a global scope.
- name- the local name (never- null).
- attributeType- the type of the data associated with the record member (cannot be- null).
 
 
- 
- 
Method Details- 
castOrCopyReturns a SIS member name implementation with the values of the given arbitrary implementation. This method performs the first applicable action in the following choices:- If the given object is null, then this method returnsnull.
- Otherwise if the given object is already an instance of DefaultMemberName, then it is returned unchanged.
- Otherwise a new DefaultMemberNameinstance is created with the same values than the given name.
 - Parameters:
- object- the object to get as a SIS implementation, or- nullif none.
- Returns:
- a SIS implementation containing the values of the given object (may be the
         given object itself), or nullif the argument was null.
- Since:
- 0.5
 
- If the given object is 
- 
getAttributeTypeReturns the type of the data associated with the record member.- Specified by:
- getAttributeTypein interface- MemberName
- Returns:
- the type of the data associated with the record member.
 
- 
equalsCompares this member name with the specified object for equality.- Overrides:
- equalsin class- DefaultLocalName
- Parameters:
- object- the object to compare with this name for equality.
- Returns:
- trueif the given object is equal to this name.
 
 
-