|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.sun.xml.bind.v2.model.impl.PropertyInfoImpl<TypeT,ClassDeclT,FieldT,MethodT>
com.sun.xml.bind.v2.model.impl.ERPropertyInfoImpl<T,C,F,M>
com.sun.xml.bind.v2.model.impl.ReferencePropertyInfoImpl<T,C,F,M>
class ReferencePropertyInfoImpl<T,C,F,M>
Implementation of ReferencePropertyInfo
.
Field Summary |
---|
Fields inherited from class com.sun.xml.bind.v2.model.impl.PropertyInfoImpl |
---|
parent, seed |
Constructor Summary | |
---|---|
ReferencePropertyInfoImpl(ClassInfoImpl<T,C,F,M> classInfo,
PropertySeed<T,C,F,M> seed)
|
Method Summary | |
---|---|
C |
getDOMHandler()
If this property supports the wildcard, returns its DOM handler. |
Set<? extends Element<T,C>> |
getElements()
Returns the information about the possible elements in this property. |
WildcardMode |
getWildcard()
If this property supports the wildcard, returns its mode. |
boolean |
isMixed()
Returns true if this property can hold String s to represent
mixed content model. |
boolean |
isRequired()
Returns true if this element is mandatory. |
PropertyKind |
kind()
Gets the kind of this proeprty. |
protected void |
link()
Called after all the TypeInfo s are collected into the governing TypeInfoSet . |
Set<? extends Element<T,C>> |
ref()
List of TypeInfo s that this property references. |
Methods inherited from class com.sun.xml.bind.v2.model.impl.ERPropertyInfoImpl |
---|
getXmlName, isCollectionNillable, isCollectionRequired |
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, 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.ReferencePropertyInfo |
---|
getAdapter, getXmlName, isCollectionNillable, isCollectionRequired |
Methods inherited from interface com.sun.xml.bind.v2.model.core.PropertyInfo |
---|
displayName, getExpectedMimeType, getName, getSchemaType, id, inlineBinaryData, isCollection, parent |
Methods inherited from interface com.sun.xml.bind.v2.model.annotation.AnnotationSource |
---|
hasAnnotation, readAnnotation |
Constructor Detail |
---|
public ReferencePropertyInfoImpl(ClassInfoImpl<T,C,F,M> classInfo, PropertySeed<T,C,F,M> seed)
Method Detail |
---|
public Set<? extends Element<T,C>> ref()
ReferencePropertyInfo
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..
If this ReferencePropertyInfo
has a wildcard in it,
then the returned list will contain WildcardTypeInfo
.
ref
in interface PropertyInfo<T,C>
ref
in interface ReferencePropertyInfo<T,C>
public PropertyKind kind()
PropertyInfo
kind
in interface PropertyInfo<T,C>
public Set<? extends Element<T,C>> getElements()
ReferencePropertyInfo
As of 2004/08/17, the spec only allows you to use different element names when a property is a collection, but I think there's really no reason to limit it there --- if the user wants to use a different tag name for different objects, I don't see why this can be limited to collections.
So this is a generalization of the spec. We always allow a property to have multiple types and use different tag names for it, depending on the actual type.
In most of the cases, this collection only contains 1 item. So the runtime system is encouraged to provide a faster code-path that is optimized toward such cases.
getElements
in interface ReferencePropertyInfo<T,C>
public boolean isRequired()
ReferencePropertyInfo
isRequired
in interface ReferencePropertyInfo<T,C>
protected void link()
PropertyInfoImpl
TypeInfo
s are collected into the governing TypeInfoSet
.
Derived class can do additional actions to complete the model.
link
in class PropertyInfoImpl<T,C,F,M>
public final boolean isMixed()
ReferencePropertyInfo
String
s to represent
mixed content model.
isMixed
in interface ReferencePropertyInfo<T,C>
public final WildcardMode getWildcard()
ReferencePropertyInfo
getWildcard
in interface ReferencePropertyInfo<T,C>
public final C getDOMHandler()
ReferencePropertyInfo
getDOMHandler
in interface ReferencePropertyInfo<T,C>
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |