com.sun.xml.bind.v2.runtime.reflect.opt
Class TransducedAccessor_field_Integer

java.lang.Object
  extended by com.sun.xml.bind.v2.runtime.reflect.TransducedAccessor<T>
      extended by com.sun.xml.bind.v2.runtime.reflect.DefaultTransducedAccessor
          extended by com.sun.xml.bind.v2.runtime.reflect.opt.TransducedAccessor_field_Integer

public final class TransducedAccessor_field_Integer
extends DefaultTransducedAccessor

Template TransducedAccessor for a byte field.

All the TransducedAccessor_field are generated from TransducedAccessor_field_B y t e

See Also:
TransducedAccessor.get(com.sun.xml.bind.v2.runtime.JAXBContextImpl, com.sun.xml.bind.v2.model.runtime.RuntimeNonElementRef)

Nested Class Summary
 
Nested classes/interfaces inherited from class com.sun.xml.bind.v2.runtime.reflect.TransducedAccessor
TransducedAccessor.CompositeTransducedAccessorImpl<BeanT,ValueT>
 
Constructor Summary
TransducedAccessor_field_Integer()
           
 
Method Summary
 boolean hasValue(java.lang.Object o)
          Checks if the field has a value.
 void parse(java.lang.Object o, java.lang.CharSequence lexical)
          Parses the text value into the responsible field of the given bean.
 java.lang.String print(java.lang.Object o)
          Prints the responsible field of the given bean to the writer.
 void writeLeafElement(XMLSerializer w, Name tagName, java.lang.Object o, java.lang.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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TransducedAccessor_field_Integer

public TransducedAccessor_field_Integer()
Method Detail

print

public java.lang.String print(java.lang.Object o)
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 class DefaultTransducedAccessor
Returns:
if the accessor didn't yield a value, return null.

parse

public void parse(java.lang.Object o,
                  java.lang.CharSequence lexical)
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 class TransducedAccessor

hasValue

public boolean hasValue(java.lang.Object o)
Description copied from class: TransducedAccessor
Checks if the field has a value.

Specified by:
hasValue in class TransducedAccessor

writeLeafElement

public void writeLeafElement(XMLSerializer w,
                             Name tagName,
                             java.lang.Object o,
                             java.lang.String fieldName)
                      throws org.xml.sax.SAXException,
                             AccessorException,
                             java.io.IOException,
                             javax.xml.stream.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 class DefaultTransducedAccessor
Throws:
org.xml.sax.SAXException
AccessorException
java.io.IOException
javax.xml.stream.XMLStreamException