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<java.lang.reflect.Type,java.lang.Class,java.lang.reflect.Field,java.lang.reflect.Method>
com.sun.xml.bind.v2.model.impl.RuntimeMapPropertyInfoImpl
- All Implemented Interfaces:
- AnnotationSource, Locatable, MapPropertyInfo<java.lang.reflect.Type,java.lang.Class>, PropertyInfo<java.lang.reflect.Type,java.lang.Class>, RuntimeMapPropertyInfo, RuntimePropertyInfo, java.lang.Comparable<PropertyInfoImpl>
class RuntimeMapPropertyInfoImpl
- extends MapPropertyInfoImpl<java.lang.reflect.Type,java.lang.Class,java.lang.reflect.Field,java.lang.reflect.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<java.lang.reflect.Type,java.lang.Class,java.lang.reflect.Field,java.lang.reflect.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<java.lang.reflect.Type,java.lang.Class>- Specified by:
getKeyType in interface RuntimeMapPropertyInfo- Overrides:
getKeyType in class MapPropertyInfoImpl<java.lang.reflect.Type,java.lang.Class,java.lang.reflect.Field,java.lang.reflect.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<java.lang.reflect.Type,java.lang.Class>- Specified by:
getValueType in interface RuntimeMapPropertyInfo- Overrides:
getValueType in class MapPropertyInfoImpl<java.lang.reflect.Type,java.lang.Class,java.lang.reflect.Field,java.lang.reflect.Method>
- Returns:
- never null.
ref
public java.util.List<? extends RuntimeTypeInfo> ref()
- Description copied from interface:
PropertyInfo
- List of
TypeInfos 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<java.lang.reflect.Type,java.lang.Class>- Specified by:
ref in interface RuntimePropertyInfo- Overrides:
ref in class MapPropertyInfoImpl<java.lang.reflect.Type,java.lang.Class,java.lang.reflect.Field,java.lang.reflect.Method>
- Returns:
- non-null read-only collection.