org.netbeans.modules.xml.xdm.nodes
Class Attribute
java.lang.Object
org.netbeans.modules.xml.xdm.nodes.NodeImpl
org.netbeans.modules.xml.xdm.nodes.Attribute
- All Implemented Interfaces:
- Cloneable, Attr, Node
public class Attribute
- extends NodeImpl
- implements Node, Attr
This class represents the XML Attributes.
An attribute is of the form attrName="attrValue"
In terms of tokens attibute can have upto 6 tokens.
Preceding whitespace token.
attribute name token (wchich comprises of namespace and seperator if any and localname.
whitespace token, optional.
assignment operator, =.
whitespace token, optional.
value token which is start quote, value and end quote.
| Fields inherited from class org.netbeans.modules.xml.xdm.nodes.NodeImpl |
XMLNS |
| Fields inherited from interface org.w3c.dom.Node |
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 |
| Methods inherited from class org.netbeans.modules.xml.xdm.nodes.NodeImpl |
addedToTree, appendChild, assignNodeId, assignNodeIdRecursively, clone, cloneNode, cloneNode, cloneNode, cloneShallowWithModelContext, compareDocumentPosition, copy, copyTokens, getAttributes, getAttributesForRead, getAttributesForWrite, getBaseURI, getChildNodes, getFeature, getFirstChild, getId, getIndexOfChild, getLastChild, getModel, getNamespaceURI, getNamespaceURI, getNextSibling, getOwnerDocument, getParentNode, getPreviousSibling, getTextContent, getTokens, getUserData, hasAttributes, hasChildNodes, hashCode, insertBefore, isDefaultNamespace, isEqualNode, isEquivalentNode, isInTree, isSameNode, isSupported, lookupNamespace, lookupNamespace, lookupNamespaceURI, lookupPrefix, lookupPrefix, normalize, removeChild, reorderChild, reorderChildren, replaceChild, setNodeValue, setTextContent, setUserData, toString |
| Methods inherited from interface org.w3c.dom.Node |
appendChild, cloneNode, compareDocumentPosition, getAttributes, getBaseURI, getChildNodes, getFeature, getFirstChild, getLastChild, getNamespaceURI, getNextSibling, getOwnerDocument, getParentNode, getPreviousSibling, getTextContent, getUserData, hasAttributes, hasChildNodes, insertBefore, isDefaultNamespace, isEqualNode, isSameNode, isSupported, lookupNamespaceURI, lookupPrefix, normalize, removeChild, replaceChild, setNodeValue, setTextContent, setUserData |
getNodeType
public short getNodeType()
- Specified by:
getNodeType in interface Node- Specified by:
getNodeType in class NodeImpl
getNodeName
public String getNodeName()
- Specified by:
getNodeName in interface Node- Specified by:
getNodeName in class NodeImpl
getNodeValue
public String getNodeValue()
- Specified by:
getNodeValue in interface Node- Overrides:
getNodeValue in class NodeImpl
getSpecified
public boolean getSpecified()
- Specified by:
getSpecified in interface Attr
isId
public boolean isId()
- Specified by:
isId in interface Attr
getOwnerElement
public Element getOwnerElement()
- Specified by:
getOwnerElement in interface Attr
getSchemaTypeInfo
public TypeInfo getSchemaTypeInfo()
- Specified by:
getSchemaTypeInfo in interface Attr
accept
public void accept(XMLNodeVisitor visitor)
getLocalName
public String getLocalName()
- Specified by:
getLocalName in interface Node- Overrides:
getLocalName in class NodeImpl
setLocalName
public void setLocalName(String localName)
getPrefix
public String getPrefix()
- Specified by:
getPrefix in interface Node- Overrides:
getPrefix in class NodeImpl
setPrefix
public void setPrefix(String prefix)
- Specified by:
setPrefix in interface Node- Overrides:
setPrefix in class NodeImpl
getName
public String getName()
- Specified by:
getName in interface Attr
setName
public void setName(String name)
getValue
public String getValue()
- Specified by:
getValue in interface Attr
setValue
public void setValue(String value)
- Specified by:
setValue in interface Attr
isXmlnsAttribute
public boolean isXmlnsAttribute()
cloneNamespacePrefixes
protected void cloneNamespacePrefixes(Map<Integer,String> allNS,
Map<String,String> prefixes)
- Overrides:
cloneNamespacePrefixes in class NodeImpl