public class StructContentType<T> extends ContentType<T>
| Modifier and Type | Class and Description |
|---|---|
private static class |
StructContentType.AccessorEntry<T> |
| Modifier and Type | Field and Description |
|---|---|
private java.lang.String |
description |
private java.util.Map<IAccessorKey<?>,StructContentType.AccessorEntry<T>> |
m_accessors |
private java.util.List<IAttribute<?>> |
m_attributes |
m_identifier| Modifier | Constructor and Description |
|---|---|
protected |
StructContentType(java.lang.String identifier,
java.lang.String name) |
|
StructContentType(java.lang.String identifier,
java.lang.String name,
java.lang.String description) |
| Modifier and Type | Method and Description |
|---|---|
<M> void |
addExtraAttribute(int atIndex,
IAttribute<M> attribute)
Deprecated.
|
<M> void |
addField(java.lang.String identifier,
ContentType<M> contentType,
java.lang.String name,
java.lang.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.
|
java.util.Map<IAccessorKey<?>,? extends IDescribable> |
getAccessorKeys()
Get keys for the accessors that this type knows of.
|
java.util.List<IAttribute<?>> |
getAttributes() |
java.lang.String |
getDescription() |
addFormatter, getDefaultFormatter, getFormatter, getFormatters, getIdentifier, getName, getPersister, hasAttribute, lookupNameFor, toStringprivate final java.util.List<IAttribute<?>> m_attributes
private final java.util.Map<IAccessorKey<?>,StructContentType.AccessorEntry<T>> m_accessors
private final java.lang.String description
public StructContentType(java.lang.String identifier,
java.lang.String name,
java.lang.String description)
protected StructContentType(java.lang.String identifier,
java.lang.String name)
public <M> void addField(java.lang.String identifier,
ContentType<M> contentType,
java.lang.String name,
java.lang.String desc,
IMemberAccessor<M,T> accessor)
@Deprecated
public <M> void addExtraAttribute(int atIndex,
IAttribute<M> attribute)
public java.lang.String getDescription()
getDescription in interface IDescribablegetDescription in class ContentType<T>public java.util.List<IAttribute<?>> getAttributes()
getAttributes in interface IType<T>getAttributes in class ContentType<T>public java.util.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 field