|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.jaxfront.core.dom.DOMBuilder
public class DOMBuilder
Used for creating JAXFront Documents (DOM). For creating a JAXFrontDOM only an XML Schema and the root name is a must. Optional is an according XML Instance and a eXtensible User Interface (XUI) document.
| Field Summary | |
|---|---|
static java.lang.String |
USE_XUI
|
| Method Summary | |
|---|---|
void |
bindDefaultXUI(Document dom)
|
Document |
build(java.lang.String context,
org.w3c.dom.ls.LSInput xsdInput,
org.w3c.dom.Document w3CDOM,
org.w3c.dom.ls.LSInput xuiInput,
java.lang.String rootName,
java.util.Hashtable domArgs)
Builds a JAXFront Document based on a XML Schema,a XML Instance Document , a XUI definition and a root name. |
Document |
build(java.lang.String context,
org.w3c.dom.ls.LSInput xsdInput,
org.w3c.dom.Document w3CDOM,
org.w3c.dom.ls.LSInput xuiInput,
java.lang.String rootName,
java.util.Hashtable domArgs,
org.apache.xerces.xni.parser.XMLEntityResolver resolver,
boolean keepSchemaInMemory)
Builds a JAXFront Document based on a XML Schema,a XML Instance Document , a XUI definition and a root name. |
Document |
build(java.lang.String context,
org.w3c.dom.ls.LSInput xsdInput,
org.w3c.dom.ls.LSInput xmlInput,
org.w3c.dom.ls.LSInput xuiInput,
java.lang.String rootName,
java.util.Hashtable domArgs)
Builds a JAXFront Document based on a XML Schema,a XML Instance Document , a XUI definition and a root name. |
Document |
build(java.lang.String context,
java.net.URL xsdURL)
Builds a JAXFront Document based on a XML Schema. |
Document |
build(java.lang.String context,
java.net.URL xsdURL,
org.w3c.dom.Document xmlDOM,
java.net.URL xuiURL,
java.lang.String rootName)
Builds a JAXFront Document based on a XML Schema,a XML Instance Document , a XUI definition and a root name. |
Document |
build(java.lang.String context,
java.net.URL xsdURL,
org.w3c.dom.Document xmlDOM,
java.net.URL xuiURL,
java.lang.String rootName,
java.util.Hashtable domArgs)
Builds a JAXFront Document based on a XML Schema,a XML Instance Document , a XUI definition and a root name. |
Document |
build(java.lang.String context,
java.net.URL xsdURL,
java.io.Reader xmlReader,
java.net.URL xuiURL,
java.lang.String rootName)
Builds a JAXFront Document based on a XML Schema,a XML Instance Document , a XUI definition and a root name. |
Document |
build(java.lang.String context,
java.net.URL xsdURL,
java.io.Reader xmlReader,
java.net.URL xuiURL,
java.lang.String rootName,
java.util.Hashtable buildProps)
Builds a JAXFront Document based on a XML Schema,a XML Instance Document , a XUI definition and a root name. |
Document |
build(java.lang.String context,
java.net.URL xsdURL,
java.lang.String rootName)
Builds a JAXFront Document based on a XML Schema and a root name. |
Document |
build(java.lang.String context,
java.net.URL xsdURL,
java.net.URL xmlURL,
java.net.URL xuiURL,
java.lang.String rootName)
Builds a JAXFront Document based on a XML Schema,a XML Instance, a XUI definition and a root name. |
Document |
build(java.lang.String context,
java.net.URL xsdURL,
java.net.URL xmlURL,
java.net.URL xuiURL,
java.lang.String rootName,
java.util.Hashtable domArgs)
Builds a JAXFront Document based on a XML Schema,a XML Instance, a XUI definition and a root name. |
Document |
build(java.net.URL baseURL,
java.lang.String xsdString,
java.lang.String xmlString,
java.lang.String xuiString,
java.lang.String rootName,
java.util.Hashtable domArgs)
Builds a JAXFront Document based on a XML Schema Stream,a XML Instance Stream, a XUI definition Stream and a root name. |
Document |
buildImplicit(org.w3c.dom.Document xmlDOM,
java.net.URL xmlURL,
java.net.URL xuiURL)
|
Document |
buildImplicit(java.lang.String xmlContent)
Builds a JAXFront Document based on a XML string pointing to a XMLSchema thourgh the xsi:schemaLocation attribute. |
Document |
buildImplicit(java.lang.String context,
java.net.URL xmlURL,
java.lang.String rootName)
Builds a JAXFront Document based on a XML pointing to a XMLSchema thourgh the xsi:schemaLocation attribute. |
Document |
buildImplicit(java.lang.String context,
java.net.URL xmlURL,
java.net.URL xuiURL,
java.lang.String rootName)
Builds a JAXFront Document based on a XML pointing to a XMLSchema thourgh the xsi:schemaLocation attribute and an XUI. |
Document |
buildImplicit(java.net.URL xmlURL)
Builds a JAXFront Document based on a XML pointing to a XMLSchema thourgh the xsi:schemaLocation attribute. |
Document |
buildImplicit(java.net.URL xmlURL,
java.net.URL xuiURL)
Builds a JAXFront Document based on a XML pointing to a XMLSchema thourgh the xsi:schemaLocation attribute and an XUI. |
static java.lang.String |
extractIncludeURL(java.lang.String include)
|
static java.lang.String |
extractIncludeXpath(java.lang.String include)
|
java.net.URL |
getDefaultXUILocationURL(java.net.URL xsdURL)
|
org.xml.sax.EntityResolver |
getEntityResolver()
|
org.w3c.dom.Document |
getExpandedXUIDOM(java.lang.String context,
org.w3c.dom.Document w3CDOM,
FingerPrint fingerPrint,
boolean mergeGlobalDefinition,
boolean removeRedundant)
Returns a full W3C DOM tree for a base XUI DOM including referred file includes in any XUI DOM. |
static DOMBuilder |
getInstance()
Implemented as singleton. |
XMLSchemaBuilder |
getSchemaBuilder()
Returns a single instance of XMLSchemaBuilder to build XMLSchemas. |
Document |
getXUISchemaDOM(java.lang.String context)
Returns the JAXFront Document representing a XUI DOM. |
java.net.URL |
getXuiXsdURL()
|
void |
initializeXUI(java.lang.String context,
Document dom,
org.w3c.dom.Document w3CDOM,
java.net.URL xuiURL,
boolean mergeGlobalDefinition)
Initializes a JAXFront DOM with a XUI DOM (W3C) and a baseUrl to look for xui included. |
void |
initializeXUI(java.lang.String context,
Document dom,
org.w3c.dom.ls.LSInput xuiInput,
boolean mergeGlobalDefinition)
Initializes a JAXFront DOM with a XUI DOM (W3C) and a baseUrl to look for xui included. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String USE_XUI
| Method Detail |
|---|
public void bindDefaultXUI(Document dom)
public Document build(java.lang.String context,
org.w3c.dom.ls.LSInput xsdInput,
org.w3c.dom.Document w3CDOM,
org.w3c.dom.ls.LSInput xuiInput,
java.lang.String rootName,
java.util.Hashtable domArgs)
throws SchemaCreationException,
DocumentCreationException
context - needed for client-capable systems for the ability to identify the right properties (jaxfront.xml )xsdURL - location of the XML SchemaxmlDOM - XML Instance DocumentxuiURL - location of the XUI DefinitionrootName - name of the root elementdomArgs - Dom specific arguments used on dom creation time (e.g. language)
SchemaCreationException - if an exception occured during parsing the XML Schema
DocumentCreationException - if an exception occured during the building of a JAXFront document
public Document build(java.lang.String context,
org.w3c.dom.ls.LSInput xsdInput,
org.w3c.dom.Document w3CDOM,
org.w3c.dom.ls.LSInput xuiInput,
java.lang.String rootName,
java.util.Hashtable domArgs,
org.apache.xerces.xni.parser.XMLEntityResolver resolver,
boolean keepSchemaInMemory)
throws SchemaCreationException,
DocumentCreationException
context - needed for client-capable systems for the ability to identify the right properties (jaxfront.xml )xsdURL - location of the XML SchemaxmlDOM - XML Instance DocumentxuiURL - location of the XUI DefinitionrootName - name of the root elementdomArgs - Dom specific arguments used on dom creation time (e.g. language)
SchemaCreationException - if an exception occured during parsing the XML Schema
DocumentCreationException - if an exception occured during the building of a JAXFront document
public Document build(java.lang.String context,
org.w3c.dom.ls.LSInput xsdInput,
org.w3c.dom.ls.LSInput xmlInput,
org.w3c.dom.ls.LSInput xuiInput,
java.lang.String rootName,
java.util.Hashtable domArgs)
throws SchemaCreationException,
DocumentCreationException
context - needed for client-capable systems for the ability to identify the right properties (jaxfront.xml )xsdURL - location of the XML SchemaxmlDOM - XML Instance DocumentxuiURL - location of the XUI DefinitionrootName - name of the root elementdomArgs - Dom specific arguments used on dom creation time (e.g. language)
SchemaCreationException - if an exception occured during parsing the XML Schema
DocumentCreationException - if an exception occured during the building of a JAXFront document
public Document build(java.lang.String context,
java.net.URL xsdURL)
throws SchemaCreationException,
DocumentCreationException
context - needed for client-capable systems for the ability to identify the right properties (jaxfront.xml )xsdURL - location of the XML Schema
SchemaCreationException - if an exception occured during parsing the XML Schema
DocumentCreationException - if an exception occured during the building of a JAXFront document
public Document build(java.lang.String context,
java.net.URL xsdURL,
org.w3c.dom.Document xmlDOM,
java.net.URL xuiURL,
java.lang.String rootName)
throws SchemaCreationException,
DocumentCreationException
context - needed for client-capable systems for the ability to identify the right properties (jaxfront.xml )xsdURL - location of the XML SchemaxmlDOM - XML Instance DocumentxuiURL - location of the XUI DefinitionrootName - name of the root element
SchemaCreationException - if an exception occured during parsing the XML Schema
DocumentCreationException - if an exception occured during the building of a JAXFront document
public Document build(java.lang.String context,
java.net.URL xsdURL,
org.w3c.dom.Document xmlDOM,
java.net.URL xuiURL,
java.lang.String rootName,
java.util.Hashtable domArgs)
throws SchemaCreationException,
DocumentCreationException
context - needed for client-capable systems for the ability to identify the right properties (jaxfront.xml )xsdURL - location of the XML SchemaxmlDOM - XML Instance DocumentxuiURL - location of the XUI DefinitionrootName - name of the root elementdomArgs - Dom specific arguments used on dom creation time (e.g. language)
SchemaCreationException - if an exception occured during parsing the XML Schema
DocumentCreationException - if an exception occured during the building of a JAXFront document
public Document build(java.lang.String context,
java.net.URL xsdURL,
java.io.Reader xmlReader,
java.net.URL xuiURL,
java.lang.String rootName)
throws SchemaCreationException,
DocumentCreationException
context - needed for client-capable systems for the ability to identify the right properties (jaxfront.xml )xsdURL - location of the XML SchemaxmlReader - Reader for an XML Instance DocumentxuiURL - location of the XUI DefinitionrootName - name of the root element
SchemaCreationException - if an exception occured during parsing the XML Schema
DocumentCreationException - if an exception occured during the building of a JAXFront document
public Document build(java.lang.String context,
java.net.URL xsdURL,
java.io.Reader xmlReader,
java.net.URL xuiURL,
java.lang.String rootName,
java.util.Hashtable buildProps)
throws SchemaCreationException,
DocumentCreationException
context - needed for client-capable systems for the ability to identify the right properties (jaxfront.xml )xsdURL - location of the XML SchemaxmlReader - Reader for an XML Instance DocumentxuiURL - location of the XUI DefinitionrootName - name of the root element
SchemaCreationException - if an exception occured during parsing the XML Schema
DocumentCreationException - if an exception occured during the building of a JAXFront document
public Document build(java.lang.String context,
java.net.URL xsdURL,
java.lang.String rootName)
throws SchemaCreationException,
DocumentCreationException
context - needed for client-capable systems for the ability to identify the right properties (jaxfront.xml )xsdURL - location of the XML SchemarootName - name of the root element
SchemaCreationException - if an exception occured during parsing the XML Schema
DocumentCreationException - if an exception occured during the building of a JAXFront document
public Document build(java.lang.String context,
java.net.URL xsdURL,
java.net.URL xmlURL,
java.net.URL xuiURL,
java.lang.String rootName)
throws SchemaCreationException,
DocumentCreationException
context - needed for client-capable systems for the ability to identify the right properties (jaxfront.xml )xsdURL - location of the XML SchemaxmlURL - location of the XML InstancexuiURL - location of the XUI DefinitionrootName - name of the root element
SchemaCreationException - if an exception occured during parsing the XML Schema
DocumentCreationException - if an exception occured during the building of a JAXFront document
public Document build(java.lang.String context,
java.net.URL xsdURL,
java.net.URL xmlURL,
java.net.URL xuiURL,
java.lang.String rootName,
java.util.Hashtable domArgs)
throws SchemaCreationException,
DocumentCreationException
context - needed for client-capable systems for the ability to identify the right properties (jaxfront.xml )xsdURL - location of the XML SchemaxmlURL - location of the XML InstancexuiURL - location of the XUI DefinitionrootName - name of the root elementdomArgs - Dom specific arguments used on dom creation time (e.g. language)
SchemaCreationException - if an exception occured during parsing the XML Schema
DocumentCreationException - if an exception occured during the building of a JAXFront document
public Document build(java.net.URL baseURL,
java.lang.String xsdString,
java.lang.String xmlString,
java.lang.String xuiString,
java.lang.String rootName,
java.util.Hashtable domArgs)
throws SchemaCreationException,
DocumentCreationException
baseURL - base url for look for nls & codeset filesxsdString - XML Schema StreamxmlString - XML Instance StreamxuiString - XUI Definition StreamrootName - name of the root elementdomArgs - Dom specific arguments used on dom creation time (e.g. language)
SchemaCreationException - if an exception occured during parsing the XML Schema
DocumentCreationException - if an exception occured during the building of a JAXFront DOM
public Document buildImplicit(org.w3c.dom.Document xmlDOM,
java.net.URL xmlURL,
java.net.URL xuiURL)
throws SchemaCreationException,
DocumentCreationException
SchemaCreationException
DocumentCreationException
public Document buildImplicit(java.lang.String xmlContent)
throws SchemaCreationException,
DocumentCreationException
xmlContent - xml content as string containing xml schema location
SchemaCreationException - if an exception occured during parsing the XML Schema
DocumentCreationException - if an exception occured during the building of a JAXFront document
public Document buildImplicit(java.lang.String context,
java.net.URL xmlURL,
java.lang.String rootName)
throws SchemaCreationException,
DocumentCreationException
context - needed for client-capable systems for the ability to identify the right properties (jaxfront.xml )xmlURL - location of the XML (must have a schemaLocation)rootName - name of the root element
SchemaCreationException - if an exception occured during parsing the XML Schema
DocumentCreationException - if an exception occured during the building of a JAXFront document
public Document buildImplicit(java.lang.String context,
java.net.URL xmlURL,
java.net.URL xuiURL,
java.lang.String rootName)
throws SchemaCreationException,
DocumentCreationException
context - needed for client-capable systems for the ability to identify the right properties (jaxfront.xml )xmlURL - location of the XML (must have a schemaLocation)xuiURL - location of the XUIrootName - name of the root element
SchemaCreationException - if an exception occured during parsing the XML Schema
DocumentCreationException - if an exception occured during the building of a JAXFront document
public Document buildImplicit(java.net.URL xmlURL)
throws SchemaCreationException,
DocumentCreationException
xmlURL - location of the XML (must have a schemaLocation)
SchemaCreationException - if an exception occured during parsing the XML Schema
DocumentCreationException - if an exception occured during the building of a JAXFront document
public Document buildImplicit(java.net.URL xmlURL,
java.net.URL xuiURL)
throws SchemaCreationException,
DocumentCreationException
xmlURL - location of the XML (must have a schemaLocation)xuiURL - location of the XUI
SchemaCreationException - if an exception occured during parsing the XML Schema
DocumentCreationException - if an exception occured during the building of a JAXFront documentpublic static java.lang.String extractIncludeURL(java.lang.String include)
public static java.lang.String extractIncludeXpath(java.lang.String include)
public java.net.URL getDefaultXUILocationURL(java.net.URL xsdURL)
public org.xml.sax.EntityResolver getEntityResolver()
public org.w3c.dom.Document getExpandedXUIDOM(java.lang.String context,
org.w3c.dom.Document w3CDOM,
FingerPrint fingerPrint,
boolean mergeGlobalDefinition,
boolean removeRedundant)
throws DocumentCreationException
w3CDOM - base XUI DOMfingerPrint - base fingerprint to look for any xui includes
DocumentCreationException - if the creation of any DOM failedpublic static DOMBuilder getInstance()
public XMLSchemaBuilder getSchemaBuilder()
throws SchemaCreationException
SchemaCreationExceptionpublic Document getXUISchemaDOM(java.lang.String context)
public java.net.URL getXuiXsdURL()
public void initializeXUI(java.lang.String context,
Document dom,
org.w3c.dom.Document w3CDOM,
java.net.URL xuiURL,
boolean mergeGlobalDefinition)
xsdURL - XMLSchema URLdom - JAXFront DOM to bind XUI informationw3CDOM - base XUI DOMbaseURL - base url to look for included XUI files
public void initializeXUI(java.lang.String context,
Document dom,
org.w3c.dom.ls.LSInput xuiInput,
boolean mergeGlobalDefinition)
xsdURL - XMLSchema URLdom - JAXFront DOM to bind XUI informationw3CDOM - base XUI DOMbaseURL - base url to look for included XUI files
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||