public final class ListTransducedAccessorImpl<BeanT,ListT,ItemT,PackT> extends DefaultTransducedAccessor<BeanT>
TransducedAccessor
for a list simple type.TransducedAccessor.CompositeTransducedAccessorImpl<BeanT,ValueT>
Constructor and Description |
---|
ListTransducedAccessorImpl(Transducer<ItemT> xducer,
Accessor<BeanT,ListT> acc,
Lister<BeanT,ListT,ItemT,PackT> lister) |
Modifier and Type | Method and Description |
---|---|
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,
CharSequence lexical)
Parses the text value into the responsible field of the given bean.
|
String |
print(BeanT o)
Prints the responsible field of the given bean to the writer.
|
boolean |
useNamespace() |
writeLeafElement, writeText
get
public boolean useNamespace()
useNamespace
in class TransducedAccessor<BeanT>
Transducer.useNamespace()
public void declareNamespace(BeanT bean, XMLSerializer w) throws AccessorException, SAXException
TransducedAccessor
declareNamespace
in class TransducedAccessor<BeanT>
AccessorException
SAXException
Transducer.declareNamespace(Object, XMLSerializer)
public String print(BeanT o) throws AccessorException, SAXException
TransducedAccessor
Use XMLSerializer.getInstance()
to access to the namespace bindings
print
in class DefaultTransducedAccessor<BeanT>
AccessorException
SAXException
public void parse(BeanT bean, CharSequence lexical) throws AccessorException, 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.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
Copyright © 2018 JBoss by Red Hat. All rights reserved.