Package ghidra.xml
Class XmlElementImpl
- java.lang.Object
-
- ghidra.xml.XmlElementImpl
-
- All Implemented Interfaces:
XmlElement
public class XmlElementImpl extends java.lang.Object implements XmlElement
-
-
Constructor Summary
Constructors Constructor Description XmlElementImpl(boolean isStart, boolean isEnd, java.lang.String name, int level, java.util.LinkedHashMap<java.lang.String,java.lang.String> attributes, java.lang.String text, int columnNumber, int lineNumber)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getAttribute(java.lang.String key)
java.util.LinkedHashMap<java.lang.String,java.lang.String>
getAttributes()
int
getColumnNumber()
int
getLevel()
int
getLineNumber()
java.lang.String
getName()
java.lang.String
getText()
boolean
hasAttribute(java.lang.String key)
boolean
isContent()
boolean
isEnd()
boolean
isStart()
void
setAttribute(java.lang.String key, java.lang.String value)
static XmlElement[]
splitEmptyElement(XmlElementImpl element)
java.lang.String
toString()
-
-
-
Method Detail
-
getColumnNumber
public int getColumnNumber()
- Specified by:
getColumnNumber
in interfaceXmlElement
-
getLineNumber
public int getLineNumber()
- Specified by:
getLineNumber
in interfaceXmlElement
-
hasAttribute
public boolean hasAttribute(java.lang.String key)
- Specified by:
hasAttribute
in interfaceXmlElement
-
getAttribute
public java.lang.String getAttribute(java.lang.String key)
- Specified by:
getAttribute
in interfaceXmlElement
-
getAttributes
public java.util.LinkedHashMap<java.lang.String,java.lang.String> getAttributes()
- Specified by:
getAttributes
in interfaceXmlElement
-
setAttribute
public void setAttribute(java.lang.String key, java.lang.String value)
- Specified by:
setAttribute
in interfaceXmlElement
-
getLevel
public int getLevel()
- Specified by:
getLevel
in interfaceXmlElement
-
getName
public java.lang.String getName()
- Specified by:
getName
in interfaceXmlElement
-
getText
public java.lang.String getText()
- Specified by:
getText
in interfaceXmlElement
-
isContent
public boolean isContent()
- Specified by:
isContent
in interfaceXmlElement
-
isEnd
public boolean isEnd()
- Specified by:
isEnd
in interfaceXmlElement
-
isStart
public boolean isStart()
- Specified by:
isStart
in interfaceXmlElement
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
splitEmptyElement
public static XmlElement[] splitEmptyElement(XmlElementImpl element)
-
-