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

Class PropertyInfoImpl<T,C,F,M>

abstract class PropertyInfoImpl<T,C,F,M> extends Object implements PropertyInfo<T,C>, Locatable, Comparable<PropertyInfoImpl>

Default partial implementation for PropertyInfo.
Field Summary
protected ClassInfoImpl<T,C,F,M>parent
protected PropertySeed<T,C,F,M>seed
Object that reads annotations.
Constructor Summary
protected PropertyInfoImpl(ClassInfoImpl<T,C,F,M> parent, PropertySeed<T,C,F,M> spi)
Method Summary
protected QNamecalcXmlName(XmlElement e)
Computes the tag name from a XmlElement by taking the defaulting into account.
protected QNamecalcXmlName(XmlElementWrapper e)
Computes the tag name from a XmlElementWrapper by taking the defaulting into account.
intcompareTo(PropertyInfoImpl that)
StringdisplayName()
Adapter<T,C>getAdapter()
This is the default implementation of the getAdapter method defined on many of the PropertyInfo-derived classes.
MimeTypegetExpectedMimeType()
TgetIndividualType()
LocationgetLocation()
StringgetName()
TgetRawType()
QNamegetSchemaType()
LocatablegetUpstream()
A PropertyInfoImpl is always referenced by its enclosing class, so return that as the upstream.
booleanhasAnnotation(Class<? extends Annotation> annotationType)
IDid()
booleaninlineBinaryData()
booleanisCollection()
protected voidlink()
Called after all the TypeInfos are collected into the governing TypeInfoSet.
protected Navigator<T,C,F,M>nav()
ClassInfoImpl<T,C,F,M>parent()
<A extends Annotation> AreadAnnotation(Class<A> annotationType)
protected AnnotationReader<T,C,F,M>reader()

Field Detail

parent

protected final ClassInfoImpl<T,C,F,M> parent

seed

protected final PropertySeed<T,C,F,M> seed
Object that reads annotations.

Constructor Detail

PropertyInfoImpl

protected PropertyInfoImpl(ClassInfoImpl<T,C,F,M> parent, PropertySeed<T,C,F,M> spi)

Method Detail

calcXmlName

protected final QName calcXmlName(XmlElement e)
Computes the tag name from a XmlElement by taking the defaulting into account.

calcXmlName

protected final QName calcXmlName(XmlElementWrapper e)
Computes the tag name from a XmlElementWrapper by taking the defaulting into account.

compareTo

public int compareTo(PropertyInfoImpl that)

displayName

public final String displayName()

getAdapter

public Adapter<T,C> getAdapter()
This is the default implementation of the getAdapter method defined on many of the PropertyInfo-derived classes.

getExpectedMimeType

public final MimeType getExpectedMimeType()

getIndividualType

public T getIndividualType()

getLocation

public Location getLocation()

getName

public final String getName()

getRawType

public T getRawType()

getSchemaType

public final QName getSchemaType()

getUpstream

public Locatable getUpstream()
A PropertyInfoImpl is always referenced by its enclosing class, so return that as the upstream.

hasAnnotation

public final boolean hasAnnotation(Class<? extends Annotation> annotationType)

id

public final ID id()

inlineBinaryData

public final boolean inlineBinaryData()

isCollection

public final boolean isCollection()

link

protected void link()
Called after all the TypeInfos are collected into the governing TypeInfoSet. Derived class can do additional actions to complete the model.

nav

protected final Navigator<T,C,F,M> nav()

parent

public ClassInfoImpl<T,C,F,M> parent()

readAnnotation

public final <A extends Annotation> A readAnnotation(Class<A> annotationType)

reader

protected final AnnotationReader<T,C,F,M> reader()