|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.xoetrope.xml.jaxp.JaxpXmlElement
public class JaxpXmlElement
A customization of the XmlElement to interface with Xerces
Copyright (c) Xoetrope Ltd., 1998-2003
License: see license.txt
| Field Summary | |
|---|---|
protected java.util.Vector |
children
Vector containing children of the implementing Object |
protected org.w3c.dom.Element |
element
The implementing object |
| Constructor Summary | |
|---|---|
JaxpXmlElement()
Create the implementing object |
|
JaxpXmlElement(org.w3c.dom.Element e)
ctor which passes the implementing object as a parameter |
|
JaxpXmlElement(java.lang.String name)
Not implemented |
|
| Method Summary | |
|---|---|
void |
addChild(XmlElement child)
Add the passed child to the implementing object |
XmlElement |
createElement(java.lang.String name)
Create a basic XmlElement of the type registered in the XmlParserFactory |
XmlElement |
elementAt(int i)
Retrieve the XmlElement at the requested position of the implementing object |
java.util.Enumeration |
enumerateAttributeNames()
Retrieve and Enumeration of the implementing object's attributes |
java.lang.String |
getAttribute(java.lang.String name)
Retrieve the named attribute of the implementing XmlElement |
int |
getAttributeCount()
Retrieve a count of the implementing classes attributes |
java.lang.String |
getAttributeNamespace(java.lang.String name)
Retrieve the namespace of the named attribute of the implementation object |
java.util.Vector |
getChildren()
Retrieve a Vector of child XmlElements contained in the implementing object |
java.util.Vector |
getChildren(java.lang.String path)
Retrieve a Vector of child XmlElements contained in the implementing object at the path specified by the path parameter |
java.lang.String |
getContent()
Retrieve the content of the implementing XmlElement |
org.w3c.dom.Element |
getElement()
Retrive the implementing XmlElement object |
XmlElement |
getFirstChildNamed(java.lang.String name)
Retrieve the first XmlElement found at the path specified by the name parameter of the implementing XmlElement |
java.lang.Object |
getImplementation()
Retrieve the XmlElement implementation object |
java.lang.String |
getName()
Retrieve the name of the implementing XmlElement object |
java.lang.String |
getNamespace()
Retrieve the namespace of the implementation object |
void |
setAttribute(java.lang.String name,
java.lang.String value)
Set the value of the named attribute in the implementing XmlElement object |
void |
setName(java.lang.String newName)
Set the name of the implementing XmlElement object |
java.lang.String |
toString()
The overloaded toString method |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected org.w3c.dom.Element element
protected java.util.Vector children
| Constructor Detail |
|---|
public JaxpXmlElement()
public JaxpXmlElement(org.w3c.dom.Element e)
e - The instance of the Element which is to be used as the
implementing objectpublic JaxpXmlElement(java.lang.String name)
name - The name of the implementing object| Method Detail |
|---|
public XmlElement elementAt(int i)
elementAt in interface XmlElementi - The index of the XmlElement required
public java.lang.String getAttribute(java.lang.String name)
getAttribute in interface XmlElementname - The name of the attribute to be retrieved
public java.util.Vector getChildren()
getChildren in interface XmlElementpublic java.util.Vector getChildren(java.lang.String path)
getChildren in interface XmlElementpath - The path into the implementing object from which the return
Vector is to be made up
public java.lang.String getName()
getName in interface XmlElementpublic void setName(java.lang.String newName)
setName in interface XmlElementnewName - The name to be applied to the implementing XmlElement objectpublic java.lang.String getContent()
getContent in interface XmlElementpublic java.util.Enumeration enumerateAttributeNames()
enumerateAttributeNames in interface XmlElement
public void setAttribute(java.lang.String name,
java.lang.String value)
setAttribute in interface XmlElementname - The name of the attribute to be setvalue - The new value of the attributepublic void addChild(XmlElement child)
addChild in interface XmlElementchild - The XmlElement to be added to the implementing objectpublic XmlElement createElement(java.lang.String name)
createElement in interface XmlElementname - The name of the new element
public XmlElement getFirstChildNamed(java.lang.String name)
getFirstChildNamed in interface XmlElementname - The path to the element of the implementing XmlElement object's
to be found
public java.lang.String getNamespace()
getNamespace in interface XmlElementpublic int getAttributeCount()
getAttributeCount in interface XmlElementpublic java.lang.String getAttributeNamespace(java.lang.String name)
getAttributeNamespace in interface XmlElementname - The name of the attributes namespace
public java.lang.Object getImplementation()
getImplementation in interface XmlElementpublic org.w3c.dom.Element getElement()
public java.lang.String toString()
toString in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||