Class XmlNewComment
java.lang.Object
com.aquima.interactions.foundation.xml.generation.XmlNewAbstractElement
com.aquima.interactions.foundation.xml.generation.XmlNewAbstractSpecialElt
com.aquima.interactions.foundation.xml.generation.XmlNewComment
- All Implemented Interfaces:
IXmlElement
,Serializable
XML Comment node, used with DOM Generator to create a comment line. For more information, see the
IXmlElement interface.
- Since:
- 5.0
- Author:
- IdJ
- See Also:
-
Constructor Summary
ConstructorDescriptionXmlNewComment
(String comment) create a comment element with the specified comment string as a value. -
Method Summary
Modifier and TypeMethodDescriptionReturn the node immediately following this node.protected boolean
void
toXmlFragment
(boolean useIndentation, boolean sortAttribues, int level, StringBuffer str) Recursive conversion to an XML document.Methods inherited from class com.aquima.interactions.foundation.xml.generation.XmlNewAbstractSpecialElt
addChild, addChildCopy, addChildren, addSibling, containsNode, findChildren, findFirstChild, findTag, findTags, getAttribute, getAttributes, getAttributeSafe, getAttributesMap, getChildren, getFirstChild, getFirstElement, getName, hasAttributes, isCData, removeAllChildren, removeAttribute, removeChild, replaceChild, setAttribute, setCData, setName, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue
Methods inherited from class com.aquima.interactions.foundation.xml.generation.XmlNewAbstractElement
clearParent, findAncestor, getParent, getParentSafe, getValue, hasInvalidCharacters, 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, 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
-
Constructor Details
-
XmlNewComment
create a comment element with the specified comment string as a value.- Parameters:
comment
- The content of the XML comment.- Throws:
XmlGenerateException
- when an exception occurs generating XML
-
-
Method Details
-
toXmlFragment
public void toXmlFragment(boolean useIndentation, boolean sortAttribues, int level, StringBuffer str) Description copied from interface:IXmlElement
Recursive conversion to an XML document. XML problem chars will be escaped (",<,>, etc). The XML code is appended to a stringbuffer. It uses indentation for pretty printing. Indentation starts at 0.- Specified by:
toXmlFragment
in interfaceIXmlElement
- Specified by:
toXmlFragment
in classXmlNewAbstractElement
- Parameters:
useIndentation
- true to use whitespace indentation for pretty printing, false to avoid any whitespace between XML elementssortAttribues
- true to use sort the attributes by name in alphabetic order.level
- indentation level (tabs), start with 0 (unused if useIndentation is false)str
- existing StringBuffer to append into
-
hasChildren
protected boolean hasChildren()- Specified by:
hasChildren
in classXmlNewAbstractElement
-
getNextSibling
Description copied from interface:IXmlElement
Return the node immediately following this node. If there is no such node, this returns null. This includes comment nodes, entity nodes, TEXT nodes etc. !!!!!- Specified by:
getNextSibling
in interfaceIXmlElement
- Returns:
- the node immediately following this node. If there is no such node, this returns null.
-