|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.alfresco.web.forms.xforms.SchemaUtil
public class SchemaUtil
Provides utility functions for xml schema parsing.
Nested Class Summary | |
---|---|
static class |
SchemaUtil.Occurrence
|
Constructor Summary | |
---|---|
SchemaUtil()
|
Method Summary | |
---|---|
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)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SchemaUtil()
Method Detail |
---|
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
FormBuilderException
public 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)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |