|
deegree 2.2 (2008/12/22 11:33 build-3038-official) | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.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 DocumentBuilder |
builder
|
protected static Document |
document
|
protected static DocumentBuilderFactory |
factory
|
Method Summary | |
---|---|
protected static void |
appendAbstract(Node toNode,
String abstr)
Appends the XML representation of an Abstract to a Node using
the namespace . |
protected static void |
appendAuthentificationSettings(Node toNode,
AuthentificationSettings settings)
|
protected static void |
appendBoundingBox(Node toNode,
Point[] points)
Appends the XML representation of a GM_Point[] to a Node using
the namespace . |
protected static void |
appendButtons(Node toNode,
String buttons)
Appends the XML representation of a list of a String to a Node
using the namespace . // TODO |
protected static void |
appendCommonJS(Node toNode,
String[] commonJS)
Appends the XML representation of a list of a String[] to a Node
using the namespace . |
protected static void |
appendContactAddress(Node toNode,
ContactInfo ci)
Appends the XML representation of a ContactAddress to a Node
using the namespace . |
protected static void |
appendContactInformation(Node toNode,
CitedResponsibleParty respParty)
Appends the XML representation of a ContactInformation to a Node
using the namespace . |
protected static void |
appendContactPersonPrimary(Node toNode,
CitedResponsibleParty respParty)
Appends the XML representation of a ContactPersonPrimary to a
Node using the namespace . |
protected static void |
appendContextReference(Node toNode,
ViewContextReference vcr)
Appends the XML representation of a list of a ViewContextReference to a
Node using the namespace . |
protected static void |
appendDataService(Node toNode,
DataService dataServ)
Appends the XML representation of a list of a DataService to a
Node using the namespace . |
protected static void |
appendDescriptionURL(Node toNode,
BaseURL bURL)
Appends the XML representation of a BaseURL , the DescriptionURL ,
to a Node using the namespace . |
protected static void |
appendDirectoryAccess(Node toNode,
DirectoryAccess dirAcc,
String dirName)
Appends the XML representation of a list of a DirectoryAccess to a
Node using the namespace . |
protected static void |
appendFormatList(Node toNode,
FormatList formatList)
Appends the XML representation of a list of a FormatList to a
Node using the namespace . |
protected static void |
appendFormats(Node toNode,
Format[] formats)
Appends the XML representation of a list of a Format[] to a Node
using the namespace . |
protected static void |
appendFrontend(Node toNode,
Frontend fEnd)
Appends the XML representation of a list of a Frontend to a Node
using the namespace . |
protected static void |
appendGeneral(Node toNode,
General gen)
Appends the XML representation of a General to a Node using the
namespace . |
protected static void |
appendGeneralExtension(Node toNode,
GeneralExtension genExt)
Appends the XML representation of a list of a GeneralExtension to a
Node using the namespace . |
protected static void |
appendGUIArea(Node toNode,
GUIArea guiArea,
String name)
Appends the XML representation of a list of a GUIArea to a Node
using the namespace . |
protected static void |
appendIOSettings(Node toNode,
IOSettings ioSetts)
Appends the XML representation of a list of a IOSettings to a
Node using the namespace . |
protected static void |
appendKeywords(Node toNode,
String[] keywords)
Appends the XML representation of a keyword list as a String[] to a
Node using the namespace . |
protected static void |
appendLayer(Node toNode,
Layer layer)
Appends the XML representation of a Layer to a Node using the
namespace . |
protected static void |
appendLayerExtension(Node toNode,
LayerExtension layExt)
Appends the XML representation of a list of a LayerExtension to a
Node using the namespace . |
protected static void |
appendLayerList(Node toNode,
LayerList lList)
Appends the XML representation of a LayerList to a Node using
the namespace . |
protected static void |
appendLayerTree(Element e,
Node layerTreeRoot)
|
protected static void |
appendLogoURL(Node toNode,
ImageURL logoURL)
Appends the XML representation of an ImageURL to a Node using
the namespace . |
protected static void |
appendMapOperationFactors(Node toNode,
MapOperationFactor[] mapOpFac,
String opName)
Appends the XML representation of a list of a MapOperationFactor to a
Node using the namespace . |
protected static void |
appendMapParameter(Node toNode,
MapParameter mapPar)
Appends the XML representation of a list of a MapParameter to a
Node using the namespace . |
protected static void |
appendModule(Node toNode,
Module mod)
Appends the XML representation of a list of a GUIArea to a Node
using the namespace . |
protected static void |
appendModuleConfiguration(Node toNode,
ModuleConfiguration modConf)
Appends the XML representation of a list of a ModuleConfiguration to a
Node using the namespace . |
protected static void |
appendModuleJSList(Node toNode,
String[] modJSList)
Appends the XML representation of a list of a ParameterList to a
Node using the namespace . |
protected static void |
appendOnlineResource(Node toNode,
URL onlineRes)
Appends the XML representation of a URL to a Node as a
<OnlineResource> using the namespace . |
protected static void |
appendParameterList(Node toNode,
ParameterList parList)
Appends the XML representation of a list of a ParameterList to a
Node using the namespace . |
protected static void |
appendServer(Node toNode,
Server server)
Appends the XML representation of a Server to a Node using the
namespace . |
protected static void |
appendSrs(Node toNode,
String[] srsList)
Appends the XML representation of a list of SRSs as a String[] to a
Node using the namespace . |
protected static void |
appendStyleList(Node toNode,
StyleList styleList)
Appends the XML representation of a list of a StyleList to a Node
using the namespace . |
protected static void |
appendTitle(Node toNode,
String title)
Appends the XML representation of a Title to a Node using the
namespace . |
protected static void |
appendViewContext(Node toNode,
ViewContext viewContxt)
Appends the XML representation of a ViewContext to a Node using
the namespace . |
protected static void |
appendViewContextCollection(Node toNode,
ViewContextCollection vcc)
Appends the XML representation of a list of a ViewContextCollection to a
Node using the namespace . |
protected static void |
appendWindow(Node toNode,
Rectangle r)
Appends the XML representation of a Rectangle to a Node using
the namespace . |
protected static 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 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 DocumentBuilderFactory factory
protected static DocumentBuilder builder
protected static Document document
Method Detail |
---|
protected static void initDocBuilder() throws ParserConfigurationException
ParserConfigurationException
protected static Document createDocument() throws ParserConfigurationException
org.w3c.dom.Document
using the internal document builder.
Document
instance
ParserConfigurationException
public static XMLFragment export(ViewContext viewContext) throws ParserConfigurationException
org.w3c.dom.Document
describing a ViewContext
.
viewContext
- the ViewContext
to be exported
ParserConfigurationException
- if an XML parser couldn't be foundpublic static Document export(ViewContextCollection viewContCollec) throws ParserConfigurationException
org.w3c.dom.Document
describing a
ViewContextCollection
.
viewContCollec
- the ViewContextCollection
to be exported
ParserConfigurationException
- if an XML parser couldn't be foundprotected static void appendViewContext(Node toNode, ViewContext viewContxt)
ViewContext
to a Node
using
the namespace
.
toNode
- the Node
to append the new element toviewContxt
- the ViewContext
to be appended as new elementprotected static void appendGeneral(Node toNode, General gen)
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 charactersprotected static void appendWindow(Node toNode, 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(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(Node toNode, 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(Node toNode, 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(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(Node toNode, 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(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(Node toNode, 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(Node toNode, CitedResponsibleParty respParty)
ContactInformation
to a Node
using the namespace
.
toNode
- the Node
to append the new element torespParty
- contInfo
- the ContactInformation
to be appended as new element
contains illegal charactersprotected static void appendContactPersonPrimary(Node toNode, CitedResponsibleParty respParty)
ContactPersonPrimary
to a
Node
using the namespace
.
toNode
- the Node
to append the new element torespParty
- contPersonPrim
- the ContactPersonPrimary
to be appended as new element
contains illegal charactersprotected static void appendContactAddress(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(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(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(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(Node toNode, 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(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(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(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(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(Node toNode, GeneralExtension genExt)
GeneralExtension
to a
Node
using the namespace
.
toNode
- the Node
to append the new element togenExt
- the GeneralExtension
to be appended as new elementnamespace
- the namespace of the new elementprotected static void appendLayerTree(Element e, Node layerTreeRoot)
protected static void appendAuthentificationSettings(Node toNode, AuthentificationSettings settings)
toNode
- settings
- protected static void appendIOSettings(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 elementnamespace
- the namespace of the new elementprotected static void appendDirectoryAccess(Node toNode, DirectoryAccess dirAcc, 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
- namespace
- the namespace of the new elementprotected static void appendFrontend(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 elementnamespace
- the namespace of the new elementprotected static void appendCommonJS(Node toNode, 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 elementnamespace
- the namespace of the new elementprotected static void appendButtons(Node toNode, 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 elementnamespace
- the namespace of the new elementprotected static void appendGUIArea(Node toNode, GUIArea guiArea, 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
- namespace
- the namespace of the new elementprotected static void appendModule(Node toNode, Module mod)
GUIArea
to a Node
using the namespace
.
toNode
- the Node
to append the new element tomod
- namespace
- the namespace of the new elementprotected static void appendModuleConfiguration(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 elementnamespace
- the namespace of the new elementprotected static void appendParameterList(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(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 elementnamespace
- the namespace of the new elementprotected static void appendFormats(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 elementnamespace
- the namespace of the new elementprotected static void appendMapOperationFactors(Node toNode, MapOperationFactor[] mapOpFac, 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
- namespace
- the namespace of the new elementprotected static void appendLayerExtension(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(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(Node toNode, 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 elementnamespace
- the namespace of the new element
|
deegree 2.2 (2008/12/22 11:33 build-3038-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://deegree.sourceforge.net