|
||||||||||
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.
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.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.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.w3c.dom.Document |
getExpandedXUIDOM(org.w3c.dom.Document w3CDOM,
FingerPrint fingerPrint,
boolean mergeGlobalDefinition)
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()
Returns the JAXFront Document representing a XUI DOM. |
java.net.URL |
getXuiXsdURL()
|
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
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
documentpublic 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
documentpublic 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
documentpublic 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
documentpublic 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
documentpublic 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
documentpublic 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
documentpublic 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
documentpublic 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
DOMpublic 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
documentpublic 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
documentpublic 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
documentpublic void bindDefaultXUI(Document dom)
public java.net.URL getXuiXsdURL()
public static DOMBuilder getInstance()
public XMLSchemaBuilder getSchemaBuilder() throws SchemaCreationException
SchemaCreationException
public static java.lang.String extractIncludeXpath(java.lang.String include)
public static java.lang.String extractIncludeURL(java.lang.String include)
public org.w3c.dom.Document getExpandedXUIDOM(org.w3c.dom.Document w3CDOM, FingerPrint fingerPrint, boolean mergeGlobalDefinition) throws DocumentCreationException
w3CDOM
- base XUI DOMfingerPrint
- base fingerprint to look for any xui includes
DocumentCreationException
- if the creation of any DOM failedpublic Document getXUISchemaDOM()
public java.net.URL getDefaultXUILocationURL(java.net.URL xsdURL)
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
documentpublic 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
documentpublic 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 Document buildImplicit(org.w3c.dom.Document xmlDOM, java.net.URL xmlURL, java.net.URL xuiURL) throws SchemaCreationException, DocumentCreationException
SchemaCreationException
DocumentCreationException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |