Package org.petitparser.grammar.xml.ast
Class XmlElement
java.lang.Object
org.petitparser.grammar.xml.ast.XmlNode
org.petitparser.grammar.xml.ast.XmlParent
org.petitparser.grammar.xml.ast.XmlElement
public class XmlElement extends XmlParent
XML element node.
-
Constructor Summary
Constructors Constructor Description XmlElement(XmlName name, Collection<XmlAttribute> attributes, Collection<XmlNode> children) -
Method Summary
Modifier and Type Method Description booleanequals(Object obj)StringgetAttribute(String key)XmlAttributegetAttributeNode(String key)List<XmlAttribute>getAttributes()Answer the attribute nodes of the receiver.XmlNamegetName()inthashCode()voidwriteTo(StringBuilder buffer)Writes the XML string of the receiver to abuffer.Methods inherited from class org.petitparser.grammar.xml.ast.XmlNode
getDocument, getFirstChild, getLastChild, getNextSibling, getParent, getPreviousSibling, getRoot, iterator, toString, toXmlString
-
Constructor Details
-
Method Details
-
getName
-
getAttributes
Description copied from class:XmlNodeAnswer the attribute nodes of the receiver.- Overrides:
getAttributesin classXmlNode
-
getAttribute
-
getAttributeNode
-
writeTo
Description copied from class:XmlNodeWrites the XML string of the receiver to abuffer. -
equals
-
hashCode
public int hashCode()
-