org.exolab.castor.xml
Class MarshalFramework

java.lang.Object
  extended byorg.exolab.castor.xml.MarshalFramework
Direct Known Subclasses:
Marshaller, UnmarshalHandler

abstract class MarshalFramework
extends java.lang.Object

A core class for common code shared throughout the Marshalling Framework

Version:
$Revision: 1.3 $ $Date: 2002/01/31 19:02:35 $
Author:
Keith Visco

Nested Class Summary
static class MarshalFramework.InheritanceMatch
          Used to store the information when we find a possible inheritance.
 
Field Summary
(package private) static java.lang.String JAVA_PREFIX
          The default prefix used for specifying the xsi:type as a classname instead of a schema name.
(package private) static java.lang.String QNAME_NAME
          The name of the QName type
static java.lang.String XSI_NAMESPACE
          The XSI Namespace URI
 
Constructor Summary
(package private) MarshalFramework()
           
 
Method Summary
(package private) static boolean isPrimitive(java.lang.Class type)
          Returns true if the given class should be treated as a primitive type.
static MarshalFramework.InheritanceMatch[] searchInheritance(java.lang.String name, java.lang.String namespace, XMLClassDescriptor classDesc, ClassDescriptorResolver cdResolver)
          Search there is a field descriptor which can accept one of the class descriptor which match the given name and namespace.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

XSI_NAMESPACE

public static final java.lang.String XSI_NAMESPACE
The XSI Namespace URI

See Also:
Constant Field Values

JAVA_PREFIX

static final java.lang.String JAVA_PREFIX
The default prefix used for specifying the xsi:type as a classname instead of a schema name. This is a Castor specific hack.

See Also:
Constant Field Values

QNAME_NAME

static final java.lang.String QNAME_NAME
The name of the QName type

See Also:
Constant Field Values
Constructor Detail

MarshalFramework

MarshalFramework()
Method Detail

isPrimitive

static boolean isPrimitive(java.lang.Class type)
Returns true if the given class should be treated as a primitive type. This method will return true for all Java primitive types, the set of primitive object wrappers, as well as Strings.

Returns:
true if the given class should be treated as a primitive type

searchInheritance

public static MarshalFramework.InheritanceMatch[] searchInheritance(java.lang.String name,
                                                                    java.lang.String namespace,
                                                                    XMLClassDescriptor classDesc,
                                                                    ClassDescriptorResolver cdResolver)
Search there is a field descriptor which can accept one of the class descriptor which match the given name and namespace.



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