| 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_VALUEATTRIBUTE_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 |
getDelimiterOffset() |
int |
getEnd()
Returns the end offset of the node.
|
String |
getLocalName() |
String |
getName() |
String |
getNamespaceURI() |
DOMNode |
getNextSibling() |
DOMRange |
getNodeAttrName() |
DOMRange |
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(int delimiter) |
void |
setValue(String value) |
void |
setValue(String value,
int start,
int end) |
boolean |
valueContainsOffset(int offset) |
addChild, appendChild, cloneNode, compareDocumentPosition, findAttrAt, findAttrAt, findDTDDeclParameterAt, findDTDDeclParameterAt, findNodeAt, findNodeBefore, findNodeOrAttrAt, findTextAt, getAttribute, getAttributeAtIndex, getAttributeNode, getAttributeNode, getAttributeNodes, getAttributes, getBaseURI, getChild, getChildNodes, getChildren, getChildrenWithAttributeValue, getFeature, getFirstChild, getLastChild, getOrphanEndElement, 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, toStringclone, finalize, getClass, notify, notifyAll, wait, wait, waitappendChild, 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, setUserDatapublic static final String XMLNS_ATTR
public static final String XMLNS_NO_DEFAULT_ATTR
public short getNodeType()
getNodeType in interface Nodepublic String getNodeName()
getNodeName in interface Nodepublic String getNodeValue() throws DOMException
getNodeValue in interface NodegetNodeValue in class DOMNodeDOMExceptionpublic String getLocalName()
getLocalName in interface NodegetLocalName in class DOMNodepublic DOMElement getOwnerElement()
getOwnerElement in interface Attrpublic DOMDocument getOwnerDocument()
DOMNodegetOwnerDocument in interface DOMRangegetOwnerDocument in interface NodegetOwnerDocument in class DOMNodepublic TypeInfo getSchemaTypeInfo()
getSchemaTypeInfo in interface Attrpublic boolean getSpecified()
getSpecified in interface Attrpublic void setValue(String value) throws DOMException
setValue in interface AttrDOMExceptionpublic DOMRange getNodeAttrName()
public void setDelimiter(int delimiter)
public boolean hasDelimiter()
public String getOriginalValue()
public void setValue(String value, int start, int end)
public DOMRange getNodeAttrValue()
public boolean valueContainsOffset(int offset)
public String getPrefix()
public String getNamespaceURI()
getNamespaceURI in interface NodegetNamespaceURI in class DOMNodepublic 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 NodegetNextSibling in class DOMNodepublic boolean isIncluded(int offset)
public int getStart()
DOMRangepublic int getEnd()
DOMRangepublic int getDelimiterOffset()
Copyright © 2024. All rights reserved.