|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.exolab.castor.xml.MarshalFramework
A core class for common code shared throughout the Marshalling Framework
| Nested Class Summary | |
|---|---|
static class |
MarshalFramework.InheritanceMatch
Used to store the information when we find a possible inheritance. |
(package private) class |
MarshalFramework.InternalXMLClassDescriptor
An internal implementation of XMLClassDescriptor used by the Unmarshaller and Marshaller... |
| 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 |
static java.lang.String |
XSI_NO_NAMESPACE_SCHEMA_LOCATION
The name of the no namespace schema location attribute |
static java.lang.String |
XSI_SCHEMA_LOCATION
The name of the Schema location attribute |
| Constructor Summary | |
|---|---|
(package private) |
MarshalFramework()
|
| Method Summary | |
|---|---|
CollectionHandler |
getCollectionHandler(java.lang.Class clazz)
Returns the CollectionHandler associated with the given collection, or null if no such handler exists. |
(package private) static boolean |
hasFieldsAtLocation(java.lang.String location,
XMLClassDescriptor classDesc)
Returns true if any of the fields associated with the given XMLClassDescriptor are located at, or beneath, the given location. |
static boolean |
isCollection(java.lang.Class clazz)
Returns true if the given Class is a considered a collection by the marshalling framework. |
(package private) static boolean |
isPrimitive(java.lang.Class type)
Returns true if the given class should be treated as a primitive type. |
static boolean |
namespaceEquals(java.lang.String ns1,
java.lang.String ns2)
Compares the given namespaces (as strings) for equality. |
(package private) static boolean |
primitiveOrWrapperEquals(java.lang.Class a,
java.lang.Class b)
Returns true if the given classes are both the same primitive or primitive wrapper class. |
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 |
public static final java.lang.String XSI_NAMESPACE
public static final java.lang.String XSI_SCHEMA_LOCATION
public static final java.lang.String XSI_NO_NAMESPACE_SCHEMA_LOCATION
static final java.lang.String JAVA_PREFIX
static final java.lang.String QNAME_NAME
| Constructor Detail |
MarshalFramework()
| Method Detail |
public static boolean isCollection(java.lang.Class clazz)
public CollectionHandler getCollectionHandler(java.lang.Class clazz)
static boolean isPrimitive(java.lang.Class type)
static final boolean hasFieldsAtLocation(java.lang.String location,
XMLClassDescriptor classDesc)
location - the location to compare againstclassDesc - the XMLClassDescriptor in which to check the field
locations
public static boolean namespaceEquals(java.lang.String ns1,
java.lang.String ns2)
ns1 - the namespace to compare to argument ns2ns2 - the namespace to compare to argument ns1
static boolean primitiveOrWrapperEquals(java.lang.Class a,
java.lang.Class b)
public static MarshalFramework.InheritanceMatch[] searchInheritance(java.lang.String name,
java.lang.String namespace,
XMLClassDescriptor classDesc,
ClassDescriptorResolver cdResolver)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||