Class ListTransducedAccessorImpl<BeanT,ListT,ItemT,PackT>
java.lang.Object
com.sun.xml.bind.v2.runtime.reflect.TransducedAccessor<T>
com.sun.xml.bind.v2.runtime.reflect.DefaultTransducedAccessor<BeanT>
com.sun.xml.bind.v2.runtime.reflect.ListTransducedAccessorImpl<BeanT,ListT,ItemT,PackT>
public final class ListTransducedAccessorImpl<BeanT,ListT,ItemT,PackT>
extends DefaultTransducedAccessor<BeanT>
TransducedAccessor for a list simple type.- Author:
- Kohsuke Kawaguchi
-
Nested Class Summary
Nested classes/interfaces inherited from class com.sun.xml.bind.v2.runtime.reflect.TransducedAccessor
TransducedAccessor.CompositeTransducedAccessorImpl<BeanT,ValueT> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddeclareNamespace(BeanT bean, XMLSerializer w) Obtain the value of the field and declares the namespace URIs used in the value.booleanChecks if the field has a value.voidparse(BeanT bean, CharSequence lexical) Parses the text value into the responsible field of the given bean.Prints the responsible field of the given bean to the writer.booleanMethods inherited from class com.sun.xml.bind.v2.runtime.reflect.DefaultTransducedAccessor
writeLeafElement, writeTextMethods inherited from class com.sun.xml.bind.v2.runtime.reflect.TransducedAccessor
get
-
Constructor Details
-
ListTransducedAccessorImpl
-
-
Method Details
-
useNamespace
public boolean useNamespace()- Overrides:
useNamespacein classTransducedAccessor<BeanT>- See Also:
-
declareNamespace
Description copied from class:TransducedAccessorObtain the value of the field and declares the namespace URIs used in the value.- Overrides:
declareNamespacein classTransducedAccessor<BeanT>- Throws:
AccessorExceptionSAXException- See Also:
-
print
Description copied from class:TransducedAccessorPrints the responsible field of the given bean to the writer.Use
XMLSerializer.getInstance()to access to the namespace bindings- Specified by:
printin classDefaultTransducedAccessor<BeanT>- Returns:
- if the accessor didn't yield a value, return null.
- Throws:
AccessorExceptionSAXException
-
parse
Description copied from class:TransducedAccessorParses the text value into the responsible field of the given bean.Use
UnmarshallingContext.getInstance()to access to the namespace bindings- Specified by:
parsein classTransducedAccessor<BeanT>- Throws:
AccessorException- if the transducer is used to parse an user bean that usesXmlValue, then this exception may occur when it tries to set the leaf value to the bean.SAXException- if the parse method found an error, the error is reported, and then the processing is aborted.
-
hasValue
Description copied from class:TransducedAccessorChecks if the field has a value.- Specified by:
hasValuein classTransducedAccessor<BeanT>- Throws:
AccessorException
-