class CanonicalAccessorFactory<V> extends AccessorKey<V> implements ICanonicalAccessorFactory<V>
Constructor and Description |
---|
CanonicalAccessorFactory(java.lang.String identifier,
ContentType<V> contentType) |
Modifier and Type | Method and Description |
---|---|
<U> IMemberAccessor<V,U> |
customAccessor(IType<U> type)
Override to construct deriving accessors.
|
<U> IMemberAccessor<V,U> |
getAccessor(IType<U> type)
Gets the accessor for specified type.
|
IAccessorKey<V> |
getKey() |
equals, getContentType, getIdentifier, hashCode, toString
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
getContentType, getIdentifier
public CanonicalAccessorFactory(java.lang.String identifier, ContentType<V> contentType)
public final <U> IMemberAccessor<V,U> getAccessor(IType<U> type)
IAccessorFactory
getAccessor
in interface IAccessorFactory<V>
getAccessor
in interface ICanonicalAccessorFactory<V>
U
- input type classtype
- type that the accessor should work fornull
if the type cannot provide such valuespublic <U> IMemberAccessor<V,U> customAccessor(IType<U> type)
U
- input type classtype
- type to create accessor forpublic IAccessorKey<V> getKey()
getKey
in interface ICanonicalAccessorFactory<V>