Module com.sun.xml.bind
Class TransducedAccessor_field_Integer
- java.lang.Object
-
- org.glassfish.jaxb.runtime.v2.runtime.reflect.TransducedAccessor<T>
-
- org.glassfish.jaxb.runtime.v2.runtime.reflect.DefaultTransducedAccessor
-
- org.glassfish.jaxb.runtime.v2.runtime.reflect.opt.TransducedAccessor_field_Integer
-
public final class TransducedAccessor_field_Integer extends DefaultTransducedAccessor
TemplateTransducedAccessorfor a byte field.All the TransducedAccessor_field are generated from
TransducedAccessor_field_B y t e- Author:
- Kohsuke Kawaguchi
- See Also:
TransducedAccessor.get(org.glassfish.jaxb.runtime.v2.runtime.JAXBContextImpl, org.glassfish.jaxb.runtime.v2.model.runtime.RuntimeNonElementRef)
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.glassfish.jaxb.runtime.v2.runtime.reflect.TransducedAccessor
TransducedAccessor.CompositeTransducedAccessorImpl<BeanT,ValueT>
-
-
Constructor Summary
Constructors Constructor Description TransducedAccessor_field_Integer()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanhasValue(Object o)Checks if the field has a value.voidparse(Object o, CharSequence lexical)Parses the text value into the responsible field of the given bean.Stringprint(Object o)Prints the responsible field of the given bean to the writer.voidwriteLeafElement(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 org.glassfish.jaxb.runtime.v2.runtime.reflect.DefaultTransducedAccessor
writeText
-
Methods inherited from class org.glassfish.jaxb.runtime.v2.runtime.reflect.TransducedAccessor
declareNamespace, get, useNamespace
-
-
-
-
Method Detail
-
print
public String print(Object o)
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- Returns:
- if the accessor didn't yield a value, return null.
-
parse
public void parse(Object o, CharSequence lexical)
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
-
hasValue
public boolean hasValue(Object o)
Description copied from class:TransducedAccessorChecks if the field has a value.- Specified by:
hasValuein classTransducedAccessor
-
writeLeafElement
public void writeLeafElement(XMLSerializer w, Name tagName, Object o, String fieldName) throws SAXException, AccessorException, IOException, XMLStreamException
Description copied from class:TransducedAccessorConvenience 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:
writeLeafElementin classDefaultTransducedAccessor- Throws:
SAXExceptionAccessorExceptionIOExceptionXMLStreamException
-
-