com.sun.xml.bind.v2.model.impl
Class MapPropertyInfoImpl<T,C,F,M>

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<T,C,F,M>
All Implemented Interfaces:
AnnotationSource, Locatable, MapPropertyInfo<T,C>, PropertyInfo<T,C>, Comparable<PropertyInfoImpl>
Direct Known Subclasses:
RuntimeMapPropertyInfoImpl

 class MapPropertyInfoImpl<T,C,F,M>
extends PropertyInfoImpl<T,C,F,M>
implements MapPropertyInfo<T,C>


Field Summary
 
Fields inherited from class com.sun.xml.bind.v2.model.impl.PropertyInfoImpl
parent, seed
 
Constructor Summary
MapPropertyInfoImpl(ClassInfoImpl<T,C,F,M> ci, PropertySeed<T,C,F,M> seed)
           
 
Method Summary
 NonElement<T,C> getKeyType()
          Type of the key of the map.
 NonElement<T,C> getTarget(T type)
           
 NonElement<T,C> getValueType()
          Type of the value of the map.
 QName getXmlName()
          Gets the wrapper element name.
 boolean isCollectionNillable()
          Returns true if this property is nillable (meaning the absence of the value is treated as nil='true')
 PropertyKind kind()
          Gets the kind of this proeprty.
 Collection<? extends TypeInfo<T,C>> ref()
          List of TypeInfos that this property references.
 
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.core.PropertyInfo
displayName, getAdapter, getExpectedMimeType, getName, getSchemaType, id, inlineBinaryData, isCollection, parent
 
Methods inherited from interface com.sun.xml.bind.v2.model.annotation.AnnotationSource
hasAnnotation, readAnnotation
 

Constructor Detail

MapPropertyInfoImpl

public MapPropertyInfoImpl(ClassInfoImpl<T,C,F,M> ci,
                           PropertySeed<T,C,F,M> seed)
Method Detail

ref

public Collection<? extends TypeInfo<T,C>> 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<T,C>
Returns:
non-null read-only collection.

kind

public final PropertyKind kind()
Description copied from interface: PropertyInfo
Gets the kind of this proeprty.

Specified by:
kind in interface PropertyInfo<T,C>
Returns:
always non-null.

getXmlName

public QName getXmlName()
Description copied from interface: MapPropertyInfo
Gets the wrapper element name.

Specified by:
getXmlName in interface MapPropertyInfo<T,C>
Returns:
always non-null.

isCollectionNillable

public boolean isCollectionNillable()
Description copied from interface: MapPropertyInfo
Returns true if this property is nillable (meaning the absence of the value is treated as nil='true')

This method is only used when this property is a collection.

Specified by:
isCollectionNillable in interface MapPropertyInfo<T,C>

getKeyType

public NonElement<T,C> getKeyType()
Description copied from interface: MapPropertyInfo
Type of the key of the map. K of HashMap<K,V>

Specified by:
getKeyType in interface MapPropertyInfo<T,C>
Returns:
never null.

getValueType

public NonElement<T,C> getValueType()
Description copied from interface: MapPropertyInfo
Type of the value of the map. V of HashMap<K,V>

Specified by:
getValueType in interface MapPropertyInfo<T,C>
Returns:
never null.

getTarget

public NonElement<T,C> getTarget(T type)