|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectit.sauronsoftware.feed4j.bean.RawElement
public class RawElement
This class is used to represent a XML element.
Constructor Summary | |
---|---|
RawElement()
|
Method Summary | |
---|---|
void |
addAttribute(RawAttribute attribute)
This method adds an attribute to the element. |
void |
addNode(RawNode node)
This method adds a node to the element. |
RawAttribute |
getAttribute(int index)
This method returns an element attribute. |
int |
getAttributeCount()
This method returns the number of the element attribute. |
java.lang.String |
getAttributeValue(java.lang.String namespaceURI,
java.lang.String name)
This method returns the value of an element attribute. |
RawElement |
getElement(java.lang.String namespaceURI,
java.lang.String name)
This method returns the first occurrence of a wanted sub-element. |
RawElement[] |
getElements(java.lang.String namespaceURI,
java.lang.String name)
This method returns a set of sub-elements. |
java.lang.String |
getElementValue(java.lang.String namespaceURI,
java.lang.String name)
This method returns the value of first occurrence of a wanted sub-element. |
java.lang.String |
getName()
This method returns the element name. |
java.lang.String |
getNamespaceURI()
This method returns the element namespace URI. |
RawNode |
getNode(int index)
This method returns an element node. |
int |
getNodeCount()
This method returns the number of the nodes in the element. |
java.lang.String |
getValue()
This method returns the element value. |
void |
removeNode(RawNode node)
This method removes a node from the element. |
void |
setName(java.lang.String name)
This method sets the element name. |
void |
setNamespaceURI(java.lang.String namespaceURI)
This method sets the element namespace URI. |
void |
setValue(java.lang.String value)
This method sets the element value. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public RawElement()
Method Detail |
---|
public java.lang.String getName()
public void setName(java.lang.String name)
name
- The element name.public java.lang.String getNamespaceURI()
public void setNamespaceURI(java.lang.String namespaceURI)
namespaceURI
- The element namespace URI.public java.lang.String getValue()
public void setValue(java.lang.String value)
value
- The element value.public RawAttribute getAttribute(int index) throws java.lang.IndexOutOfBoundsException
index
- The index of the wanted attribute.
java.lang.IndexOutOfBoundsException
- If the supplied index is not valid. It must be greater or
equal to 0 and less than the value returned by
getAttributeCount().public void addAttribute(RawAttribute attribute)
attribute
- The attribute.public int getAttributeCount()
public java.lang.String getAttributeValue(java.lang.String namespaceURI, java.lang.String name)
namespaceURI
- The attribute namespace URI.name
- The attribute name.
public RawNode getNode(int index) throws java.lang.IndexOutOfBoundsException
index
- The index of the wanted node.
java.lang.IndexOutOfBoundsException
- If the supplied index is not valid. It must be greater or
equal to 0 and less than the value returned by
getNodeCount().public RawElement[] getElements(java.lang.String namespaceURI, java.lang.String name)
namespaceURI
- The namespace URI of the wanted elements.name
- The name of the wanted elements.
public RawElement getElement(java.lang.String namespaceURI, java.lang.String name)
namespaceURI
- The namespace URI of the wanted element.name
- The name of the wanted element.
public java.lang.String getElementValue(java.lang.String namespaceURI, java.lang.String name)
namespaceURI
- The namespace URI of the wanted element.name
- The name of the wanted element.
public void addNode(RawNode node)
node
- The node.public int getNodeCount()
public void removeNode(RawNode node)
node
- The node to remove.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |