Package org.openjdk.jmc.common.item
Class AccessorKey<T>
- java.lang.Object
-
- org.openjdk.jmc.common.item.AccessorKey<T>
-
- All Implemented Interfaces:
IAccessorKey<T>
- Direct Known Subclasses:
CanonicalAccessorFactory
class AccessorKey<T> extends java.lang.Object implements IAccessorKey<T>
-
-
Field Summary
Fields Modifier and Type Field Description private ContentType<T>
contentType
private java.lang.String
identifier
-
Constructor Summary
Constructors Constructor Description AccessorKey(java.lang.String identifier, ContentType<T> contentType)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object obj)
ContentType<T>
getContentType()
The content type of this attribute.java.lang.String
getIdentifier()
A identifier is a text string identifying the attribute.int
hashCode()
java.lang.String
toString()
-
-
-
Field Detail
-
identifier
private final java.lang.String identifier
-
contentType
private final ContentType<T> contentType
-
-
Constructor Detail
-
AccessorKey
public AccessorKey(java.lang.String identifier, ContentType<T> contentType)
-
-
Method Detail
-
getContentType
public ContentType<T> getContentType()
Description copied from interface:IAccessorKey
The content type of this attribute. The type can be an opaque (or leaf) type in which case its instances can be of any class (but typically restricted according to the type). It can also be a structured type which has attributes (fields) of its own, in which case its instances currently must implementIItem
.- Specified by:
getContentType
in interfaceIAccessorKey<T>
- Returns:
- the content type of this attribute
-
getIdentifier
public java.lang.String getIdentifier()
Description copied from interface:IAccessorKey
A identifier is a text string identifying the attribute. It must never be localized and it should only contain characters that are safe to use in various configuration files, e.g. as XML tags. (Analogous toField.getName()
.)- Specified by:
getIdentifier
in interfaceIAccessorKey<T>
- Returns:
- the attribute identifier
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-