com.sun.xml.bind.v2.model.impl
Class RuntimeMapPropertyInfoImpl

java.lang.Object
  extended by com.sun.xml.bind.v2.model.impl.PropertyInfoImpl<T,C,F,M>
      extended by com.sun.xml.bind.v2.model.impl.MapPropertyInfoImpl<Type,Class,Field,Method>
          extended by 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


Field Summary
 
Fields inherited from class com.sun.xml.bind.v2.model.impl.PropertyInfoImpl
parent, seed
 
Constructor Summary
RuntimeMapPropertyInfoImpl(RuntimeClassInfoImpl classInfo, PropertySeed<Type,Class,Field,Method> seed)
           
 
Method Summary
 boolean elementOnlyContent()
          Returns true if this property has an element-only content.
 Accessor getAccessor()
          Gets the Accessor for this property.
 RuntimeNonElement getKeyType()
          Type of the key of the map.
 RuntimeNonElement getValueType()
          Type of the value of the map.
 List<? extends RuntimeTypeInfo> ref()
          List of TypeInfos that this property references.
 
Methods inherited from class com.sun.xml.bind.v2.model.impl.MapPropertyInfoImpl
getTarget, getXmlName, isCollectionNillable, kind
 
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
 
Methods inherited from interface com.sun.xml.bind.v2.model.runtime.RuntimePropertyInfo
getIndividualType, getRawType
 
Methods inherited from interface com.sun.xml.bind.v2.model.core.MapPropertyInfo
getXmlName, isCollectionNillable
 
Methods inherited from interface com.sun.xml.bind.v2.model.core.PropertyInfo
displayName, getAdapter, getExpectedMimeType, getName, getSchemaType, id, inlineBinaryData, isCollection, kind, parent
 
Methods inherited from interface com.sun.xml.bind.v2.model.annotation.AnnotationSource
hasAnnotation, readAnnotation
 

Constructor Detail

RuntimeMapPropertyInfoImpl

RuntimeMapPropertyInfoImpl(RuntimeClassInfoImpl classInfo,
                           PropertySeed<Type,Class,Field,Method> seed)
Method Detail

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 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<Type,Class>
Specified by:
ref in interface RuntimePropertyInfo
Overrides:
ref in class MapPropertyInfoImpl<Type,Class,Field,Method>
Returns:
non-null read-only collection.