Class TransducedAccessor_method_Integer
java.lang.Object
com.sun.xml.bind.v2.runtime.reflect.TransducedAccessor
com.sun.xml.bind.v2.runtime.reflect.DefaultTransducedAccessor
com.sun.xml.bind.v2.runtime.reflect.opt.TransducedAccessor_method_Integer
Template
TransducedAccessor
for a byte field.
All the TransducedAccessor_field are generated from TransducedAccessor_field_B y t e
- Author:
- Kohsuke Kawaguchi
- See Also:
-
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 TypeMethodDescriptionboolean
Checks if the field has a value.void
parse
(Object o, 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.void
writeLeafElement
(XMLSerializer w, Name tagName, Object o, String fieldName) Convenience method to write the value as a text inside an element without any attributes.Methods inherited from class com.sun.xml.bind.v2.runtime.reflect.DefaultTransducedAccessor
writeText
Methods inherited from class com.sun.xml.bind.v2.runtime.reflect.TransducedAccessor
declareNamespace, get, useNamespace
-
Constructor Details
-
TransducedAccessor_method_Integer
public TransducedAccessor_method_Integer()
-
-
Method Details
-
print
Description copied from class:TransducedAccessor
Prints the responsible field of the given bean to the writer.Use
XMLSerializer.getInstance()
to access to the namespace bindings- Specified by:
print
in classDefaultTransducedAccessor
- Returns:
- if the accessor didn't yield a value, return null.
-
parse
Description copied from class:TransducedAccessor
Parses the text value into the responsible field of the given bean.Use
UnmarshallingContext.getInstance()
to access to the namespace bindings- Specified by:
parse
in classTransducedAccessor
-
hasValue
Description copied from class:TransducedAccessor
Checks if the field has a value.- Specified by:
hasValue
in classTransducedAccessor
-
writeLeafElement
public void writeLeafElement(XMLSerializer w, Name tagName, Object o, String fieldName) throws SAXException, AccessorException, IOException, XMLStreamException Description copied from class:TransducedAccessor
Convenience method to write the value as a text inside an element without any attributes. Can be overridden for improved performance.The callee assumes that there's an associated value in the field. No @xsi:type handling is expected.
- Overrides:
writeLeafElement
in classDefaultTransducedAccessor
- Throws:
SAXException
AccessorException
IOException
XMLStreamException
-