org.jbind.xml.dom3.core
Class DomAttrOrElm
java.lang.Object
org.jbind.xml.dom3.core.DomObject
org.jbind.xml.dom3.core.DomNode
org.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
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 |
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 java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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 |
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)
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.