org.geotools.util
Class MemberNameImpl
java.lang.Object
org.geotools.util.GenericName
org.geotools.util.LocalName
org.geotools.util.MemberNameImpl
- All Implemented Interfaces:
- java.io.Serializable, java.lang.Comparable<org.opengis.util.GenericName>, org.opengis.util.GenericName, org.opengis.util.LocalName, org.opengis.util.MemberName
public class MemberNameImpl
- extends LocalName
- implements org.opengis.util.MemberName
The name to identify a member of a record. This is
typically used as of a Map
.
It may be more simple to think of MemberName
as a
Map.Entry
- since it is both the "key" and the "value".
- key:
this
- value: associated
TypeName
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
- Version:
- $Id: MemberNameImpl.java 30640 2008-06-12 17:34:32Z acuster $
- Author:
- Jody Garnett, Martin Desruisseaux
- See Also:
- Serialized Form
Constructor Summary |
MemberNameImpl(java.lang.CharSequence name,
org.opengis.util.TypeName typeName)
Constructs a member name from the specified string with no scope. |
Method Summary |
boolean |
equals(java.lang.Object object)
Compares this member name with the associated object for equality. |
org.opengis.util.TypeName |
getAttributeType()
Returns the type of the data associated with the record member. |
Methods inherited from class org.geotools.util.LocalName |
asScopedName, compareTo, depth, getParsedNames, getScope, hashCode, head, push, scope, tip, toFullyQualifiedName, toInternationalString, toString |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface org.opengis.util.LocalName |
depth, getParsedNames, head, tip, toString |
Methods inherited from interface org.opengis.util.GenericName |
name, push, scope, toFullyQualifiedName, toInternationalString |
Methods inherited from interface java.lang.Comparable |
compareTo |
MemberNameImpl
public MemberNameImpl(java.lang.CharSequence name,
org.opengis.util.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 org.opengis.util.TypeName getAttributeType()
- Returns the type of the data associated with the record member.
- Specified by:
getAttributeType
in interface org.opengis.util.MemberName
equals
public boolean equals(java.lang.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-2010 Geotools. All Rights Reserved.