| Modifier and Type | Class and Description |
|---|---|
| pack-priv static class | |
| private static class | RuntimeClassInfoImpl.
|
| Modifier and Type | Field and Description |
|---|---|
| private AccessorFactory | |
| private Accessor | |
| private boolean | |
| private boolean | |
| private Transducer | |
| private Accessor | xmlLocationAccessor
If this class has a property annotated with |
| Access | Constructor and Description |
|---|---|
| public |
| accessorFactory | back to summary |
|---|---|
| private AccessorFactory accessorFactory | |
| attributeWildcardAccessor | back to summary |
|---|---|
| private Accessor<?, Map<QName, String>> attributeWildcardAccessor | |
| computedTransducer | back to summary |
|---|---|
| private boolean computedTransducer | |
| supressAccessorWarnings | back to summary |
|---|---|
| private boolean supressAccessorWarnings | |
| xducer | back to summary |
|---|---|
| private Transducer<ValueT> xducer | |
| xmlLocationAccessor | back to summary |
|---|---|
| private Accessor<?, Locator> xmlLocationAccessor If this class has a property annotated with Todo support method based XmlLocation | |
| RuntimeClassInfoImpl | back to summary |
|---|---|
| public RuntimeClassInfoImpl(RuntimeModelBuilder modelBuilder, Locatable upstream, Class<T> clazz) | |
| calcTransducer | back to summary |
|---|---|
| private Transducer Creates a transducer if this class is bound to a text in XML. | |
| checkFieldXmlLocation | back to summary |
|---|---|
| protected void checkFieldXmlLocation(Field f) Overrides org. Doc from org. This hook is used by
| |
| createAccessorFactory | back to summary |
|---|---|
| protected AccessorFactory createAccessorFactory(Class<T> clazz) | |
| createAccessorSeed | back to summary |
|---|---|
| public RuntimeClassInfoImpl. Overrides org. Doc from org. Creates a new
| |
| createAttributeProperty | back to summary |
|---|---|
| protected AttributePropertyInfo Overrides org.
| |
| createAttributeWildcardAccessor | back to summary |
|---|---|
| private Accessor Creates | |
| createElementProperty | back to summary |
|---|---|
| protected ElementPropertyInfo Overrides org.
| |
| createFieldSeed | back to summary |
|---|---|
| protected RuntimeClassInfoImpl. Overrides org. Doc from org. Creates a new Derived class can override this method to create a sub-class.
| |
| createMapProperty | back to summary |
|---|---|
| protected MapPropertyInfo Overrides org.
| |
| createReferenceProperty | back to summary |
|---|---|
| protected ReferencePropertyInfo Overrides org.
| |
| createValueProperty | back to summary |
|---|---|
| protected ValuePropertyInfo Overrides org.
| |
| findXmlAccessorFactoryAnnotation | back to summary |
|---|---|
| protected XmlAccessorFactory findXmlAccessorFactoryAnnotation(Class<T> clazz) | |
| getAttributeWildcard | back to summary |
|---|---|
| public <B> Accessor Implements org. Doc from org. If
| |
| getBaseClass | back to summary |
|---|---|
| public final RuntimeClassInfoImpl getBaseClass() Overrides org. Implements org. Doc from org. Obtains the information about the base class.
| |
| getFactoryMethod | back to summary |
|---|---|
| public Method getFactoryMethod() Overrides org. Implements org.
| |
| getLocatorField | back to summary |
|---|---|
| public Accessor Implements org. Doc from org. If this JAXB bean has a property annotated with
| |
| getProperties | back to summary |
|---|---|
| public List Overrides org. Implements org. Doc from org. Returns all the properties newly declared in this class. This excludes properties defined in the super class.
If the properties are
Properties marked with
| |
| getProperty | back to summary |
|---|---|
| public RuntimePropertyInfo getProperty(String name) Overrides org. Implements org. Doc from org. Gets the property that has the specified name. This is just a convenience method for:
for( PropertyInfo p : getProperties() ) {
if(p.getName().equals(name))
return p;
}
return null;
| |
| getTransducer | back to summary |
|---|---|
| public Transducer Implements org. Doc from org. This method doesn't take the reference properties defined on
| |
| link | back to summary |
|---|---|
| public void link() Overrides org. Doc from org. Called after all the
| |
| Modifier and Type | Field and Description |
|---|---|
| private final Accessor | |
| private final PropertySeed |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public Accessor | |
| public Location | getLocation()
Implements org. Gets the location object that this object points to. |
| public String | getName()
Implements org. The name of the property is a spec defined concept --- although it doesn't do so explicitly in anywhere. |
| public Type | getRawType()
Implements org. Gets the actual data type of the field. |
| public Locatable | getUpstream()
Implements org. Gets the upstream |
| public boolean | hasAnnotation(Class<? extends Annotation> annotationType)
Implements org. Returns true if the property has the specified annotation. |
| public <A extends Annotation> A | readAnnotation(Class<A> annotationType)
Implements org. Gets the value of the specified annotation from the given property. |
| acc | back to summary |
|---|---|
private final Accessor<BeanT, ValueT> acc
| |
| core | back to summary |
|---|---|
| private final PropertySeed<Type, Class<T>, Field, Method> core | |
| RuntimePropertySeed | back to summary |
|---|---|
| public RuntimePropertySeed(PropertySeed<Type, Class<T>, Field, Method> core, Accessor<BeanT, ValueT> acc) | |
| getAccessor | back to summary |
|---|---|
| public Accessor | |
| getLocation | back to summary |
|---|---|
| public Location getLocation() Implements org. Doc from org. Gets the location object that this object points to. This operation could be inefficient and costly.
| |
| getName | back to summary |
|---|---|
| public String getName() Implements org. Doc from org. The name of the property is a spec defined concept --- although it doesn't do so explicitly in anywhere.
| |
| getRawType | back to summary |
|---|---|
| public Type getRawType() Implements org. Doc from org. Gets the actual data type of the field. The data of the property is stored by using this type.
The difference between the
| |
| getUpstream | back to summary |
|---|---|
| public Locatable getUpstream() Implements org. Doc from org. Gets the upstream
| |
| hasAnnotation | back to summary |
|---|---|
| public boolean hasAnnotation(Class<? extends Annotation> annotationType) Implements org. Doc from org. Returns true if the property has the specified annotation.
Short for
| |
| readAnnotation | back to summary |
|---|---|
| public <A extends Annotation> A readAnnotation(Class<A> annotationType) Implements org. Doc from org. Gets the value of the specified annotation from the given property. When this method is used for a property that consists of a getter and setter, it returns the annotation on either of those methods. If both methods have the same annotation, it is an error.
| |
Transducer implementation used when this class maps to PCDATA in XML.
Todo
revisit the exception handling
| Modifier and Type | Field and Description |
|---|---|
| private final Class | |
| private final TransducedAccessor |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | declareNamespace(BeanT bean, XMLSerializer w)
Implements org. Declares the namespace URIs used in the given value to |
| public QName | getTypeName(BeanT instance)
Implements org. Transducers implicitly work against a single XML type,
but sometimes (most notably |
| public BeanT | parse(CharSequence lexical)
Implements org. Converts the lexical representation to a value object. |
| public CharSequence | print(BeanT o)
Implements org. Converts the given value to its lexical representation. |
| public boolean | useNamespace()
Implements org. If true, this doesn't declare any namespace,
and therefore |
| public void | writeLeafElement(XMLSerializer w, Name tagName, BeanT o, String fieldName)
Implements org. Sends the result of the |
| public void | writeText(XMLSerializer w, BeanT o, String fieldName)
Implements org. Sends the result of the |
| ownerClass | back to summary |
|---|---|
| private final Class<BeanT> ownerClass | |
| xacc | back to summary |
|---|---|
| private final TransducedAccessor<BeanT> xacc | |
| TransducerImpl | back to summary |
|---|---|
| public TransducerImpl(Class<BeanT> ownerClass, TransducedAccessor<BeanT> xacc) | |
| declareNamespace | back to summary |
|---|---|
| public void declareNamespace(BeanT bean, XMLSerializer w) throws AccessorException Implements org. Doc from org. Declares the namespace URIs used in the given value to
| |
| getTypeName | back to summary |
|---|---|
| public QName getTypeName(BeanT instance) Implements org. Doc from org. Transducers implicitly work against a single XML type,
but sometimes (most notably
| |
| parse | back to summary |
|---|---|
| public BeanT parse(CharSequence lexical) throws AccessorException, SAXException Implements org. Doc from org. Converts the lexical representation to a value object.
| |
| back to summary | |
|---|---|
| public CharSequence print(BeanT o) throws AccessorException Implements org. Doc from org. Converts the given value to its lexical representation. | |
| useNamespace | back to summary |
|---|---|
| public boolean useNamespace() Implements org. Doc from org. If true, this doesn't declare any namespace,
and therefore
| |
| writeLeafElement | back to summary |
|---|---|
| public void writeLeafElement(XMLSerializer w, Name tagName, BeanT o, String fieldName) throws IOException, SAXException, XMLStreamException, AccessorException Implements org. Doc from org. Sends the result of the
| |
| writeText | back to summary |
|---|---|
| public void writeText(XMLSerializer w, BeanT o, String fieldName) throws IOException, SAXException, XMLStreamException, AccessorException Implements org. Doc from org. Sends the result of the
| |