public class XMLConverter
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
MIME_DOCUMENT |
static java.lang.String |
MIME_NODE |
Constructor and Description |
---|
XMLConverter() |
Modifier and Type | Method and Description |
---|---|
org.w3c.dom.Document |
convert(AoSession aoSession,
ElemId elemId)
Convert the given root element to a document.
|
InstanceElement |
convert(org.w3c.dom.Document doc,
AoSession aoSession,
ApplicationElement aeObj) |
InstanceElement |
convert(org.w3c.dom.Document doc,
AoSession aoSession,
java.lang.String aeElement) |
AIDNameValueSeqUnitId[] |
createNVUs(java.util.Map<java.lang.String,java.util.List> listMap,
T_LONGLONG aeId,
java.lang.String aeName)
Create the array of attribute to create the instances.
|
void |
createParameter(java.util.Map<java.lang.String,java.util.List> listMap,
java.lang.String name,
java.lang.String value,
T_LONGLONG parIdx)
Create a parameter instance entry.
|
int |
createParameterSet(java.util.Map<java.lang.String,java.util.List> listMap,
java.lang.String name,
java.lang.String mimetype)
Create the paraemter set.
|
boolean |
isShorten()
The parameter value will be shorten, when this value is set to true.
|
void |
setXMLParentIds(java.util.Map<java.lang.String,java.util.List> parMap,
ElemId[] ids)
Replace the #root values with the real id of the root.
|
void |
shorten(boolean shorten)
The parameter value will be shorten, when this value is set to true.
|
void |
writeChildren(java.util.Map<java.lang.String,java.util.List> setMap,
java.util.Map<java.lang.String,java.util.List> parMap,
org.w3c.dom.NodeList children)
Write the children of an element.
|
public static final java.lang.String MIME_DOCUMENT
public static final java.lang.String MIME_NODE
public InstanceElement convert(org.w3c.dom.Document doc, AoSession aoSession, java.lang.String aeElement) throws AoException, java.lang.Exception
AoException
java.lang.Exception
public InstanceElement convert(org.w3c.dom.Document doc, AoSession aoSession, ApplicationElement aeObj) throws AoException, java.lang.Exception
AoException
java.lang.Exception
public void writeChildren(java.util.Map<java.lang.String,java.util.List> setMap, java.util.Map<java.lang.String,java.util.List> parMap, org.w3c.dom.NodeList children) throws AoException
setMap
- The map holding the attributes of the parameter sets.parMap
- the amp holding the attributes of the parameters.children
- The children to be written.AoException
public int createParameterSet(java.util.Map<java.lang.String,java.util.List> listMap, java.lang.String name, java.lang.String mimetype) throws AoException
listMap
- the map that hold all parameter sets.name
- the name of the parameter set.mimetype
- the mimetype.AoException
public void createParameter(java.util.Map<java.lang.String,java.util.List> listMap, java.lang.String name, java.lang.String value, T_LONGLONG parIdx) throws AoException
listMap
- the list holding all entries.name
- the name of the parameter.value
- the value of the parameter.parIdx
- the parent index.AoException
public AIDNameValueSeqUnitId[] createNVUs(java.util.Map<java.lang.String,java.util.List> listMap, T_LONGLONG aeId, java.lang.String aeName)
listMap
- the map of all attributes.aeId
- the application element id.aeName
- the application element name.public void setXMLParentIds(java.util.Map<java.lang.String,java.util.List> parMap, ElemId[] ids)
parMap
- the map with parameter attributes.ids
- the parameter set ids.public void shorten(boolean shorten)
shorten
- public boolean isShorten()
public org.w3c.dom.Document convert(AoSession aoSession, ElemId elemId) throws AoException, java.lang.Exception
aoSession
- the session.elemId
- the root element.AoException
java.lang.Exception