org.apache.geronimo.schema
Class SchemaConversionUtils
java.lang.Object
org.apache.geronimo.schema.SchemaConversionUtils
public class SchemaConversionUtils
- extends Object
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 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 |
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
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
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 © 2006 Apache Software Foundation. All Rights Reserved.