|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.felix.ipojo.metadata.Element
public class Element
Element.
Constructor Summary | |
---|---|
Element(java.lang.String name,
java.lang.String ns)
Constructor. |
Method Summary | |
---|---|
void |
addAttribute(Attribute att)
Add a attribute. |
void |
addElement(Element elem)
Add a sub-element. |
boolean |
containsAttribute(java.lang.String name)
Is the element contains an attribute of the name given in parameter. |
boolean |
containsElement(java.lang.String name)
Is the element contains a sub-element of the type given in parameter. |
boolean |
containsElement(java.lang.String name,
java.lang.String ns)
Is the element contains a sub-element of the type given in parameter. |
java.lang.String |
getAttribute(java.lang.String name)
Return the value of the attribute given in parameter. |
java.lang.String |
getAttribute(java.lang.String name,
java.lang.String ns)
Return the value of the attribute "name" of the namespace "ns". |
Attribute[] |
getAttributes()
Get element attributes. |
Element[] |
getElements()
Get sub-elements. |
Element[] |
getElements(java.lang.String name)
Get the elements array of the element type given in parameter. |
Element[] |
getElements(java.lang.String name,
java.lang.String ns)
Get the elements array of the element type given in parameter. |
java.lang.String |
getName()
Get element name. |
java.lang.String |
getNameSpace()
Get element namespace. |
void |
removeAttribute(Attribute att)
Remove an attribute. |
void |
removeElement(Element elem)
Remove a sub-element. |
java.lang.String |
toString()
To String method. |
java.lang.String |
toXMLString()
Get the XML form of this element. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Element(java.lang.String name, java.lang.String ns)
name
- : the name of the elementns
- : the namespace of the elementMethod Detail |
---|
public Element[] getElements()
public Attribute[] getAttributes()
public java.lang.String getName()
public java.lang.String getNameSpace()
public java.lang.String getAttribute(java.lang.String name)
name
- : the name of the searched attribute
public java.lang.String getAttribute(java.lang.String name, java.lang.String ns)
name
- : name of the attribute to findns
- : namespace of the attribute to find
public void addElement(Element elem)
elem
- : the element to addpublic void removeElement(Element elem)
elem
- : the element to removepublic void addAttribute(Attribute att)
att
- : the attribute to addpublic void removeAttribute(Attribute att)
att
- : the attribute to removepublic Element[] getElements(java.lang.String name)
name
- : the type of the element to find (element name)
public Element[] getElements(java.lang.String name, java.lang.String ns)
name
- : the type of the element to find (element name)ns
- : the namespace of the element
public boolean containsElement(java.lang.String name)
name
- : type of the element to check.
public boolean containsElement(java.lang.String name, java.lang.String ns)
name
- : type of the element to check.ns
- : the namespace of the element to check.
public boolean containsAttribute(java.lang.String name)
name
- : name of the element
public java.lang.String toXMLString()
public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |