Modifier and Type | Field and Description |
---|---|
static String |
XMLNS_ATTR |
static String |
XMLNS_NO_DEFAULT_ATTR |
DTD_ATT_LIST_NODE, DTD_DECL_NODE, DTD_ELEMENT_DECL_NODE, DTD_ENTITY_DECL_NODE, DTD_NOTATION_DECL, NULL_VALUE
ATTRIBUTE_NODE, CDATA_SECTION_NODE, COMMENT_NODE, DOCUMENT_FRAGMENT_NODE, DOCUMENT_NODE, DOCUMENT_POSITION_CONTAINED_BY, DOCUMENT_POSITION_CONTAINS, DOCUMENT_POSITION_DISCONNECTED, DOCUMENT_POSITION_FOLLOWING, DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC, DOCUMENT_POSITION_PRECEDING, DOCUMENT_TYPE_NODE, ELEMENT_NODE, ENTITY_NODE, ENTITY_REFERENCE_NODE, NOTATION_NODE, PROCESSING_INSTRUCTION_NODE, TEXT_NODE
Constructor and Description |
---|
DOMAttr(String name,
DOMNode ownerElement) |
DOMAttr(String name,
int start,
int end,
DOMNode ownerElement) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
String |
extractPrefixFromXmlns() |
int |
getEnd()
Returns the end offset of the node.
|
String |
getLocalName() |
String |
getName() |
String |
getNamespaceURI() |
DOMNode |
getNextSibling() |
DOMNode |
getNodeAttrName() |
DOMNode |
getNodeAttrValue() |
String |
getNodeName() |
short |
getNodeType() |
String |
getNodeValue() |
String |
getOriginalValue()
Get original attribute value from the document.
|
DOMDocument |
getOwnerDocument()
Returns the owner document and null otherwise.
|
DOMElement |
getOwnerElement() |
String |
getPrefix() |
String |
getPrefixIfMatchesURI(String uri)
Returns the prefix if the given URI matches this attributes value.
|
TypeInfo |
getSchemaTypeInfo() |
boolean |
getSpecified() |
int |
getStart()
Returns the start offset of the node.
|
String |
getValue() |
boolean |
hasDelimiter() |
int |
hashCode() |
boolean |
isDefaultXmlns()
Returns true if attribute name is the default xmlns attribute and false
otherwise.
|
static boolean |
isDefaultXmlns(String attributeName) |
boolean |
isId() |
boolean |
isIncluded(int offset) |
boolean |
isNoDefaultXmlns()
Returns true if attribute name is the no default xmlns attribute and false
otherwise.
|
static boolean |
isNoDefaultXmlns(String attributeName) |
boolean |
isXmlns()
Returns true if attribute name is a xmlns attribute and false otherwise.
|
static boolean |
isXmlns(String attributeName) |
void |
setDelimiter(boolean hasDelimiter) |
void |
setNodeAttrValue(DOMNode nodeAttrValue) |
void |
setValue(String value) |
void |
setValue(String value,
int start,
int end) |
boolean |
valueContainsOffset(int offset) |
addChild, appendChild, cloneNode, compareDocumentPosition, findAttrAt, findAttrAt, findNodeAt, findNodeBefore, findNodeOrAttrAt, getAttribute, getAttributeAtIndex, getAttributeNode, getAttributeNode, getAttributeNodes, getAttributes, getBaseURI, getChild, getChildNodes, getChildren, getChildrenWithAttributeValue, getFeature, getFirstChild, getLastChild, getOrphanEndElement, getParentElement, getParentNode, getPreviousNonTextSibling, getPreviousSibling, getTextContent, getUserData, hasAttribute, hasAttributes, hasChildNodes, insertBefore, isAttribute, isCDATA, isCharacterData, isChildOfOwnerDocument, isClosed, isComment, isDefaultNamespace, isDoctype, isDTDAttListDecl, isDTDElementDecl, isDTDEntityDecl, isDTDNotationDecl, isElement, isEqualNode, isGenericDTDDecl, isIncluded, isIncluded, isOwnerDocument, isProcessingInstruction, isProlog, isSameNode, isSupported, isText, lookupNamespaceURI, lookupPrefix, normalize, removeChild, replaceChild, setAttribute, setAttributeNode, setNodeValue, setPrefix, setTextContent, setUserData, toString
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
appendChild, cloneNode, compareDocumentPosition, getAttributes, getBaseURI, getChildNodes, getFeature, getFirstChild, getLastChild, getParentNode, getPreviousSibling, getTextContent, getUserData, hasAttributes, hasChildNodes, insertBefore, isDefaultNamespace, isEqualNode, isSameNode, isSupported, lookupNamespaceURI, lookupPrefix, normalize, removeChild, replaceChild, setNodeValue, setPrefix, setTextContent, setUserData
public static final String XMLNS_ATTR
public static final String XMLNS_NO_DEFAULT_ATTR
public short getNodeType()
getNodeType
in interface Node
public String getNodeName()
getNodeName
in interface Node
public String getNodeValue() throws DOMException
getNodeValue
in interface Node
getNodeValue
in class DOMNode
DOMException
public String getLocalName()
getLocalName
in interface Node
getLocalName
in class DOMNode
public DOMElement getOwnerElement()
getOwnerElement
in interface Attr
public DOMDocument getOwnerDocument()
DOMNode
getOwnerDocument
in interface DOMRange
getOwnerDocument
in interface Node
getOwnerDocument
in class DOMNode
public TypeInfo getSchemaTypeInfo()
getSchemaTypeInfo
in interface Attr
public boolean getSpecified()
getSpecified
in interface Attr
public void setValue(String value) throws DOMException
setValue
in interface Attr
DOMException
public DOMNode getNodeAttrName()
public void setDelimiter(boolean hasDelimiter)
public boolean hasDelimiter()
public String getOriginalValue()
public void setValue(String value, int start, int end)
public DOMNode getNodeAttrValue()
public void setNodeAttrValue(DOMNode nodeAttrValue)
public boolean valueContainsOffset(int offset)
public String getPrefix()
public String getNamespaceURI()
getNamespaceURI
in interface Node
getNamespaceURI
in class DOMNode
public boolean isXmlns()
attributeName
- public static boolean isXmlns(String attributeName)
public boolean isDefaultXmlns()
attributeName
- public static boolean isDefaultXmlns(String attributeName)
public String extractPrefixFromXmlns()
public String getPrefixIfMatchesURI(String uri)
uri
- public boolean isNoDefaultXmlns()
attributeName
- public static boolean isNoDefaultXmlns(String attributeName)
public DOMNode getNextSibling()
getNextSibling
in interface Node
getNextSibling
in class DOMNode
public boolean isIncluded(int offset)
public int getStart()
DOMRange
public int getEnd()
DOMRange
Copyright © 2022. All rights reserved.