org.exolab.castor.xml
Class UnmarshalState

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

 class UnmarshalState
extends java.lang.Object

The state information class for the UnmarshalHandler

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
(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
(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

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-2004. All rights reserved http://www.intalio.com