|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.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>
TransducedAccessor
for a list simple type.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class com.sun.xml.bind.v2.runtime.reflect.TransducedAccessor |
---|
TransducedAccessor.CompositeTransducedAccessorImpl<BeanT,ValueT> |
Constructor Summary | |
---|---|
ListTransducedAccessorImpl(Transducer<ItemT> xducer,
Accessor<BeanT,ListT> acc,
Lister<BeanT,ListT,ItemT,PackT> lister)
|
Method Summary | |
---|---|
void |
declareNamespace(BeanT bean,
XMLSerializer w)
Obtain the value of the field and declares the namespace URIs used in the value. |
boolean |
hasValue(BeanT bean)
Checks if the field has a value. |
void |
parse(BeanT bean,
java.lang.CharSequence lexical)
Parses the text value into the responsible field of the given bean. |
java.lang.String |
print(BeanT o)
Prints the responsible field of the given bean to the writer. |
boolean |
useNamespace()
|
Methods inherited from class com.sun.xml.bind.v2.runtime.reflect.DefaultTransducedAccessor |
---|
writeLeafElement, writeText |
Methods inherited from class com.sun.xml.bind.v2.runtime.reflect.TransducedAccessor |
---|
get |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ListTransducedAccessorImpl(Transducer<ItemT> xducer, Accessor<BeanT,ListT> acc, Lister<BeanT,ListT,ItemT,PackT> lister)
Method Detail |
---|
public boolean useNamespace()
useNamespace
in class TransducedAccessor<BeanT>
Transducer.useNamespace()
public void declareNamespace(BeanT bean, XMLSerializer w) throws AccessorException, org.xml.sax.SAXException
TransducedAccessor
declareNamespace
in class TransducedAccessor<BeanT>
AccessorException
org.xml.sax.SAXException
Transducer.declareNamespace(Object, XMLSerializer)
public java.lang.String print(BeanT o) throws AccessorException, org.xml.sax.SAXException
TransducedAccessor
Use XMLSerializer.getInstance()
to access to the namespace bindings
print
in class DefaultTransducedAccessor<BeanT>
AccessorException
org.xml.sax.SAXException
public void parse(BeanT bean, java.lang.CharSequence lexical) throws AccessorException, org.xml.sax.SAXException
TransducedAccessor
Use UnmarshallingContext.getInstance()
to access to the namespace bindings
parse
in class TransducedAccessor<BeanT>
AccessorException
- if the transducer is used to parse an user bean that uses XmlValue
,
then this exception may occur when it tries to set the leaf value to the bean.
org.xml.sax.SAXException
- if the parse method found an error, the error is reported, and then
the processing is aborted.public boolean hasValue(BeanT bean) throws AccessorException
TransducedAccessor
hasValue
in class TransducedAccessor<BeanT>
AccessorException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |