org.geotools.util
Class MemberNameImpl
Object
GenericName
LocalName
MemberNameImpl
- All Implemented Interfaces:
- Serializable, Comparable<GenericName>, GenericName, LocalName, MemberName
public class MemberNameImpl
- extends LocalName
- implements MemberName
The name to identify a member of a record. This is
typically used as of a Map<MemberName,TypeName>
.
It may be more simple to think of MemberName
as a
Map.Entry
- since it is both the "key" and the "value".
This presents a bit of a conflict in that we are never quite sure
what comes first the record or the member during creation time.
- Since:
- 2.4
- Author:
- Jody Garnett, Martin Desruisseaux
- See Also:
- Serialized Form
- Module:
modules/library/metadata (gt-metadata.jar)
Method Summary |
boolean |
equals(Object object)
Compares this member name with the associated object for equality. |
TypeName |
getAttributeType()
Returns the type of the data associated with the record member. |
Methods inherited from class LocalName |
asScopedName, compareTo, depth, getParsedNames, getScope, hashCode, head, push, scope, tip, toFullyQualifiedName, toInternationalString, toString |
MemberNameImpl
public MemberNameImpl(CharSequence name,
TypeName typeName)
- Constructs a member name from the specified string with no scope.
- Parameters:
name
- The local name (never null
).type
- The type associated with this name.
getAttributeType
public TypeName getAttributeType()
- Returns the type of the data associated with the record member.
- Specified by:
getAttributeType
in interface MemberName
equals
public boolean equals(Object object)
- Compares this member name with the associated object for equality.
- Overrides:
equals
in class LocalName
- Parameters:
object
- The object to compare with this name.
- Returns:
true
if the given object is equals to this one.
Copyright © 1996-2009 Geotools. All Rights Reserved.