public class SchemaUtil
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
static class |
SchemaUtil.Occurrence |
| Constructor and Description |
|---|
SchemaUtil() |
| Modifier and Type | Method and Description |
|---|---|
static java.util.TreeMap |
buildTypeTree(org.apache.xerces.xs.XSModel schema) |
static boolean |
doesAttributeComeFromExtension(org.apache.xerces.xs.XSAttributeUse attr,
org.apache.xerces.xs.XSComplexTypeDefinition controlType) |
static boolean |
doesElementComeFromExtension(org.apache.xerces.xs.XSElementDeclaration element,
org.apache.xerces.xs.XSComplexTypeDefinition controlType) |
static org.apache.xerces.xs.XSParticle |
findCorrespondingParticleInComplexType(org.apache.xerces.xs.XSElementDeclaration elDecl) |
static short |
getBuiltInType(org.apache.xerces.xs.XSTypeDefinition type)
Returns the most-specific built-in base type for the provided type.
|
static java.lang.String |
getBuiltInTypeName(short type) |
static java.lang.String |
getBuiltInTypeName(org.apache.xerces.xs.XSTypeDefinition type) |
static SchemaUtil.Occurrence |
getOccurrence(org.apache.xerces.xs.XSElementDeclaration elDecl)
finds the minOccurs and maxOccurs of an element declaration
|
static boolean |
isAttributeDeclaredIn(java.lang.String attrName,
java.lang.String namespace,
org.apache.xerces.xs.XSComplexTypeDefinition type,
boolean recursive)
check that the element defined by this name is declared directly in the type
-> idem with string
|
static boolean |
isAttributeDeclaredIn(org.apache.xerces.xs.XSAttributeUse attr,
org.apache.xerces.xs.XSComplexTypeDefinition type,
boolean recursive)
check that the element defined by this name is declared directly in the type
|
static boolean |
isElementDeclaredIn(java.lang.String name,
java.lang.String namespace,
org.apache.xerces.xs.XSComplexTypeDefinition type,
boolean recursive)
check that the element defined by this name is declared directly in the type
|
static boolean |
isElementDeclaredIn(java.lang.String name,
java.lang.String namespace,
org.apache.xerces.xs.XSModelGroup group)
private recursive method called by isElementDeclaredIn(String name, XSComplexTypeDefinition type)
|
static org.apache.xerces.xs.XSModel |
parseSchema(org.w3c.dom.Document schemaDocument,
boolean failOnError) |
public static short getBuiltInType(org.apache.xerces.xs.XSTypeDefinition type)
public static java.lang.String getBuiltInTypeName(org.apache.xerces.xs.XSTypeDefinition type)
public static java.lang.String getBuiltInTypeName(short type)
public static org.apache.xerces.xs.XSModel parseSchema(org.w3c.dom.Document schemaDocument,
boolean failOnError)
throws FormBuilderException
FormBuilderExceptionpublic static java.util.TreeMap buildTypeTree(org.apache.xerces.xs.XSModel schema)
public static org.apache.xerces.xs.XSParticle findCorrespondingParticleInComplexType(org.apache.xerces.xs.XSElementDeclaration elDecl)
public static boolean isElementDeclaredIn(java.lang.String name,
java.lang.String namespace,
org.apache.xerces.xs.XSComplexTypeDefinition type,
boolean recursive)
public static boolean isElementDeclaredIn(java.lang.String name,
java.lang.String namespace,
org.apache.xerces.xs.XSModelGroup group)
public static boolean doesElementComeFromExtension(org.apache.xerces.xs.XSElementDeclaration element,
org.apache.xerces.xs.XSComplexTypeDefinition controlType)
public static boolean isAttributeDeclaredIn(org.apache.xerces.xs.XSAttributeUse attr,
org.apache.xerces.xs.XSComplexTypeDefinition type,
boolean recursive)
public static boolean isAttributeDeclaredIn(java.lang.String attrName,
java.lang.String namespace,
org.apache.xerces.xs.XSComplexTypeDefinition type,
boolean recursive)
public static boolean doesAttributeComeFromExtension(org.apache.xerces.xs.XSAttributeUse attr,
org.apache.xerces.xs.XSComplexTypeDefinition controlType)
public static SchemaUtil.Occurrence getOccurrence(org.apache.xerces.xs.XSElementDeclaration elDecl)
Copyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.