org.exolab.castor.xml
Class UnmarshalState

java.lang.Object
  extended by org.exolab.castor.xml.UnmarshalState

public class UnmarshalState
extends java.lang.Object

The state information class for the UnmarshalHandler.

Version:
$Revision: 8145 $ $Date: 2004-12-11 02:25:45 -0700 (Sat, 11 Dec 2004) $
Author:
Keith Visco

Field Summary
(package private)  UnmarshalHandler.Arguments _args
          Holds on to Constructor arguments.
(package private)  java.lang.StringBuffer _buffer
          Characters read in during unmarshalling.
(package private)  XMLClassDescriptor _classDesc
          The class descriptor for the Object, in case FieldDescriptor#getClassDescriptor returns null.
(package private)  boolean _derived
          Is this a derived field?
(package private)  java.lang.String _elementName
          The xml element name of the current object.
 int _expectedIndex
          Index of next expected sequence element; used during validation.
(package private)  XMLFieldDescriptor _fieldDesc
          The field descriptor for the Object.
(package private)  java.lang.Object _key
          The key for the object.
(package private)  java.lang.String _location
          Holds the current location path.
(package private)  boolean _nil
          Indicates if the xsi:nil='true' attribute was present on the element.
(package private)  java.lang.Object _object
          The current that we are unmarshalling to.
(package private)  UnmarshalState _parent
          A reference to the parent state.
(package private)  boolean _primitiveOrImmutable
          Is the field a primitive or immutable type?
(package private)  UnmarshalState _targetState
          The UnmarshalState which contains information about the parent object for object containted within this state.
(package private)  boolean _trailingWhitespaceRemoved
           
(package private)  java.lang.Class _type
          The class of the object, mainly used for primitives.
 boolean _withinMultivaluedElement
          Indicates (during validation) whether the current field descriptor points to a multi-valued element.
(package private)  boolean _wrapper
          Is this a wrapper state?
(package private)  boolean _wsPreserve
          The whitespace preserve flag.
 
Constructor Summary
UnmarshalState()
           
 
Method Summary
(package private)  void clear()
          Reinitializes all variables
(package private)  boolean isUsed(XMLFieldDescriptor descriptor)
           
(package private)  void markAsNotUsed(XMLFieldDescriptor descriptor)
           
(package private)  void markAsUsed(XMLFieldDescriptor descriptor)
          Marks the given XMLFieldDescriptor as having been used.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_args

UnmarshalHandler.Arguments _args
Holds on to Constructor arguments.


_location

java.lang.String _location
Holds the current location path.


_nil

boolean _nil
Indicates if the xsi:nil='true' attribute was present on the element.


_elementName

java.lang.String _elementName
The xml element name of the current object.


_buffer

java.lang.StringBuffer _buffer
Characters read in during unmarshalling.


_key

java.lang.Object _key
The key for the object. This may be null if no key or identity has been specified.


_object

java.lang.Object _object
The current that we are unmarshalling to.


_type

java.lang.Class _type
The class of the object, mainly used for primitives.


_fieldDesc

XMLFieldDescriptor _fieldDesc
The field descriptor for the Object.


_classDesc

XMLClassDescriptor _classDesc
The class descriptor for the Object, in case FieldDescriptor#getClassDescriptor returns null.


_primitiveOrImmutable

boolean _primitiveOrImmutable
Is the field a primitive or immutable type?


_derived

boolean _derived
Is this a derived field?


_wrapper

boolean _wrapper
Is this a wrapper state?


_wsPreserve

boolean _wsPreserve
The whitespace preserve flag.


_trailingWhitespaceRemoved

boolean _trailingWhitespaceRemoved

_expectedIndex

public int _expectedIndex
Index of next expected sequence element; used during validation.


_withinMultivaluedElement

public boolean _withinMultivaluedElement
Indicates (during validation) whether the current field descriptor points to a multi-valued element.


_targetState

UnmarshalState _targetState
The UnmarshalState which contains information about the parent object for object containted within this state. Used when handling element containers/wrappers.


_parent

UnmarshalState _parent
A reference to the parent state.

Constructor Detail

UnmarshalState

UnmarshalState()
Method Detail

clear

void clear()
Reinitializes all variables


markAsUsed

void markAsUsed(XMLFieldDescriptor descriptor)
Marks the given XMLFieldDescriptor as having been used.

Parameters:
descriptor - the XMLFieldDescriptor to mark.

markAsNotUsed

void markAsNotUsed(XMLFieldDescriptor descriptor)

isUsed

boolean isUsed(XMLFieldDescriptor descriptor)


Intalio Inc. (C) 1999-2008. All rights reserved http://www.intalio.com