com.sun.xml.bind.v2.model.impl
Class RuntimeMapPropertyInfoImpl
java.lang.Object
com.sun.xml.bind.v2.model.impl.PropertyInfoImpl<T,C,F,M>
com.sun.xml.bind.v2.model.impl.MapPropertyInfoImpl<Type,Class,Field,Method>
com.sun.xml.bind.v2.model.impl.RuntimeMapPropertyInfoImpl
- All Implemented Interfaces:
- AnnotationSource, Locatable, MapPropertyInfo<Type,Class>, PropertyInfo<Type,Class>, RuntimeMapPropertyInfo, RuntimePropertyInfo, Comparable<PropertyInfoImpl>
class RuntimeMapPropertyInfoImpl
- extends MapPropertyInfoImpl<Type,Class,Field,Method>
- implements RuntimeMapPropertyInfo
Methods inherited from class com.sun.xml.bind.v2.model.impl.PropertyInfoImpl |
calcXmlName, calcXmlName, compareTo, displayName, getAdapter, getExpectedMimeType, getIndividualType, getLocation, getName, getRawType, getSchemaType, getUpstream, hasAnnotation, id, inlineBinaryData, isCollection, link, nav, parent, readAnnotation, reader |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RuntimeMapPropertyInfoImpl
RuntimeMapPropertyInfoImpl(RuntimeClassInfoImpl classInfo,
PropertySeed<Type,Class,Field,Method> seed)
getAccessor
public Accessor getAccessor()
- Description copied from interface:
RuntimePropertyInfo
- Gets the
Accessor
for this property.
Even for a multi-value property, this method returns an accessor
to that property. IOW, the accessor works against the raw type.
This methods returns unoptimized accessor (because optimization
accessors are often combined into bigger pieces, and optimization
generally works better if you can look at a bigger piece, as opposed
to individually optimize a smaller components)
- Specified by:
getAccessor
in interface RuntimePropertyInfo
- Returns:
- never null.
- See Also:
Accessor#optimize()
elementOnlyContent
public boolean elementOnlyContent()
- Description copied from interface:
RuntimePropertyInfo
- Returns true if this property has an element-only content. False otherwise.
- Specified by:
elementOnlyContent
in interface RuntimePropertyInfo
getKeyType
public RuntimeNonElement getKeyType()
- Description copied from interface:
MapPropertyInfo
- Type of the key of the map. K of
HashMap<K,V>
- Specified by:
getKeyType
in interface MapPropertyInfo<Type,Class>
- Specified by:
getKeyType
in interface RuntimeMapPropertyInfo
- Overrides:
getKeyType
in class MapPropertyInfoImpl<Type,Class,Field,Method>
- Returns:
- never null.
getValueType
public RuntimeNonElement getValueType()
- Description copied from interface:
MapPropertyInfo
- Type of the value of the map. V of
HashMap<K,V>
- Specified by:
getValueType
in interface MapPropertyInfo<Type,Class>
- Specified by:
getValueType
in interface RuntimeMapPropertyInfo
- Overrides:
getValueType
in class MapPropertyInfoImpl<Type,Class,Field,Method>
- Returns:
- never null.
ref
public List<? extends RuntimeTypeInfo> ref()
- Description copied from interface:
PropertyInfo
- List of
TypeInfo
s that this property references.
This allows the caller to traverse the reference graph without
getting into the details of each different property type.
- Specified by:
ref
in interface PropertyInfo<Type,Class>
- Specified by:
ref
in interface RuntimePropertyInfo
- Overrides:
ref
in class MapPropertyInfoImpl<Type,Class,Field,Method>
- Returns:
- non-null read-only collection.