|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objecttecgraf.javautils.excel.v1.util.XmlNode
public class XmlNode
Estrutura simples de Xml para fazer parse. O parse pode ser feito pelo construtor da classe.
| Nested Class Summary | |
|---|---|
static class |
XmlNode.StringInputStream
Leitor de String em UTF8 |
| Constructor Summary | |
|---|---|
XmlNode(InputStream input,
boolean onlyHeader)
Construtor |
|
XmlNode(String name)
Construtor |
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public XmlNode(String name)
name -
public XmlNode(InputStream input,
boolean onlyHeader)
throws ParseException,
IOException
input - onlyHeader -
ParseException
IOException| Method Detail |
|---|
public String getName()
public Map<String,String> getAttributes()
public boolean hasAttribute(String attribute)
attribute -
public String getAttribute(String attribute)
attribute -
public Integer getAttribute(String attribute,
Integer defaultValue)
attribute - defaultValue -
public String getAttribute(String attribute,
String defaultValue)
attribute - defaultValue -
public Double getAttribute(String attribute,
Double defaultValue)
attribute - defaultValue -
public Long getAttribute(String attribute,
Long defaultValue)
attribute - defaultValue -
public Float getAttribute(String attribute,
Float defaultValue)
attribute - defaultValue -
public Boolean getAttribute(String attribute,
Boolean defaultValue)
attribute - defaultValue -
public XmlNode setAttribute(String key,
String value)
key - value -
public XmlNode setName(String name)
name - the name to set
public SortedSet<XmlNode> getNodes()
public int getNodeCount()
public XmlNode addNode(XmlNode node)
node -
public XmlNode addNodes(Collection<XmlNode> list)
list -
public List<XmlNode> getNodesByTagName(String name)
name -
public List<XmlNode> getNodesByAttributeValue(String attribute,
String value)
attribute - value -
public List<XmlNode> getNodesByAttributeKey(String attribute,
String value)
attribute - value -
public List<XmlNode> getNodesByAttributeContainValue(String attribute,
String value)
attribute - value -
public List<XmlNode> getNodesByAttributeMatchValue(String attribute,
String value)
attribute - value -
public XmlNode getNodeByTagName(String name)
name -
public XmlNode getNodeByAttributeValue(String attribute,
String value)
attribute - value -
public XmlNode getNodeByAttributeKey(String attribute,
String value)
attribute - value -
public XmlNode getNodeByAttributeContainValue(String attribute,
String value)
attribute - value -
public XmlNode getNodeByAttributeMatchValue(String attribute,
String value)
attribute - value -
public String toString()
toString in class Object
public byte[] getBytes()
throws IOException
IOException
public void write(OutputStream output)
throws IOException
output -
IOExceptionpublic int compareTo(XmlNode o)
compareTo in interface Comparable<XmlNode>public int hashCode()
hashCode in class Objectpublic boolean equals(Object obj)
equals in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||