|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Element
Interface that represents one XML Element.
Method Summary | |
---|---|
java.util.Enumeration |
findField(java.lang.String fieldName)
Returns an enumeration containing all Elements / Attributes of the given field. |
java.lang.String |
findFirstField(java.lang.String fieldName)
Returns the first String representation for the given field. |
Namespace[] |
getAdditionalNamespaces()
Get the list of XML Schema namespaces that are available to this element. |
Attribute |
getAttribute(java.lang.String name)
Get the named attribute of this element, ignoring XML namespaces. |
Attribute |
getAttribute(java.lang.String name,
Namespace ns)
Get the named attribute of this element, using an XML namespace. |
Attribute[] |
getAttributes()
Get all the attributes of this element. |
Element |
getChild(java.lang.String name)
Get the first child of this element that has the given name, ignoring XML namespaces. |
Element |
getChild(java.lang.String name,
Namespace ns)
Get the first child of this element that has the given name and belongs to the given namespace. |
Element[] |
getChildren()
Get an array of all the children of this element. |
Element[] |
getChildren(java.lang.String name)
Get an array of all the children of this element that have the given name, ignoring XML namespaces. |
Element[] |
getChildren(java.lang.String name,
Namespace ns)
Get an array of all the children of this element that have the given name and belong to the given namespace. |
UnknownElementContent |
getUnknownElementContent()
Get the UnknownElementContent carried by this Element. |
boolean |
hasUnknownElementContent()
Indicates whether this Element has an unknown extension. |
boolean |
isRootElement()
Check to see if this is the root element. |
Methods inherited from interface org.dvb.xml.jdom.Node |
---|
getBooleanValue, getDateValue, getDoubleValue, getLongValue, getName, getNamespace, getParent, getTextNormalize, getValue |
Method Detail |
---|
Namespace[] getAdditionalNamespaces()
boolean isRootElement()
java.util.Enumeration findField(java.lang.String fieldName)
fieldName
- the name of the field to search for (e.g. "Title")
java.lang.String findFirstField(java.lang.String fieldName)
fieldName
- the name of the field to search for (e.g. "Title")
Element[] getChildren()
Element[] getChildren(java.lang.String name)
name
- The name of the element
Element[] getChildren(java.lang.String name, Namespace ns)
name
- The name of the elementns
- The namespace that the name belongs to
Element getChild(java.lang.String name)
name
- The name of the element
Element getChild(java.lang.String name, Namespace ns)
name
- The name of the elementns
- The namespace that the name belongs to
Attribute[] getAttributes()
Attribute getAttribute(java.lang.String name)
name
- The name of the attribute
Attribute getAttribute(java.lang.String name, Namespace ns)
name
- The name of the attributens
- The namespace that the name belongs to
boolean hasUnknownElementContent()
getUnknownElementContent()
UnknownElementContent getUnknownElementContent()
readBits(int)
method of the UnknownElementContent
object returned by this method
will access a binary stream carrying one or more ElementContentChunks.
hasUnknownElementContent()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |