|
deegree 2.5 (2011/06/29 09:44 build-8-official) | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.deegree.portal.context.XMLFactory
public class XMLFactory
This is a factory class to export a ViewContext
and a ViewContextCollection
as an xml
org.w3c.dom.Document
.
Field Summary | |
---|---|
protected static javax.xml.parsers.DocumentBuilder |
builder
|
protected static org.w3c.dom.Document |
document
|
protected static javax.xml.parsers.DocumentBuilderFactory |
factory
|
Method Summary | |
---|---|
protected static void |
appendAbstract(org.w3c.dom.Node toNode,
java.lang.String abstr)
Appends the XML representation of an Abstract to a Node using the
namespace . |
protected static void |
appendAuthentificationSettings(org.w3c.dom.Node toNode,
AuthentificationSettings settings)
|
protected static void |
appendBoundingBox(org.w3c.dom.Node toNode,
Point[] points)
Appends the XML representation of a GM_Point[] to a Node using the
namespace . |
protected static void |
appendButtons(org.w3c.dom.Node toNode,
java.lang.String buttons)
Appends the XML representation of a list of a String to a Node using the
namespace . // TODO |
protected static void |
appendCommonJS(org.w3c.dom.Node toNode,
java.lang.String[] commonJS)
Appends the XML representation of a list of a String[] to a Node using the
namespace . |
protected static void |
appendContactAddress(org.w3c.dom.Node toNode,
ContactInfo ci)
Appends the XML representation of a ContactAddress to a Node using the
namespace . |
protected static void |
appendContactInformation(org.w3c.dom.Node toNode,
CitedResponsibleParty respParty)
Appends the XML representation of a ContactInformation to a Node using the
namespace . |
protected static void |
appendContactPersonPrimary(org.w3c.dom.Node toNode,
CitedResponsibleParty respParty)
Appends the XML representation of a ContactPersonPrimary to a Node using the
namespace . |
protected static void |
appendContextReference(org.w3c.dom.Node toNode,
ViewContextReference vcr)
Appends the XML representation of a list of a ViewContextReference to a Node using the
namespace . |
protected static void |
appendDataService(org.w3c.dom.Node toNode,
DataService dataServ)
Appends the XML representation of a list of a DataService to a Node using the
namespace . |
protected static void |
appendDescriptionURL(org.w3c.dom.Node toNode,
BaseURL bURL)
Appends the XML representation of a BaseURL , the DescriptionURL , to a Node
using the namespace . |
protected static void |
appendDirectoryAccess(org.w3c.dom.Node toNode,
DirectoryAccess dirAcc,
java.lang.String dirName)
Appends the XML representation of a list of a DirectoryAccess to a Node using the
namespace . |
protected static void |
appendFormatList(org.w3c.dom.Node toNode,
FormatList formatList)
Appends the XML representation of a list of a FormatList to a Node using the
namespace . |
protected static void |
appendFormats(org.w3c.dom.Node toNode,
Format[] formats)
Appends the XML representation of a list of a Format[] to a Node using the
namespace . |
protected static void |
appendFrontend(org.w3c.dom.Node toNode,
Frontend fEnd)
Appends the XML representation of a list of a Frontend to a Node using the
namespace . |
protected static void |
appendGeneral(org.w3c.dom.Node toNode,
General gen)
Appends the XML representation of a General to a Node using the namespace . |
protected static void |
appendGeneralExtension(org.w3c.dom.Node toNode,
GeneralExtension genExt)
Appends the XML representation of a list of a GeneralExtension to a Node using the
namespace . |
protected static void |
appendGUIArea(org.w3c.dom.Node toNode,
GUIArea guiArea,
java.lang.String name)
Appends the XML representation of a list of a GUIArea to a Node using the
namespace . |
protected static void |
appendIOSettings(org.w3c.dom.Node toNode,
IOSettings ioSetts)
Appends the XML representation of a list of a IOSettings to a Node using the
namespace . |
protected static void |
appendKeywords(org.w3c.dom.Node toNode,
java.lang.String[] keywords)
Appends the XML representation of a keyword list as a String[] to a Node using the
namespace . |
protected static void |
appendLayer(org.w3c.dom.Node toNode,
Layer layer)
Appends the XML representation of a Layer to a Node using the namespace . |
protected static void |
appendLayerExtension(org.w3c.dom.Node toNode,
LayerExtension layExt)
Appends the XML representation of a list of a LayerExtension to a Node using the
namespace . |
protected static void |
appendLayerList(org.w3c.dom.Node toNode,
LayerList lList)
Appends the XML representation of a LayerList to a Node using the
namespace . |
protected static void |
appendLayerTree(org.w3c.dom.Element e,
Node layerTreeRoot)
Appends the XML representation of a LayerTree . |
protected static void |
appendLogoURL(org.w3c.dom.Node toNode,
ImageURL logoURL)
Appends the XML representation of an ImageURL to a Node using the
namespace . |
protected static void |
appendMapOperationFactors(org.w3c.dom.Node toNode,
MapOperationFactor[] mapOpFac,
java.lang.String opName)
Appends the XML representation of a list of a MapOperationFactor to a Node using the
namespace . |
protected static void |
appendMapParameter(org.w3c.dom.Node toNode,
MapParameter mapPar)
Appends the XML representation of a list of a MapParameter to a Node using the
namespace . |
protected static void |
appendModule(org.w3c.dom.Node toNode,
Module mod)
Appends the XML representation of a list of a GUIArea to a Node using the
namespace . |
protected static void |
appendModuleConfiguration(org.w3c.dom.Node toNode,
ModuleConfiguration modConf)
Appends the XML representation of a list of a ModuleConfiguration to a Node using the
namespace . |
protected static void |
appendModuleJSList(org.w3c.dom.Node toNode,
java.lang.String[] modJSList)
Appends the XML representation of a list of a ParameterList to a Node using the
namespace . |
protected static void |
appendOnlineResource(org.w3c.dom.Node toNode,
java.net.URL onlineRes)
Appends the XML representation of a URL to a Node as a
<OnlineResource> using the namespace . |
protected static void |
appendParameterList(org.w3c.dom.Node toNode,
ParameterList parList)
Appends the XML representation of a list of a ParameterList to a Node using the
namespace . |
protected static void |
appendServer(org.w3c.dom.Node toNode,
Server server)
Appends the XML representation of a Server to a Node using the namespace . |
protected static void |
appendSrs(org.w3c.dom.Node toNode,
java.lang.String[] srsList)
Appends the XML representation of a list of SRSs as a String[] to a Node using the
namespace . |
protected static void |
appendStyleList(org.w3c.dom.Node toNode,
StyleList styleList)
Appends the XML representation of a list of a StyleList to a Node using the
namespace . |
protected static void |
appendTitle(org.w3c.dom.Node toNode,
java.lang.String title)
Appends the XML representation of a Title to a Node using the namespace . |
protected static void |
appendViewContext(org.w3c.dom.Node toNode,
ViewContext viewContxt)
Appends the XML representation of a ViewContext to a Node using the
namespace . |
protected static void |
appendViewContextCollection(org.w3c.dom.Node toNode,
ViewContextCollection vcc)
Appends the XML representation of a list of a ViewContextCollection to a Node using the
namespace . |
protected static void |
appendWindow(org.w3c.dom.Node toNode,
java.awt.Rectangle r)
Appends the XML representation of a Rectangle to a Node using the
namespace . |
protected static org.w3c.dom.Document |
createDocument()
Creates a new org.w3c.dom.Document using the internal document builder. |
static XMLFragment |
export(ViewContext viewContext)
Creates a new org.w3c.dom.Document describing a ViewContext . |
static org.w3c.dom.Document |
export(ViewContextCollection viewContCollec)
Creates a new org.w3c.dom.Document describing a ViewContextCollection . |
protected static void |
initDocBuilder()
Convenience method for creating a common document builder. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected static javax.xml.parsers.DocumentBuilderFactory factory
protected static javax.xml.parsers.DocumentBuilder builder
protected static org.w3c.dom.Document document
Method Detail |
---|
protected static void initDocBuilder() throws javax.xml.parsers.ParserConfigurationException
javax.xml.parsers.ParserConfigurationException
protected static org.w3c.dom.Document createDocument() throws javax.xml.parsers.ParserConfigurationException
org.w3c.dom.Document
using the internal document builder.
Document
instance
javax.xml.parsers.ParserConfigurationException
public static XMLFragment export(ViewContext viewContext) throws javax.xml.parsers.ParserConfigurationException
org.w3c.dom.Document
describing a ViewContext
.
viewContext
- the ViewContext
to be exported
javax.xml.parsers.ParserConfigurationException
- if an XML parser couldn't be foundpublic static org.w3c.dom.Document export(ViewContextCollection viewContCollec) throws javax.xml.parsers.ParserConfigurationException
org.w3c.dom.Document
describing a ViewContextCollection
.
viewContCollec
- the ViewContextCollection
to be exported
javax.xml.parsers.ParserConfigurationException
- if an XML parser couldn't be foundprotected static void appendViewContext(org.w3c.dom.Node toNode, ViewContext viewContxt) throws org.w3c.dom.DOMException, java.net.URISyntaxException
ViewContext
to a Node
using the
namespace
.
toNode
- the Node
to append the new element toviewContxt
- the ViewContext
to be appended as new element
java.net.URISyntaxException
org.w3c.dom.DOMException
protected static void appendGeneral(org.w3c.dom.Node toNode, General gen) throws org.w3c.dom.DOMException, java.net.URISyntaxException
General
to a Node
using the namespace
.
toNode
- the Node
to append the new element togen
- the General
to be appended as new element
contains illegal characters
java.net.URISyntaxException
org.w3c.dom.DOMException
protected static void appendWindow(org.w3c.dom.Node toNode, java.awt.Rectangle r)
Rectangle
to a Node
using the
namespace
.
Note that the XML representation of a Rectangle
is given by a <Window>
element.
toNode
- the Node
to append the new element tor
- the Rectangle
to be appended as new element
contains illegal charactersprotected static void appendBoundingBox(org.w3c.dom.Node toNode, Point[] points)
GM_Point[]
to a Node
using the
namespace
.
Note that the XML representation of a GM_Point[]
is given by a <BoundingBox>
element.
toNode
- the Node
to append the new element topoints
- the GM_Point[]
to be appended as new element
contains illegal charactersprotected static void appendTitle(org.w3c.dom.Node toNode, java.lang.String title)
Title
to a Node
using the namespace
.
toNode
- the Node
to append the new element totitle
- the String
to be appended as new element
contains illegal charactersprotected static void appendAbstract(org.w3c.dom.Node toNode, java.lang.String abstr)
Abstract
to a Node
using the
namespace
.
toNode
- the Node
to append the new element toabstr
- the String
to be appended as new elementprotected static void appendLogoURL(org.w3c.dom.Node toNode, ImageURL logoURL)
ImageURL
to a Node
using the
namespace
.
toNode
- the Node
to append the new element tologoURL
- the ImageURL
to be appended as new element
contains illegal charactersprotected static void appendKeywords(org.w3c.dom.Node toNode, java.lang.String[] keywords)
String[]
to a Node
using the
namespace
.
Note that the keywords are appended to a <KeywordList>
element.
toNode
- the Node
to append the new element tokeywords
- the ImageURL
to be appended as new element
contains illegal charactersprotected static void appendDescriptionURL(org.w3c.dom.Node toNode, BaseURL bURL)
BaseURL
, the DescriptionURL
, to a Node
using the namespace
.
toNode
- the Node
to append the new element tobURL
- the BaseURL
to be appended as new element
contains illegal charactersprotected static void appendOnlineResource(org.w3c.dom.Node toNode, java.net.URL onlineRes)
URL
to a Node
as a
<OnlineResource>
using the namespace
.
toNode
- the Node
to append the new element toonlineRes
- the URL
to be appended as new element
contains illegal charactersprotected static void appendContactInformation(org.w3c.dom.Node toNode, CitedResponsibleParty respParty)
ContactInformation
to a Node
using the
namespace
.
toNode
- the Node
to append the new element torespParty
- protected static void appendContactPersonPrimary(org.w3c.dom.Node toNode, CitedResponsibleParty respParty)
ContactPersonPrimary
to a Node
using the
namespace
.
toNode
- the Node
to append the new element torespParty
- protected static void appendContactAddress(org.w3c.dom.Node toNode, ContactInfo ci)
ContactAddress
to a Node
using the
namespace
.
toNode
- the Node
to append the new element toci
- the ContactAddress
to be appended as new elementprotected static void appendLayerList(org.w3c.dom.Node toNode, LayerList lList)
LayerList
to a Node
using the
namespace
.
toNode
- the Node
to append the new element tolList
- the LayerList
to be appended as new elementprotected static void appendLayer(org.w3c.dom.Node toNode, Layer layer)
Layer
to a Node
using the namespace
.
toNode
- the Node
to append the new element tolayer
- the Layer
to be appended as new elementprotected static void appendServer(org.w3c.dom.Node toNode, Server server)
Server
to a Node
using the namespace
.
toNode
- the Node
to append the new element toserver
- the Server
to be appended as new elementprotected static void appendSrs(org.w3c.dom.Node toNode, java.lang.String[] srsList)
String[]
to a Node
using the
namespace
.
toNode
- the Node
to append the new element tosrsList
- the String[]
to be appended as new elementprotected static void appendFormatList(org.w3c.dom.Node toNode, FormatList formatList)
FormatList
to a Node
using the
namespace
.
toNode
- the Node
to append the new element toformatList
- the FormatList
to be appended as new element
contains illegal charactersprotected static void appendStyleList(org.w3c.dom.Node toNode, StyleList styleList)
StyleList
to a Node
using the
namespace
.
toNode
- the Node
to append the new element tostyleList
- the StyleList
to be appended as new elementprotected static void appendViewContextCollection(org.w3c.dom.Node toNode, ViewContextCollection vcc)
ViewContextCollection
to a Node
using the
namespace
.
toNode
- the Node
to append the new element tovcc
- the ViewContextCollection
to be appended as new elementprotected static void appendContextReference(org.w3c.dom.Node toNode, ViewContextReference vcr)
ViewContextReference
to a Node
using the
namespace
.
// TODO implement ID in VCR
toNode
- the Node
to append the new element tovcr
- the ViewContextReference
to be appended as new elementprotected static void appendGeneralExtension(org.w3c.dom.Node toNode, GeneralExtension genExt) throws org.w3c.dom.DOMException, java.net.URISyntaxException
GeneralExtension
to a Node
using the
namespace
.
toNode
- the Node
to append the new element togenExt
- the GeneralExtension
to be appended as new element
java.net.URISyntaxException
org.w3c.dom.DOMException
protected static void appendLayerTree(org.w3c.dom.Element e, Node layerTreeRoot)
LayerTree
.
e
- the Element
to append the new element tolayerTreeRoot
- the root Node
of the LayerTreeprotected static void appendAuthentificationSettings(org.w3c.dom.Node toNode, AuthentificationSettings settings)
toNode
- settings
- protected static void appendIOSettings(org.w3c.dom.Node toNode, IOSettings ioSetts)
IOSettings
to a Node
using the
namespace
.
toNode
- the Node
to append the new element toioSetts
- the IOSettings
to be appended as new elementprotected static void appendDirectoryAccess(org.w3c.dom.Node toNode, DirectoryAccess dirAcc, java.lang.String dirName)
DirectoryAccess
to a Node
using the
namespace
.
toNode
- the Node
to append the new element todirAcc
- the DirectoryAccess
to be appended as new elementdirName
- protected static void appendFrontend(org.w3c.dom.Node toNode, Frontend fEnd)
Frontend
to a Node
using the
namespace
.
toNode
- the Node
to append the new element tofEnd
- the Frontend
to be appended as new elementprotected static void appendCommonJS(org.w3c.dom.Node toNode, java.lang.String[] commonJS)
String[]
to a Node
using the
namespace
.
toNode
- the Node
to append the new element tocommonJS
- the String[]
to be appended as new elementprotected static void appendButtons(org.w3c.dom.Node toNode, java.lang.String buttons)
String
to a Node
using the
namespace
. // TODO
toNode
- the Node
to append the new element tobuttons
- the String
to be appended as new elementprotected static void appendGUIArea(org.w3c.dom.Node toNode, GUIArea guiArea, java.lang.String name)
GUIArea
to a Node
using the
namespace
.
toNode
- the Node
to append the new element toguiArea
- the GUIArea
to be appended as new elementname
- protected static void appendModule(org.w3c.dom.Node toNode, Module mod)
GUIArea
to a Node
using the
namespace
.
toNode
- the Node
to append the new element tomod
- protected static void appendModuleConfiguration(org.w3c.dom.Node toNode, ModuleConfiguration modConf)
ModuleConfiguration
to a Node
using the
namespace
.
toNode
- the Node
to append the new element tomodConf
- the ModuleConfiguration
to be appended as new elementprotected static void appendParameterList(org.w3c.dom.Node toNode, ParameterList parList)
ParameterList
to a Node
using the
namespace
.
toNode
- the Node
to append the new element toparList
- the ParameterList
to be appended as new elementprotected static void appendMapParameter(org.w3c.dom.Node toNode, MapParameter mapPar)
MapParameter
to a Node
using the
namespace
.
toNode
- the Node
to append the new element tomapPar
- the MapParameter
to be appended as new elementprotected static void appendFormats(org.w3c.dom.Node toNode, Format[] formats)
Format[]
to a Node
using the
namespace
.
toNode
- the Node
to append the new element toformats
- the Format[]
to be appended as new elementprotected static void appendMapOperationFactors(org.w3c.dom.Node toNode, MapOperationFactor[] mapOpFac, java.lang.String opName)
MapOperationFactor
to a Node
using the
namespace
.
toNode
- the Node
to append the new element tomapOpFac
- the MapOperationFactor
to be appended as new elementopName
- protected static void appendLayerExtension(org.w3c.dom.Node toNode, LayerExtension layExt)
LayerExtension
to a Node
using the
namespace
.
toNode
- the Node
to append the new element tolayExt
- the LayerExtension
to be appended as new elementprotected static void appendDataService(org.w3c.dom.Node toNode, DataService dataServ)
DataService
to a Node
using the
namespace
.
toNode
- the Node
to append the new element todataServ
- the DataService
to be appended as new elementprotected static void appendModuleJSList(org.w3c.dom.Node toNode, java.lang.String[] modJSList)
ParameterList
to a Node
using the
namespace
.
toNode
- the Node
to append the new element tomodJSList
- the modJSList
to be appended as new element
|
deegree 2.5 (2011/06/29 09:44 build-8-official) | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
an open source project founded by lat/lon, Bonn, Germany.
For more information visit: http://www.deegree.org