org.netbeans.modules.xml.xdm/1 1.19.0 1

org.netbeans.modules.xml.xdm.nodes
Class Attribute

java.lang.Object
  extended by org.netbeans.modules.xml.xdm.nodes.NodeImpl
      extended by 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.


Field Summary
 
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
 
Method Summary
 void accept(XMLNodeVisitor visitor)
           
protected  void cloneNamespacePrefixes(Map<Integer,String> allNS, Map<String,String> prefixes)
           
 String getLocalName()
           
 String getName()
           
 String getNodeName()
           
 short getNodeType()
           
 String getNodeValue()
           
 Element getOwnerElement()
           
 String getPrefix()
           
 TypeInfo getSchemaTypeInfo()
           
 boolean getSpecified()
           
 String getValue()
           
 boolean isId()
           
 boolean isXmlnsAttribute()
           
 void setLocalName(String localName)
           
 void setName(String name)
           
 void setPrefix(String prefix)
           
 void setValue(String value)
           
 
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 class java.lang.Object
clone, equals, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.netbeans.modules.xml.xdm.nodes.Node
addedToTree, clone, getId, getIndexOfChild, getNamespaceURI, isEquivalentNode, isInTree
 
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
 

Method Detail

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

org.netbeans.modules.xml.xdm/1 1.19.0 1

Built on May 25 2012.  |  Portions Copyright 1997-2012 Oracle. All rights reserved.