|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.eigenbase.xom.wrappers.W3CDOMWrapper
public class W3CDOMWrapper
This implementation of DOMWrapper wraps any w3c DOM-compliant java XML Parser.
![]() |
![]() |
| Field Summary | |
|---|---|
(package private) Node |
node
|
| Fields inherited from interface org.eigenbase.xom.DOMWrapper |
|---|
CDATA, COMMENT, ELEMENT, FREETEXT, UNKNOWN |
| Constructor Summary | |
|---|---|
W3CDOMWrapper(Node node,
Locator locator)
W3CDOMWrapper parses XML based on a Node. |
|
| Method Summary | |
|---|---|
String |
getAttribute(String attrName)
Return the attribute. |
String[] |
getAttributeNames()
Returns a list of attribute names. |
DOMWrapper[] |
getChildren()
Retrieve all children, and build an array of W3CDOMWrappers around each child that is of TEXT or ELEMENT type to return. |
DOMWrapper[] |
getElementChildren()
Retrieve all children, and build an array of W3CDOMWrappers around each ELEMENT child. |
Location |
getLocation()
Returns the location of this element. |
String |
getTagName()
Retrieve the tag name directly. |
String |
getText()
Recursively unwrap and create the contained text. |
int |
getType()
Map the Node's type to DOMWrapper's simplified concept of type. |
String |
toXML()
Returns this node serialized as XML. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
final Node node
| Constructor Detail |
|---|
public W3CDOMWrapper(Node node,
Locator locator)
node - DOM Nodelocator - Callback to find location of node. May be null.| Method Detail |
|---|
public int getType()
getType in interface DOMWrapperpublic String getTagName()
getTagName in interface DOMWrapperpublic String getAttribute(String attrName)
getAttribute in interface DOMWrapperpublic String[] getAttributeNames()
DOMWrapper
getAttributeNames in interface DOMWrapperpublic String getText()
getText in interface DOMWrapperpublic String toXML()
DOMWrapper
toXML in interface DOMWrapperpublic DOMWrapper[] getChildren()
getChildren in interface DOMWrapperpublic DOMWrapper[] getElementChildren()
getElementChildren in interface DOMWrapperpublic Location getLocation()
DOMWrapper
getLocation in interface DOMWrapper
|
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||