- All Implemented Interfaces:
public class DefaultMemberName extends DefaultLocalName implements MemberNameThe name to identify a member of a record.
DefaultMemberNamecan be instantiated by any of the following methods:
Immutability and thread safetyThis class is immutable and thus inherently thread-safe if the
DefaultNameFactory.createMemberName(NameSpace, CharSequence, TypeName)
- Similar static convenience method in
TypeNamearguments 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
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description
castOrCopy(MemberName object)Returns a SIS member name implementation with the values of the given arbitrary implementation.
equals(Object object)Compares this member name with the specified object for equality.
getAttributeType()Returns the type of the data associated with the record member.
Methods inherited from class DefaultLocalName
castOrCopy, compareTo, depth, getParsedNames, head, scope, tip, toInternationalString, toString
Methods inherited from class Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface GenericName
push, scope, toFullyQualifiedName, toInternationalString
protected DefaultMemberName(NameSpace scope, CharSequence name, TypeName attributeType)Constructs a member name from the given character sequence and attribute type.
scope- the scope of this name, or
nullfor a global scope.
name- the local name (never
attributeType- the type of the data associated with the record member (can not be
public static DefaultMemberName castOrCopy(MemberName object)Returns 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 returns
- 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.
object- the object to get as a SIS implementation, or
- a SIS implementation containing the values of the given object (may be the
given object itself), or
nullif the argument was null.
- If the given object is
public TypeName getAttributeType()Returns the type of the data associated with the record member.