Package org.petitparser.grammar.xml.ast
Class XmlParent
java.lang.Object
org.petitparser.grammar.xml.ast.XmlNode
org.petitparser.grammar.xml.ast.XmlParent
- Direct Known Subclasses:
XmlDocument,XmlElement
public abstract class XmlParent extends XmlNode
Abstract XML node with actual children.
-
Constructor Summary
Constructors Constructor Description XmlParent(Collection<XmlNode> children) -
Method Summary
Modifier and Type Method Description booleanequals(Object obj)List<XmlNode>getChildren()Answer the child nodes of the receiver.inthashCode()voidwriteTo(StringBuilder buffer)Writes the XML string of the receiver to abuffer.Methods inherited from class org.petitparser.grammar.xml.ast.XmlNode
getAttributes, getDocument, getFirstChild, getLastChild, getNextSibling, getParent, getPreviousSibling, getRoot, iterator, toString, toXmlString
-
Constructor Details
-
Method Details
-
getChildren
Description copied from class:XmlNodeAnswer the child nodes of the receiver.- Overrides:
getChildrenin classXmlNode
-
writeTo
Description copied from class:XmlNodeWrites the XML string of the receiver to abuffer. -
equals
-
hashCode
public int hashCode()
-