org.exolab.castor.xml

Class UnmarshalState


public class UnmarshalState
extends java.lang.Object

The state information class for the UnmarshalHandler
Version:
$Revision: 6807 $ $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) 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) 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) Object
key
The key for the object.
(package private) 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) 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) 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

Field Details

args

(package private)  UnmarshalHandler.Arguments args
Holds on to Constructor arguments

buffer

(package private)  StringBuffer buffer
Characters read in during unmarshalling

classDesc

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

derived

(package private)  boolean derived
Is this a derived field?

elementName

(package private)  String elementName
The xml element name of the current object

expectedIndex

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

fieldDesc

(package private)  XMLFieldDescriptor fieldDesc
The field descriptor for the Object

key

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

location

(package private)  String location
Holds the current location path

nil

(package private)  boolean nil
indicates if the xsi:nil='true' attribute was present on the element

object

(package private)  Object object
The current that we are unmarshalling to

parent

(package private)  UnmarshalState parent
A reference to the parent state.

primitiveOrImmutable

(package private)  boolean primitiveOrImmutable
Is the field a primitive or immutable type?

targetState

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

trailingWhitespaceRemoved

(package private)  boolean trailingWhitespaceRemoved

type

(package private)  Class type
The class of the object, mainly used for primitives

withinMultivaluedElement

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

wrapper

(package private)  boolean wrapper
Is this a wrapper state?

wsPreserve

(package private)  boolean wsPreserve
The whitespace preserve flag

Constructor Details

UnmarshalState

(package private)  UnmarshalState()

Method Details

clear

(package private)  void clear()
Reinitializes all variables

isUsed

(package private)  boolean isUsed(XMLFieldDescriptor descriptor)

markAsNotUsed

(package private)  void markAsNotUsed(XMLFieldDescriptor descriptor)

markAsUsed

(package private)  void markAsUsed(XMLFieldDescriptor descriptor)
Marks the given XMLFieldDescriptor as having been used
Parameters:
descriptor - the XMLFieldDescriptor to mark

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