|
||||||||||
| 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.TypeInfoImpl<T,C,F,M>
com.sun.xml.bind.v2.model.impl.ClassInfoImpl<java.lang.reflect.Type,java.lang.Class,java.lang.reflect.Field,java.lang.reflect.Method>
com.sun.xml.bind.v2.model.impl.RuntimeClassInfoImpl
class RuntimeClassInfoImpl
| Nested Class Summary | |
|---|---|
(package private) static class |
RuntimeClassInfoImpl.RuntimePropertySeed
|
| Field Summary |
|---|
| Fields inherited from class com.sun.xml.bind.v2.model.impl.ClassInfoImpl |
|---|
attributeWildcard, clazz |
| Fields inherited from class com.sun.xml.bind.v2.model.impl.TypeInfoImpl |
|---|
builder, owner |
| Fields inherited from interface com.sun.xml.bind.v2.model.core.NonElement |
|---|
ANYTYPE_NAME |
| Constructor Summary | |
|---|---|
RuntimeClassInfoImpl(RuntimeModelBuilder modelBuilder,
Locatable upstream,
java.lang.Class clazz)
|
|
| Method Summary | ||
|---|---|---|
protected void |
checkFieldXmlLocation(java.lang.reflect.Field f)
This hook is used by RuntimeClassInfoImpl to look for XmlLocation. |
|
protected AccessorFactory |
createAccessorFactory(java.lang.Class clazz)
|
|
RuntimeClassInfoImpl.RuntimePropertySeed |
createAccessorSeed(java.lang.reflect.Method getter,
java.lang.reflect.Method setter)
Creates a new GetterSetterPropertySeed object. |
|
protected AttributePropertyInfoImpl |
createAttributeProperty(PropertySeed<java.lang.reflect.Type,java.lang.Class,java.lang.reflect.Field,java.lang.reflect.Method> seed)
|
|
protected ElementPropertyInfoImpl |
createElementProperty(PropertySeed<java.lang.reflect.Type,java.lang.Class,java.lang.reflect.Field,java.lang.reflect.Method> seed)
|
|
protected RuntimeClassInfoImpl.RuntimePropertySeed |
createFieldSeed(java.lang.reflect.Field field)
Creates a new FieldPropertySeed object. |
|
protected MapPropertyInfoImpl |
createMapProperty(PropertySeed<java.lang.reflect.Type,java.lang.Class,java.lang.reflect.Field,java.lang.reflect.Method> seed)
|
|
protected ReferencePropertyInfoImpl |
createReferenceProperty(PropertySeed<java.lang.reflect.Type,java.lang.Class,java.lang.reflect.Field,java.lang.reflect.Method> seed)
|
|
protected ValuePropertyInfoImpl |
createValueProperty(PropertySeed<java.lang.reflect.Type,java.lang.Class,java.lang.reflect.Field,java.lang.reflect.Method> seed)
|
|
protected XmlAccessorFactory |
findXmlAccessorFactoryAnnotation(java.lang.Class clazz)
|
|
|
getAttributeWildcard()
If ClassInfo.hasAttributeWildcard() is true,
returns the accessor to access the property. |
|
RuntimeClassInfoImpl |
getBaseClass()
Obtains the information about the base class. |
|
java.lang.reflect.Method |
getFactoryMethod()
|
|
Accessor<?,org.xml.sax.Locator> |
getLocatorField()
If this JAXB bean has a property annotated with XmlLocation,
this method returns it. |
|
java.util.List<? extends RuntimePropertyInfo> |
getProperties()
Returns all the properties newly declared in this class. |
|
RuntimePropertyInfo |
getProperty(java.lang.String name)
Gets the property that has the specified name. |
|
Transducer |
getTransducer()
This method doesn't take the reference properties defined on RuntimeNonElementRef into account (such as ID-ness.) |
|
void |
link()
Called after all the TypeInfos are collected into the TypeInfoImpl.owner. |
|
| Methods inherited from class com.sun.xml.bind.v2.model.impl.ClassInfoImpl |
|---|
asElement, canBeReferencedByIDREF, declaresAttributeWildcard, getClazz, getElementName, getLocation, getName, getScope, getSubstitutionHead, getType, getTypeName, hasAttributeWildcard, hasProperties, hasSubClasses, hasValueProperty, inheritsAttributeWildcard, isAbstract, isElement, isFinal, isOrdered, isSimpleType, readAnnotation, toString |
| Methods inherited from class com.sun.xml.bind.v2.model.impl.TypeInfoImpl |
|---|
getUpstream, nav, parseElementName, parseTypeName, parseTypeName, reader |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface com.sun.xml.bind.v2.model.core.ClassInfo |
|---|
declaresAttributeWildcard, getClazz, getName, hasAttributeWildcard, hasProperties, hasSubClasses, hasValueProperty, inheritsAttributeWildcard, isAbstract, isFinal, isOrdered |
| Methods inherited from interface com.sun.xml.bind.v2.model.core.MaybeElement |
|---|
asElement, getElementName, isElement |
| Methods inherited from interface com.sun.xml.bind.v2.model.core.NonElement |
|---|
getTypeName, isSimpleType |
| Methods inherited from interface com.sun.xml.bind.v2.model.core.TypeInfo |
|---|
canBeReferencedByIDREF, getType |
| Methods inherited from interface com.sun.xml.bind.v2.model.annotation.Locatable |
|---|
getLocation, getUpstream |
| Methods inherited from interface com.sun.xml.bind.v2.model.core.Element |
|---|
getElementName, getScope, getSubstitutionHead |
| Constructor Detail |
|---|
public RuntimeClassInfoImpl(RuntimeModelBuilder modelBuilder,
Locatable upstream,
java.lang.Class clazz)
| Method Detail |
|---|
protected AccessorFactory createAccessorFactory(java.lang.Class clazz)
protected XmlAccessorFactory findXmlAccessorFactoryAnnotation(java.lang.Class clazz)
public java.lang.reflect.Method getFactoryMethod()
getFactoryMethod in interface RuntimeClassInfogetFactoryMethod in class ClassInfoImpl<java.lang.reflect.Type,java.lang.Class,java.lang.reflect.Field,java.lang.reflect.Method>public final RuntimeClassInfoImpl getBaseClass()
ClassInfo
getBaseClass in interface ClassInfo<java.lang.reflect.Type,java.lang.Class>getBaseClass in interface RuntimeClassInfogetBaseClass in class ClassInfoImpl<java.lang.reflect.Type,java.lang.Class,java.lang.reflect.Field,java.lang.reflect.Method>Object.protected ReferencePropertyInfoImpl createReferenceProperty(PropertySeed<java.lang.reflect.Type,java.lang.Class,java.lang.reflect.Field,java.lang.reflect.Method> seed)
createReferenceProperty in class ClassInfoImpl<java.lang.reflect.Type,java.lang.Class,java.lang.reflect.Field,java.lang.reflect.Method>protected AttributePropertyInfoImpl createAttributeProperty(PropertySeed<java.lang.reflect.Type,java.lang.Class,java.lang.reflect.Field,java.lang.reflect.Method> seed)
createAttributeProperty in class ClassInfoImpl<java.lang.reflect.Type,java.lang.Class,java.lang.reflect.Field,java.lang.reflect.Method>protected ValuePropertyInfoImpl createValueProperty(PropertySeed<java.lang.reflect.Type,java.lang.Class,java.lang.reflect.Field,java.lang.reflect.Method> seed)
createValueProperty in class ClassInfoImpl<java.lang.reflect.Type,java.lang.Class,java.lang.reflect.Field,java.lang.reflect.Method>protected ElementPropertyInfoImpl createElementProperty(PropertySeed<java.lang.reflect.Type,java.lang.Class,java.lang.reflect.Field,java.lang.reflect.Method> seed)
createElementProperty in class ClassInfoImpl<java.lang.reflect.Type,java.lang.Class,java.lang.reflect.Field,java.lang.reflect.Method>protected MapPropertyInfoImpl createMapProperty(PropertySeed<java.lang.reflect.Type,java.lang.Class,java.lang.reflect.Field,java.lang.reflect.Method> seed)
createMapProperty in class ClassInfoImpl<java.lang.reflect.Type,java.lang.Class,java.lang.reflect.Field,java.lang.reflect.Method>public java.util.List<? extends RuntimePropertyInfo> getProperties()
ClassInfoThis excludes properties defined in the super class.
If the properties are ordered,
it will be returned in the order that appear in XML.
Otherwise it will be returned in no particular order.
Properties marked with XmlTransient will not show up
in this list. As far as JAXB is concerned, they are considered
non-existent.
getProperties in interface ClassInfo<java.lang.reflect.Type,java.lang.Class>getProperties in interface RuntimeClassInfogetProperties in class ClassInfoImpl<java.lang.reflect.Type,java.lang.Class,java.lang.reflect.Field,java.lang.reflect.Method>public RuntimePropertyInfo getProperty(java.lang.String name)
ClassInfoThis is just a convenience method for:
for( PropertyInfo p : getProperties() ) {
if(p.getName().equals(name))
return p;
}
return null;
getProperty in interface ClassInfo<java.lang.reflect.Type,java.lang.Class>getProperty in interface RuntimeClassInfogetProperty in class ClassInfoImpl<java.lang.reflect.Type,java.lang.Class,java.lang.reflect.Field,java.lang.reflect.Method>PropertyInfo.getName()public void link()
ClassInfoImplTypeInfos are collected into the TypeInfoImpl.owner.
link in class ClassInfoImpl<java.lang.reflect.Type,java.lang.Class,java.lang.reflect.Field,java.lang.reflect.Method>public <B> Accessor<B,java.util.Map<javax.xml.namespace.QName,java.lang.String>> getAttributeWildcard()
RuntimeClassInfoClassInfo.hasAttributeWildcard() is true,
returns the accessor to access the property.
getAttributeWildcard in interface RuntimeClassInfoClassInfo.hasAttributeWildcard()==true.Accessor#optimize()public Transducer getTransducer()
RuntimeNonElementRuntimeNonElementRef into account (such as ID-ness.)
getTransducer in interface RuntimeNonElementRuntimeNonElementRef.getTransducer()protected RuntimeClassInfoImpl.RuntimePropertySeed createFieldSeed(java.lang.reflect.Field field)
ClassInfoImplFieldPropertySeed object.
Derived class can override this method to create a sub-class.
createFieldSeed in class ClassInfoImpl<java.lang.reflect.Type,java.lang.Class,java.lang.reflect.Field,java.lang.reflect.Method>
public RuntimeClassInfoImpl.RuntimePropertySeed createAccessorSeed(java.lang.reflect.Method getter,
java.lang.reflect.Method setter)
ClassInfoImplGetterSetterPropertySeed object.
createAccessorSeed in class ClassInfoImpl<java.lang.reflect.Type,java.lang.Class,java.lang.reflect.Field,java.lang.reflect.Method>protected void checkFieldXmlLocation(java.lang.reflect.Field f)
ClassInfoImplRuntimeClassInfoImpl to look for XmlLocation.
checkFieldXmlLocation in class ClassInfoImpl<java.lang.reflect.Type,java.lang.Class,java.lang.reflect.Field,java.lang.reflect.Method>public Accessor<?,org.xml.sax.Locator> getLocatorField()
RuntimeClassInfoXmlLocation,
this method returns it.
getLocatorField in interface RuntimeClassInfo
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||