org.apache.geronimo.schema
Class SchemaConversionUtils

java.lang.Object
  extended by org.apache.geronimo.schema.SchemaConversionUtils

public class SchemaConversionUtils
extends Object


Field Summary
static String J2EE_NAMESPACE
           
static String JAVAEE_NAMESPACE
           
 
Method Summary
static boolean convertSchemaVersion(org.apache.xmlbeans.XmlCursor cursor, String namespace, String schemaLocationURL, String version)
           
static boolean convertSingleElementToGeronimoSubSchemas(org.apache.xmlbeans.XmlCursor cursor, org.apache.xmlbeans.XmlCursor end)
           
static void convertToDescriptionGroup(String namespace, org.apache.xmlbeans.XmlCursor cursor, org.apache.xmlbeans.XmlCursor moveable)
          Reorders elements to match descriptionGroup
static void convertToEnvEntryGroup(String namespace, org.apache.xmlbeans.XmlCursor cursor, org.apache.xmlbeans.XmlCursor moveable)
           
static void convertToGeronimoSubSchemas(org.apache.xmlbeans.XmlCursor cursor)
           
static void convertToJNDIEnvironmentRefsGroup(String namespace, org.apache.xmlbeans.XmlCursor cursor, org.apache.xmlbeans.XmlCursor moveable)
           
static boolean convertToSchema(org.apache.xmlbeans.XmlCursor cursor, String namespace, String schemaLocationURL, String version)
           
static void convertToTldAttribute(String namespace, org.apache.xmlbeans.XmlCursor cursor, org.apache.xmlbeans.XmlCursor moveable)
           
static void convertToTldInitParam(String namespace, org.apache.xmlbeans.XmlCursor cursor, org.apache.xmlbeans.XmlCursor moveable)
           
static void convertToTldTag(String namespace, org.apache.xmlbeans.XmlCursor cursor, org.apache.xmlbeans.XmlCursor moveable)
           
static void convertToTldValidator(String namespace, org.apache.xmlbeans.XmlCursor cursor, org.apache.xmlbeans.XmlCursor moveable)
           
static void convertToTldVariable(String namespace, org.apache.xmlbeans.XmlCursor cursor, org.apache.xmlbeans.XmlCursor moveable)
           
static boolean findNestedElement(org.apache.xmlbeans.XmlCursor cursor, QName desiredElement)
           
static boolean findNestedElement(org.apache.xmlbeans.XmlCursor cursor, String desiredElement)
           
static org.apache.xmlbeans.XmlObject fixGeronimoSchema(org.apache.xmlbeans.XmlObject rawPlan, QName desiredElement, org.apache.xmlbeans.SchemaType desiredType)
           
static org.apache.xmlbeans.XmlObject getNestedObject(org.apache.xmlbeans.XmlObject xmlObject, QName desiredElement)
           
static org.apache.xmlbeans.XmlObject getNestedObjectAsType(org.apache.xmlbeans.XmlObject xmlObject, QName desiredElement, org.apache.xmlbeans.SchemaType type)
           
static void registerNamespaceConversions(Map conversions)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

J2EE_NAMESPACE

public static final String J2EE_NAMESPACE
See Also:
Constant Field Values

JAVAEE_NAMESPACE

public static final String JAVAEE_NAMESPACE
See Also:
Constant Field Values
Method Detail

registerNamespaceConversions

public static void registerNamespaceConversions(Map conversions)

convertToGeronimoSubSchemas

public static void convertToGeronimoSubSchemas(org.apache.xmlbeans.XmlCursor cursor)

convertSingleElementToGeronimoSubSchemas

public static boolean convertSingleElementToGeronimoSubSchemas(org.apache.xmlbeans.XmlCursor cursor,
                                                               org.apache.xmlbeans.XmlCursor end)

fixGeronimoSchema

public static org.apache.xmlbeans.XmlObject fixGeronimoSchema(org.apache.xmlbeans.XmlObject rawPlan,
                                                              QName desiredElement,
                                                              org.apache.xmlbeans.SchemaType desiredType)
                                                       throws org.apache.xmlbeans.XmlException
Throws:
org.apache.xmlbeans.XmlException

getNestedObject

public static org.apache.xmlbeans.XmlObject getNestedObject(org.apache.xmlbeans.XmlObject xmlObject,
                                                            QName desiredElement)

findNestedElement

public static boolean findNestedElement(org.apache.xmlbeans.XmlCursor cursor,
                                        QName desiredElement)

findNestedElement

public static boolean findNestedElement(org.apache.xmlbeans.XmlCursor cursor,
                                        String desiredElement)

getNestedObjectAsType

public static org.apache.xmlbeans.XmlObject getNestedObjectAsType(org.apache.xmlbeans.XmlObject xmlObject,
                                                                  QName desiredElement,
                                                                  org.apache.xmlbeans.SchemaType type)

convertToSchema

public static boolean convertToSchema(org.apache.xmlbeans.XmlCursor cursor,
                                      String namespace,
                                      String schemaLocationURL,
                                      String version)

convertSchemaVersion

public static boolean convertSchemaVersion(org.apache.xmlbeans.XmlCursor cursor,
                                           String namespace,
                                           String schemaLocationURL,
                                           String version)

convertToDescriptionGroup

public static void convertToDescriptionGroup(String namespace,
                                             org.apache.xmlbeans.XmlCursor cursor,
                                             org.apache.xmlbeans.XmlCursor moveable)
Reorders elements to match descriptionGroup

Parameters:
namespace -
cursor - XmlCursor positioned at first element of "group" to be reordered

convertToTldTag

public static void convertToTldTag(String namespace,
                                   org.apache.xmlbeans.XmlCursor cursor,
                                   org.apache.xmlbeans.XmlCursor moveable)

convertToTldAttribute

public static void convertToTldAttribute(String namespace,
                                         org.apache.xmlbeans.XmlCursor cursor,
                                         org.apache.xmlbeans.XmlCursor moveable)

convertToTldInitParam

public static void convertToTldInitParam(String namespace,
                                         org.apache.xmlbeans.XmlCursor cursor,
                                         org.apache.xmlbeans.XmlCursor moveable)

convertToTldValidator

public static void convertToTldValidator(String namespace,
                                         org.apache.xmlbeans.XmlCursor cursor,
                                         org.apache.xmlbeans.XmlCursor moveable)

convertToTldVariable

public static void convertToTldVariable(String namespace,
                                        org.apache.xmlbeans.XmlCursor cursor,
                                        org.apache.xmlbeans.XmlCursor moveable)

convertToJNDIEnvironmentRefsGroup

public static void convertToJNDIEnvironmentRefsGroup(String namespace,
                                                     org.apache.xmlbeans.XmlCursor cursor,
                                                     org.apache.xmlbeans.XmlCursor moveable)

convertToEnvEntryGroup

public static void convertToEnvEntryGroup(String namespace,
                                          org.apache.xmlbeans.XmlCursor cursor,
                                          org.apache.xmlbeans.XmlCursor moveable)


Copyright © 2003-2007 Apache Software Foundation. All Rights Reserved.