org.jbind.xml.dom3.core
Class DomAttrOrElm

java.lang.Object
  extended byorg.jbind.xml.dom3.core.DomObject
      extended byorg.jbind.xml.dom3.core.DomNode
          extended byorg.jbind.xml.dom3.core.DomAttrOrElm
All Implemented Interfaces:
IDataImpl, IDomAttrOrElm, IDomNode, IDomObject, IHasLocation, IImpl, IImplChild, IImplWithText, org.w3c.dom.Node
Direct Known Subclasses:
DomAttr, DomElement

public abstract class DomAttrOrElm
extends DomNode
implements IDomAttrOrElm


Field Summary
 
Fields inherited from class org.jbind.xml.dom3.core.DomNode
myChildNodes, myParentNode
 
Fields inherited from class org.jbind.xml.dom3.core.DomObject
myOwnerDocument
 
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
 
Constructor Summary
DomAttrOrElm(IDomDocument aDocument, java.lang.String aName)
          Creates an attribute or element that is not namespace aware.
DomAttrOrElm(IDomDocument aDocument, java.lang.String aNamespaceUri, java.lang.String aQName)
          Creates a 'namespaced' attribute or element.
DomAttrOrElm(IDomNode aDomNode, boolean aDeep)
           
 
Method Summary
 IAnyTypeData getData()
           
 java.lang.String getLocalName()
           
 java.lang.String getNamespace()
           
 java.lang.String getNamespaceURI()
           
 java.lang.String getNodeName()
           
 java.lang.String getPartName()
          Gets the attribute or element name.
 java.lang.String getPrefix()
           
 java.lang.String getTextContent()
          Gets the textual content.
 boolean isDefault()
          Checks if the data implementation is a default value or if a value was assigned explicitly.
 void setData(IAnyTypeData aData)
           
 void setPrefix(java.lang.String aPrefix)
           
 
Methods inherited from class org.jbind.xml.dom3.core.DomNode
accept, addElement, addElement, addText, appendChild, collectTextContent, collectTextContent, compareTreePosition, doAfterAccept, doBeforeAccept, doCloneChildNodes, getAncestor, getBaseURI, getChild, getChildByClass, getChildNodes, getFirstChild, getInterface, getLastChild, getLocation, getNamespaceForPrefix, getNbChildren, getNextSibling, getNonDefaultedNbChildren, getParentImpl, getParentNode, getPrefixForNamespace, getPrefixToNamespaceMapping, getPreviousSibling, getUserData, hasChildNodes, insertAfter, insertBefore, isEqualNode, isSameNode, isSupported, iterChildren, lookupNamespacePrefix, lookupNamespaceURI, normalize, removeChild, replaceChild, restoreTextContent, saveTextContent, setChildNodes, setLocation, setPrefixToNamespaceMapping, setTextContent, setTextContent, visitChildren
 
Methods inherited from class org.jbind.xml.dom3.core.DomObject
checkMutability, checkOwnerDocument, getOwnerDocument, isReadOnly
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.jbind.xml.dom3.types.IDomAttrOrElm
getNamespaceForPrefix
 
Methods inherited from interface org.jbind.xml.dom3.types.IDomNode
accept, insertAfter, lookupNamespaceURI, setLocation, setPrefixToNamespaceMapping, setTextContent, setTextContent
 
Methods inherited from interface org.w3c.dom.Node
appendChild, cloneNode, getAttributes, getChildNodes, getFirstChild, getLastChild, getNextSibling, getNodeType, getNodeValue, getOwnerDocument, getParentNode, getPreviousSibling, hasAttributes, hasChildNodes, insertBefore, isSupported, normalize, removeChild, replaceChild, setNodeValue
 
Methods inherited from interface org.jbind.xml.dom3.types.IDomObject
getOwnerDocument, isReadOnly
 
Methods inherited from interface org.jbind.xml.base.IHasLocation
getLocation
 
Methods inherited from interface org.jbind.xml.core.bridge.IDataImpl
iterAttributes
 
Methods inherited from interface org.jbind.xml.core.data.IImpl
accept, getAttributeData, getPrefixToNamespaceMapping, isNil, iterChildren, iterElementData
 
Methods inherited from interface org.jbind.xml.core.bridge.IImplChild
getParentImpl
 
Methods inherited from interface org.jbind.xml.core.bridge.IImplWithText
hasTextContent, restoreTextContent, saveTextContent, setTextContent, setTextContent
 

Constructor Detail

DomAttrOrElm

public DomAttrOrElm(IDomDocument aDocument,
                    java.lang.String aNamespaceUri,
                    java.lang.String aQName)
             throws DomException
Creates a 'namespaced' attribute or element.


DomAttrOrElm

public DomAttrOrElm(IDomDocument aDocument,
                    java.lang.String aName)
Creates an attribute or element that is not namespace aware.


DomAttrOrElm

public DomAttrOrElm(IDomNode aDomNode,
                    boolean aDeep)
Method Detail

getPrefix

public java.lang.String getPrefix()
Specified by:
getPrefix in interface org.w3c.dom.Node

setPrefix

public void setPrefix(java.lang.String aPrefix)
               throws DomException
Specified by:
setPrefix in interface org.w3c.dom.Node
Throws:
DomException

getNamespaceURI

public java.lang.String getNamespaceURI()
Specified by:
getNamespaceURI in interface org.w3c.dom.Node

getNamespace

public java.lang.String getNamespace()
Specified by:
getNamespace in interface IDataImpl

getLocalName

public java.lang.String getLocalName()
Specified by:
getLocalName in interface org.w3c.dom.Node

getNodeName

public java.lang.String getNodeName()
Specified by:
getNodeName in interface org.w3c.dom.Node

getTextContent

public java.lang.String getTextContent()
Description copied from interface: IImplWithText
Gets the textual content. The textual content corresponds to the lexical value of a data object. For data implementations of attributes the string that is assigned to the attribute is returned. For data implementations of elements with simple content the string value that is assigned to the simple content is returned. If the simple content is empty then the empty string is returned.

Specified by:
getTextContent in interface IDomNode

getData

public IAnyTypeData getData()
Specified by:
getData in interface IDataImpl

setData

public void setData(IAnyTypeData aData)
Specified by:
setData in interface IDataImpl

getPartName

public java.lang.String getPartName()
Description copied from interface: IDataImpl
Gets the attribute or element name.

Specified by:
getPartName in interface IDataImpl
Returns:
(required).

isDefault

public boolean isDefault()
Description copied from interface: IImplWithText
Checks if the data implementation is a default value or if a value was assigned explicitly.

Specified by:
isDefault in interface IImplWithText
Returns:
Returns true iff the data implementation is a default value.