|
||||||||||
| 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 | |
|---|---|
void |
addType(PropertyInfoImpl<T,C,F,M> info)
|
C |
getDOMHandler()
If this property supports the wildcard, returns its DOM handler. |
java.util.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 Strings 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 TypeInfos are collected into the governing TypeInfoSet. |
java.util.Set<? extends Element<T,C>> |
ref()
List of TypeInfos 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 java.util.Set<? extends Element<T,C>> ref()
ReferencePropertyInfoTypeInfos 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 java.util.Set<? extends Element<T,C>> getElements()
ReferencePropertyInfoAs 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()
PropertyInfoImplTypeInfos 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 void addType(PropertyInfoImpl<T,C,F,M> info)
addType in interface DummyPropertyInfo<T,C,F,M>public final boolean isMixed()
ReferencePropertyInfoStrings 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 | |||||||||