Uses of Class
com.sun.xml.bind.v2.runtime.reflect.Accessor
-
Packages that use Accessor Package Description com.sun.xml.bind com.sun.xml.bind.v2.model.runtime The specialization ofcom.sun.xml.bind.v2.model.core
for the runtime.com.sun.xml.bind.v2.runtime.property com.sun.xml.bind.v2.runtime.reflect Abstraction around accessing data of actual objects.com.sun.xml.bind.v2.runtime.reflect.opt com.sun.xml.bind.v2.runtime.unmarshaller -
-
Uses of Accessor in com.sun.xml.bind
Methods in com.sun.xml.bind that return Accessor Modifier and Type Method Description Accessor
AccessorFactory. createFieldAccessor(java.lang.Class bean, java.lang.reflect.Field f, boolean readOnly)
Access a field of the class.Accessor
AccessorFactoryImpl. createFieldAccessor(java.lang.Class bean, java.lang.reflect.Field field, boolean readOnly)
Access a field of the class.Accessor
AccessorFactoryImpl. createFieldAccessor(java.lang.Class bean, java.lang.reflect.Field field, boolean readOnly, boolean supressWarning)
Access a field of the class.Accessor
InternalAccessorFactory. createFieldAccessor(java.lang.Class bean, java.lang.reflect.Field f, boolean readOnly, boolean supressWarnings)
Access a field of the class.Accessor
AccessorFactory. createPropertyAccessor(java.lang.Class bean, java.lang.reflect.Method getter, java.lang.reflect.Method setter)
Access a property of the class.Accessor
AccessorFactoryImpl. createPropertyAccessor(java.lang.Class bean, java.lang.reflect.Method getter, java.lang.reflect.Method setter)
Access a property of the class. -
Uses of Accessor in com.sun.xml.bind.v2.model.runtime
Methods in com.sun.xml.bind.v2.model.runtime that return Accessor Modifier and Type Method Description Accessor
RuntimePropertyInfo. getAccessor()
Gets theAccessor
for this property.<BeanT> Accessor<BeanT,java.util.Map<javax.xml.namespace.QName,java.lang.String>>
RuntimeClassInfo. getAttributeWildcard()
IfClassInfo.hasAttributeWildcard()
is true, returns the accessor to access the property.<BeanT> Accessor<BeanT,org.xml.sax.Locator>
RuntimeClassInfo. getLocatorField()
If this JAXB bean has a property annotated withXmlLocation
, this method returns it. -
Uses of Accessor in com.sun.xml.bind.v2.runtime.property
Methods in com.sun.xml.bind.v2.runtime.property that return Accessor Modifier and Type Method Description Accessor
Property. getElementPropertyAccessor(java.lang.String nsUri, java.lang.String localName)
If this property is mapped to the specified element, return an accessor to it. -
Uses of Accessor in com.sun.xml.bind.v2.runtime.reflect
Subclasses of Accessor in com.sun.xml.bind.v2.runtime.reflect Modifier and Type Class Description static class
Accessor.FieldReflection<BeanT,ValueT>
Accessor
that uses Java reflection to access a field.static class
Accessor.GetterOnlyReflection<BeanT,ValueT>
A version ofAccessor.GetterSetterReflection
that doesn't have any setter.static class
Accessor.GetterSetterReflection<BeanT,ValueT>
Accessor
that uses Java reflection to access a getter and a setter.static class
Accessor.ReadOnlyFieldReflection<BeanT,ValueT>
Read-only access toField
.static class
Accessor.SetterOnlyReflection<BeanT,ValueT>
A version ofAccessor.GetterSetterReflection
thaat doesn't have any getter.class
NullSafeAccessor<B,V,P>
Accessor
wrapper that replaces a null with an empty collection.Fields in com.sun.xml.bind.v2.runtime.reflect declared as Accessor Modifier and Type Field Description protected Accessor<BeanT,ValueT>
TransducedAccessor.CompositeTransducedAccessorImpl. acc
static Accessor<javax.xml.bind.JAXBElement,java.lang.Object>
Accessor. JAXB_ELEMENT_VALUE
Accessor
forJAXBElement.getValue()
.Methods in com.sun.xml.bind.v2.runtime.reflect that return Accessor Modifier and Type Method Description <T> Accessor<BeanT,T>
Accessor. adapt(Adapter<java.lang.reflect.Type,java.lang.Class> adapter)
<T> Accessor<BeanT,T>
Accessor. adapt(java.lang.Class<T> targetType, java.lang.Class<? extends javax.xml.bind.annotation.adapters.XmlAdapter<T,ValueT>> adapter)
static <A,B>
Accessor<A,B>Accessor. getErrorInstance()
Gets the specialAccessor
used to recover from errors.Accessor<BeanT,ValueT>
Accessor.FieldReflection. optimize(JAXBContextImpl context)
Accessor<BeanT,ValueT>
Accessor.GetterSetterReflection. optimize(JAXBContextImpl context)
Accessor<BeanT,ValueT>
Accessor. optimize(JAXBContextImpl context)
Returns the optimized version of the same accessor.Accessor<BeanT,ValueT>
Accessor.ReadOnlyFieldReflection. optimize(JAXBContextImpl context)
Methods in com.sun.xml.bind.v2.runtime.reflect with parameters of type Accessor Modifier and Type Method Description void
Lister.CollectionLister. endPacking(T collection, BeanT bean, Accessor<BeanT,T> acc)
abstract void
Lister. endPacking(PackT pack, BeanT bean, Accessor<BeanT,PropT> acc)
Finally, call this method to wraps up thepack
.void
Lister.CollectionLister. reset(BeanT bean, Accessor<BeanT,T> acc)
abstract void
Lister. reset(BeanT o, Accessor<BeanT,PropT> acc)
Clears the values of the property.T
Lister.CollectionLister. startPacking(BeanT bean, Accessor<BeanT,T> acc)
abstract PackT
Lister. startPacking(BeanT bean, Accessor<BeanT,PropT> acc)
Setting values to a multi-value property starts by creating a transient object called "pack" from the current field.Constructors in com.sun.xml.bind.v2.runtime.reflect with parameters of type Accessor Constructor Description CompositeTransducedAccessorImpl(JAXBContextImpl context, Transducer<ValueT> xducer, Accessor<BeanT,ValueT> acc)
ListTransducedAccessorImpl(Transducer<ItemT> xducer, Accessor<BeanT,ListT> acc, Lister<BeanT,ListT,ItemT,PackT> lister)
NullSafeAccessor(Accessor<B,V> core, Lister<B,V,?,P> lister)
-
Uses of Accessor in com.sun.xml.bind.v2.runtime.reflect.opt
Subclasses of Accessor in com.sun.xml.bind.v2.runtime.reflect.opt Modifier and Type Class Description class
FieldAccessor_Boolean
TemplateAccessor
for boolean fields.class
FieldAccessor_Byte
TemplateAccessor
for byte fields.class
FieldAccessor_Character
TemplateAccessor
for char fields.class
FieldAccessor_Double
TemplateAccessor
for double fields.class
FieldAccessor_Float
TemplateAccessor
for float fields.class
FieldAccessor_Integer
TemplateAccessor
for int fields.class
FieldAccessor_Long
TemplateAccessor
for long fields.class
FieldAccessor_Ref
TemplateAccessor
for reference type fields.class
FieldAccessor_Short
TemplateAccessor
for short fields.class
MethodAccessor_Boolean
TemplateAccessor
for boolean getter/setter.class
MethodAccessor_Byte
TemplateAccessor
for boolean getter/setter.class
MethodAccessor_Character
TemplateAccessor
for boolean getter/setter.class
MethodAccessor_Double
TemplateAccessor
for boolean getter/setter.class
MethodAccessor_Float
TemplateAccessor
for boolean getter/setter.class
MethodAccessor_Integer
TemplateAccessor
for boolean getter/setter.class
MethodAccessor_Long
TemplateAccessor
for boolean getter/setter.class
MethodAccessor_Ref
TemplateAccessor
for reference types getter/setter.class
MethodAccessor_Short
TemplateAccessor
for boolean getter/setter.Methods in com.sun.xml.bind.v2.runtime.reflect.opt that return Accessor Modifier and Type Method Description static <B,V>
Accessor<B,V>OptimizedAccessorFactory. get(java.lang.reflect.Field field)
Gets the optimizedAccessor
that accesses the given field.static <B,V>
Accessor<B,V>OptimizedAccessorFactory. get(java.lang.reflect.Method getter, java.lang.reflect.Method setter)
Gets the optimizedAccessor
that accesses the given getter/setter. -
Uses of Accessor in com.sun.xml.bind.v2.runtime.unmarshaller
Methods in com.sun.xml.bind.v2.runtime.unmarshaller with parameters of type Accessor Modifier and Type Method Description void
Scope. add(Accessor<BeanT,PropT> acc, Lister<BeanT,PropT,ItemT,PackT> lister, ItemT value)
Adds a new item to this packing scope.void
StructureLoader. init(JAXBContextImpl context, ClassBeanInfoImpl beanInfo, Accessor<?,java.util.Map<javax.xml.namespace.QName,java.lang.String>> attWildcard)
Completes the initialization.void
Scope. start(Accessor<BeanT,PropT> acc, Lister<BeanT,PropT,ItemT,PackT> lister)
Starts the packing scope, without adding any item.Constructors in com.sun.xml.bind.v2.runtime.unmarshaller with parameters of type Accessor Constructor Description LeafPropertyXsiLoader(Loader defaultLoader, TransducedAccessor xacc, Accessor acc)
Single(Loader l, Accessor acc)
-