Class XmlNewRawElement
java.lang.Object
com.aquima.interactions.foundation.xml.generation.XmlNewAbstractElement
com.aquima.interactions.foundation.xml.generation.XmlNewElement
com.aquima.interactions.foundation.xml.generation.XmlNewRawElement
- All Implemented Interfaces:
IXmlElement
,Serializable
DANGEROUS class that does no output escaping!!!!
- Since:
- 5.0
- Author:
- I. de Jong
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionXmlNewRawElement
(IXmlElement existingElt) Constructs the raw element from an existing XML element.XmlNewRawElement
(String name) Constructs an empty raw element with just the name of the tag.XmlNewRawElement
(String name, byte[] rawValue, String encoding) Constructs the element with a name and raw value.XmlNewRawElement
(String name, byte[] rawValue, String encoding, boolean stripXMLheader) Convenience constructor to allow optional stripping of xml header of the passed value document.XmlNewRawElement
(String name, String stringValue) Constructs the element with a name and value.XmlNewRawElement
(String name, String stringValue, boolean stripXMLheader) Convenience constructor to allow optional stripping of xml header of the passed value document. -
Method Summary
Modifier and TypeMethodDescriptionprotected void
getValueXMLRepr
(StringBuffer outputBuffer) This method appends the value of the tag to the string buffer.Methods inherited from class com.aquima.interactions.foundation.xml.generation.XmlNewElement
addChild, addChildCopy, addChildren, addSibling, containsNode, escape, escape, findChildren, findFirstChild, findTag, findTags, getAttribute, getAttributes, getAttributeSafe, getAttributesMap, getChildren, getFirstChild, getFirstElement, getNextSibling, hasAttributes, hasChildren, isCData, removeAllChildren, removeAttribute, removeChild, replaceChild, setAttribute, setCData, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, toXmlFragment
Methods inherited from class com.aquima.interactions.foundation.xml.generation.XmlNewAbstractElement
clearParent, findAncestor, getName, getParent, getParentSafe, getValue, hasInvalidCharacters, setName, setParent, setValue, setValue, toXmlFragment, toXmlFragment, toXmlFragment
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.aquima.interactions.foundation.xml.generation.IXmlElement
addChild, addChildCopy, addChildren, addSibling, containsNode, findAncestor, findChildren, findFirstChild, findTag, findTags, getAttribute, getAttributes, getAttributeSafe, getAttributesMap, getChildren, getFirstChild, getFirstElement, getName, getNextSibling, getParent, getParentSafe, getValue, hasAttributes, isCData, removeAllChildren, removeAttribute, removeChild, replaceChild, setAttribute, setCData, setName, setParent, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, toXmlFragment, toXmlFragment, toXmlFragment, toXmlFragment
-
Constructor Details
-
XmlNewRawElement
Constructs the raw element from an existing XML element.- Parameters:
existingElt
- The XML element this element should take it's definition from.
-
XmlNewRawElement
Constructs an empty raw element with just the name of the tag.- Parameters:
name
- The name of the element.
-
XmlNewRawElement
Constructs the element with a name and value.- Parameters:
name
- The name of the element.stringValue
- The value of the element.
-
XmlNewRawElement
Constructs the element with a name and raw value.- Parameters:
name
- The name of the element.rawValue
- Byte array containing the value of the element.encoding
- The encoding of the byte array.
-
XmlNewRawElement
Convenience constructor to allow optional stripping of xml header of the passed value document. This is usually needed because otherwise you'll end up with an invalid XML document because there is an XML header somewhere in the middle of your document.- Parameters:
name
- The name of the element.stringValue
- The value of the element.stripXMLheader
- Boolean indicating if the xml header (when present) should be stripped from the value.
-
XmlNewRawElement
Convenience constructor to allow optional stripping of xml header of the passed value document. This is usually needed because otherwise you'll end up with an invalid XML document because there is an XML header somewhere in the middle of your document.- Parameters:
name
- The name of the element.rawValue
- Byte array containing the value of the element.encoding
- The encoding of the byte array.stripXMLheader
- Boolean indicating if the xml header (when present) should be stripped from the value.
-
-
Method Details
-
getValueXMLRepr
Description copied from class:XmlNewElement
This method appends the value of the tag to the string buffer.- Overrides:
getValueXMLRepr
in classXmlNewElement
- Parameters:
outputBuffer
- The string buffer the value should be appended to.
-