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>contentTypeprivate java.lang.Stringidentifier
-
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 booleanequals(java.lang.Object obj)ContentType<T>getContentType()The content type of this attribute.java.lang.StringgetIdentifier()A identifier is a text string identifying the attribute.inthashCode()java.lang.StringtoString()
-
-
-
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:IAccessorKeyThe 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:
getContentTypein interfaceIAccessorKey<T>- Returns:
- the content type of this attribute
-
getIdentifier
public java.lang.String getIdentifier()
Description copied from interface:IAccessorKeyA 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:
getIdentifierin interfaceIAccessorKey<T>- Returns:
- the attribute identifier
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-