org.exolab.castor.xml

Class UnmarshalState

class UnmarshalState extends Object

The state information class for the UnmarshalHandler

Version: $Revision: 6231 $ $Date: 2004-12-11 02:25:45 -0700 (Sat, 11 Dec 2004) $

Author: Keith Visco

Field Summary
UnmarshalHandler.Argumentsargs
Holds on to Constructor arguments
StringBufferbuffer
Characters read in during unmarshalling
XMLClassDescriptorclassDesc
The class descriptor for the Object, in case FieldDescriptor#getClassDescriptor returns null
booleanderived
Is this a derived field?
StringelementName
The xml element name of the current object
XMLFieldDescriptorfieldDesc
The field descriptor for the Object
Objectkey
The key for the object.
Stringlocation
Holds the current location path
booleannil
indicates if the xsi:nil='true' attribute was present on the element
Objectobject
The current that we are unmarshalling to
UnmarshalStateparent
A reference to the parent state.
booleanprimitiveOrImmutable
Is the field a primitive or immutable type?
UnmarshalStatetargetState
The UnmarshalState which contains information about the parent object for object containted within this state.
booleantrailingWhitespaceRemoved
Classtype
The class of the object, mainly used for primitives
booleanwrapper
Is this a wrapper state?
booleanwsPreserve
The whitespace preserve flag
Constructor Summary
UnmarshalState()
Method Summary
voidclear()
Reinitializes all variables
booleanisUsed(XMLFieldDescriptor descriptor)
voidmarkAsNotUsed(XMLFieldDescriptor descriptor)
voidmarkAsUsed(XMLFieldDescriptor descriptor)
Marks the given XMLFieldDescriptor as having been used

Field Detail

args

UnmarshalHandler.Arguments args
Holds on to Constructor arguments

buffer

StringBuffer buffer
Characters read in during unmarshalling

classDesc

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

derived

boolean derived
Is this a derived field?

elementName

String elementName
The xml element name of the current object

fieldDesc

XMLFieldDescriptor fieldDesc
The field descriptor for the Object

key

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

location

String location
Holds the current location path

nil

boolean nil
indicates if the xsi:nil='true' attribute was present on the element

object

Object object
The current that we are unmarshalling to

parent

UnmarshalState parent
A reference to the parent state.

primitiveOrImmutable

boolean primitiveOrImmutable
Is the field a primitive or immutable type?

targetState

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

trailingWhitespaceRemoved

boolean trailingWhitespaceRemoved

type

Class type
The class of the object, mainly used for primitives

wrapper

boolean wrapper
Is this a wrapper state?

wsPreserve

boolean wsPreserve
The whitespace preserve flag

Constructor Detail

UnmarshalState

UnmarshalState()

Method Detail

clear

void clear()
Reinitializes all variables

isUsed

boolean isUsed(XMLFieldDescriptor descriptor)

markAsNotUsed

void markAsNotUsed(XMLFieldDescriptor descriptor)

markAsUsed

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

Parameters: descriptor the XMLFieldDescriptor to mark

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