|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.dom4j.datatype.SchemaParser
SchemaParser
reads an XML Schema Document.
Constructor Summary | |
SchemaParser()
|
|
SchemaParser(DatatypeDocumentFactory documentFactory)
|
Method Summary | |
void |
build(Document schemaDocument)
Parses the given schema document |
protected com.sun.msv.datatype.xsd.XSDatatype |
dataTypeForXsdAttribute(Element xsdAttribute)
processes an XML Schema <attribute> tag |
protected com.sun.msv.datatype.xsd.XSDatatype |
deriveSimpleType(com.sun.msv.datatype.xsd.XSDatatype baseType,
Element xsdRestriction)
Derives a new type from a base type and a set of restrictions |
protected DatatypeElementFactory |
getDatatypeElementFactory(QName elementQName)
|
protected QName |
getQName(java.lang.String name)
|
protected com.sun.msv.datatype.xsd.XSDatatype |
getTypeByName(java.lang.String type)
|
protected com.sun.msv.datatype.xsd.XSDatatype |
loadXSDatatypeFromSimpleType(Element xsdSimpleType)
Loads a XSDatatype object from a |
protected void |
onChildElements(Element element,
DatatypeElementFactory factory)
|
protected void |
onDatatypeAttribute(Element xsdElement,
DatatypeElementFactory elementFactory,
Element xsdAttribute)
processes an XML Schema <attribute> tag |
protected void |
onDatatypeElement(Element xsdElement,
DocumentFactory parentFactory)
processes an XML Schema <element> tag |
protected void |
onNamedSchemaComplexType(Element schemaComplexType)
processes an named XML Schema <complexTypegt; tag |
protected void |
onNamedSchemaSimpleType(Element schemaSimpleType)
processes an named XML Schema <simpleTypegt; tag |
protected void |
onSchemaComplexType(Element schemaComplexType,
DatatypeElementFactory elementFactory)
processes an XML Schema <complexTypegt; tag |
protected void |
onSchemaError(java.lang.String message)
Called when there is a problem with the schema and the builder cannot handle the XML Schema Data Types correctly |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public SchemaParser()
public SchemaParser(DatatypeDocumentFactory documentFactory)
Method Detail |
public void build(Document schemaDocument)
schemaDocument
- is the document of the XML Schemaprotected void onDatatypeElement(Element xsdElement, DocumentFactory parentFactory)
protected void onNamedSchemaComplexType(Element schemaComplexType)
protected void onSchemaComplexType(Element schemaComplexType, DatatypeElementFactory elementFactory)
protected void onChildElements(Element element, DatatypeElementFactory factory)
protected void onDatatypeAttribute(Element xsdElement, DatatypeElementFactory elementFactory, Element xsdAttribute)
protected com.sun.msv.datatype.xsd.XSDatatype dataTypeForXsdAttribute(Element xsdAttribute)
protected void onNamedSchemaSimpleType(Element schemaSimpleType)
protected com.sun.msv.datatype.xsd.XSDatatype loadXSDatatypeFromSimpleType(Element xsdSimpleType)
protected com.sun.msv.datatype.xsd.XSDatatype deriveSimpleType(com.sun.msv.datatype.xsd.XSDatatype baseType, Element xsdRestriction)
protected DatatypeElementFactory getDatatypeElementFactory(QName elementQName)
DatatypeElementFactory
for the given
element QName, creating one if it does not already existprotected com.sun.msv.datatype.xsd.XSDatatype getTypeByName(java.lang.String type)
protected QName getQName(java.lang.String name)
protected void onSchemaError(java.lang.String message)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |