|
||||||||||
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 |
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 . |
|
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)
|
|
|
getAttributeWildcard()
If ClassInfo.hasAttributeWildcard() is true,
returns the accessor to access the property. |
|
RuntimeClassInfoImpl |
getBaseClass()
Obtains the information about the base class. |
|
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 TypeInfo s 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, inheritsAttributeWildcard, isAbstract, isElement, isFinal, isOrdered, isSimpleType, readAnnotation |
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, toString, wait, wait, wait |
Methods inherited from interface com.sun.xml.bind.v2.model.core.ClassInfo |
---|
declaresAttributeWildcard, getClazz, getName, hasAttributeWildcard, hasProperties, hasSubClasses, 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 |
---|
public final RuntimeClassInfoImpl getBaseClass()
ClassInfo
getBaseClass
in interface ClassInfo<java.lang.reflect.Type,java.lang.Class>
getBaseClass
in interface RuntimeClassInfo
getBaseClass
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()
ClassInfo
This 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 RuntimeClassInfo
getProperties
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)
ClassInfo
This 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 RuntimeClassInfo
getProperty
in class ClassInfoImpl<java.lang.reflect.Type,java.lang.Class,java.lang.reflect.Field,java.lang.reflect.Method>
public void link()
ClassInfoImpl
TypeInfo
s 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()
RuntimeClassInfo
ClassInfo.hasAttributeWildcard()
is true,
returns the accessor to access the property.
getAttributeWildcard
in interface RuntimeClassInfo
ClassInfo.hasAttributeWildcard()
==true.Accessor.optimize()
public Transducer getTransducer()
RuntimeNonElement
RuntimeNonElementRef
into account (such as ID-ness.)
getTransducer
in interface RuntimeNonElement
RuntimeNonElementRef.getTransducer()
protected RuntimeClassInfoImpl.RuntimePropertySeed createFieldSeed(java.lang.reflect.Field field)
ClassInfoImpl
FieldPropertySeed
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)
ClassInfoImpl
GetterSetterPropertySeed
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)
ClassInfoImpl
RuntimeClassInfoImpl
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()
RuntimeClassInfo
XmlLocation
,
this method returns it.
getLocatorField
in interface RuntimeClassInfo
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |