electric.xml
Class ElementDecl

java.lang.Object
  extended byelectric.xml.Node
      extended byelectric.xml.Child
          extended byelectric.xml.ElementDecl
All Implemented Interfaces:
java.lang.Cloneable, IDOMConstants, IXMLConstants, org.w3c.dom.Node, java.io.Serializable

public final class ElementDecl
extends Child

ElementDecl represents an XML ELEMENT declaration.

Author:
webMethods
See Also:
Serialized Form

Field Summary
 
Fields inherited from class electric.xml.Child
parent
 
Fields inherited from class electric.xml.Node
list, next, prev
 
Fields inherited from interface org.w3c.dom.Node
ATTRIBUTE_NODE, CDATA_SECTION_NODE, COMMENT_NODE, DOCUMENT_FRAGMENT_NODE, DOCUMENT_NODE, DOCUMENT_TYPE_NODE, ELEMENT_NODE, ENTITY_NODE, ENTITY_REFERENCE_NODE, NOTATION_NODE, PROCESSING_INSTRUCTION_NODE, TEXT_NODE
 
Fields inherited from interface electric.xml.IXMLConstants
ATTLIST_START, ATTLIST_STOP, CDATA, CDATA_START, CDATA_STOP, CLOSE_TAG, COLON, COMMENT_START, COMMENT_STOP, DOCTYPE_START, DOCTYPE_STOP, ELEMENTDECL_START, ELEMENTDECL_STOP, ENCODING, ENTITYDECL_START, ENTITYDECL_STOP, ID, ID_CASE, INSTRUCTION_START, INSTRUCTION_STOP, NEGATIVE_INFINITY, NOT_A_NUMBER, NOTATIONDECL_START, NOTATIONDECL_STOP, NULL, OPEN_TAG, POSITIVE_INFINITY, PUBLIC, SPECIALS, STANDALONE, SUBSTITUTES, SYSTEM, UNDEFINED, VERSION, XML, XML_NAMESPACE, XMLDECL_START, XMLDECL_STOP, XMLNS, XMLNS_NAMESPACE
 
Fields inherited from interface electric.xml.IDOMConstants
CDATA_SECTION_NAME, COMMENT_NAME, CORE, DOCUMENT_FRAGMENT_NAME, DOCUMENT_NAME, HIERARCHY_REQUEST_ERR, TEXT_NAME
 
Constructor Summary
ElementDecl(ElementDecl elementDecl)
          Construct a copy of the specified ElementDecl.
ElementDecl(Parent parent)
           
ElementDecl(java.lang.String content)
          Construct an ElementDecl with the specified content.
 
Method Summary
 java.lang.Object clone()
          Return a clone of this ElementDecl.
 java.lang.String getContent()
          Return my content.
 void read(NodeReader reader)
           
 void setContent(java.lang.String content)
          Set my content.
 void write(NodeWriter writer)
          Write myself to the specified writer.
 
Methods inherited from class electric.xml.Child
cloneNode, getByteArray, getByteArray, getByteArray, getBytes, getBytes, getBytes, getDocument, getNextSiblingChild, getOwnerDocument, getParent, getParentNode, getPreviousSiblingChild, getRoot, replaceWith, setNextSiblingChild, setParent, setPreviousSiblingChild, toString, toString, write, write, write
 
Methods inherited from class electric.xml.Node
appendChild, getAttributes, getChildNodes, getFirstChild, getLastChild, getLocalName, getNamespaceURI, getNextSibling, getNextSiblingNode, getNode, getNode, getNodeName, getNodes, getNodeType, getNodeValue, getPrefix, getPreviousSibling, getPreviousSiblingNode, hasAttributes, hasChildNodes, insertBefore, isSupported, normalize, remove, removeChild, replaceChild, setNextSiblingNode, setNodeValue, setPrefix, setPreviousSiblingNode, size
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ElementDecl

public ElementDecl(java.lang.String content)
Construct an ElementDecl with the specified content.

Parameters:
content - The content.

ElementDecl

public ElementDecl(ElementDecl elementDecl)
Construct a copy of the specified ElementDecl.

Parameters:
elementDecl - The ElementDecl to copy.

ElementDecl

public ElementDecl(Parent parent)
Parameters:
parent -
Method Detail

clone

public java.lang.Object clone()
Return a clone of this ElementDecl.

Specified by:
clone in class Child

getContent

public java.lang.String getContent()
Return my content.


setContent

public void setContent(java.lang.String content)
Set my content.

Parameters:
content - The new content value.

read

public void read(NodeReader reader)
          throws java.io.IOException,
                 NamespaceException
Overrides:
read in class Node
Parameters:
reader -
Throws:
java.io.IOException
NamespaceException

write

public void write(NodeWriter writer)
           throws java.io.IOException
Write myself to the specified writer.

Overrides:
write in class Node
Parameters:
writer - The nodeWriter.
Throws:
java.io.IOException - If an I/O exception occurs.


copyright© 2001-2004 by webMethods All Rights Reserved.