public class DefaultMemberName extends DefaultLocalName implements MemberName
DefaultMemberName
can be instantiated by any of the following methods:
DefaultNameFactory.createMemberName(NameSpace, CharSequence, TypeName)
Names
.NameSpace
, 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.DefaultTypeName
,
DefaultNameFactory
,
DefaultRecordType
,
Serialized FormDefined in the sis-utility
module
Modifier | Constructor and Description |
---|---|
protected |
DefaultMemberName(NameSpace scope,
CharSequence name,
TypeName attributeType)
Constructs a member name from the given character sequence and attribute type.
|
Modifier and Type | Method and Description |
---|---|
static DefaultMemberName |
castOrCopy(MemberName object)
Returns a SIS member name implementation with the values of the given arbitrary implementation.
|
boolean |
equals(Object object)
Compares this member name with the specified object for equality.
|
TypeName |
getAttributeType()
Returns the type of the data associated with the record member.
|
castOrCopy, compareTo, depth, getParsedNames, head, scope, tip, toInternationalString, toString
castOrCopy, hashCode, push, toFullyQualifiedName
push, scope, toFullyQualifiedName, toInternationalString
compareTo
protected DefaultMemberName(NameSpace scope, CharSequence name, TypeName attributeType)
scope
- The scope of this name, or null
for a global scope.name
- The local name (never null
).attributeType
- The type of the data associated with the record member (can not be null
).public static DefaultMemberName castOrCopy(MemberName object)
null
, then this method returns null
.DefaultMemberName
,
then it is returned unchanged.DefaultMemberName
instance is created
with the same values than the given name.object
- The object to get as a SIS implementation, or null
if none.null
if the argument was null.public TypeName getAttributeType()
getAttributeType
in interface MemberName
public boolean equals(Object object)
equals
in class DefaultLocalName
object
- The object to compare with this name for equality.true
if the given object is equal to this name.Copyright © 2010–2015 The Apache Software Foundation. All rights reserved.