public class StructContentType<T> extends ContentType<T>
m_identifier
Modifier | Constructor and Description |
---|---|
protected |
StructContentType(String identifier,
String name) |
|
StructContentType(String identifier,
String name,
String description) |
Modifier and Type | Method and Description |
---|---|
<M> void |
addExtraAttribute(int atIndex,
IAttribute<M> attribute)
Deprecated.
|
<M> void |
addField(String identifier,
ContentType<M> contentType,
String name,
String desc,
IMemberAccessor<M,T> accessor) |
<M> IMemberAccessor<M,T> |
getAccessor(IAccessorKey<M> attribute)
Internal low-level mechanism for retrieving a member accessor for a type, or null if not
available.
|
Map<IAccessorKey<?>,? extends IDescribable> |
getAccessorKeys()
Get keys for the accessors that this type knows of.
|
List<IAttribute<?>> |
getAttributes() |
String |
getDescription() |
addFormatter, getDefaultFormatter, getFormatter, getFormatters, getIdentifier, getName, getPersister, hasAttribute, lookupNameFor, toString
public <M> void addField(String identifier, ContentType<M> contentType, String name, String desc, IMemberAccessor<M,T> accessor)
@Deprecated public <M> void addExtraAttribute(int atIndex, IAttribute<M> attribute)
public String getDescription()
getDescription
in interface IDescribable
getDescription
in class ContentType<T>
public List<IAttribute<?>> getAttributes()
getAttributes
in interface IType<T>
getAttributes
in class ContentType<T>
public Map<IAccessorKey<?>,? extends IDescribable> getAccessorKeys()
IType
Should only be used for low level type inspection. Iterators etc. should use a collection of
predefined attributes
.
getAccessorKeys
in interface IType<T>
getAccessorKeys
in class ContentType<T>
public <M> IMemberAccessor<M,T> getAccessor(IAccessorKey<M> attribute)
IType
This is only intended to be used by implementors of IAccessorFactory
. All other usage
should be replaced with ICanonicalAccessorFactory.getAccessor(IType)
call to pre-defined accessors.
getAccessor
in interface IType<T>
getAccessor
in class ContentType<T>
M
- accessor value typeattribute
- the identifier for the fieldCopyright © 2019. All rights reserved.