com.aptana.ide.editor.html.parsing.nodes
Class HTMLElementNode

java.lang.Object
  extended by com.aptana.ide.parsing.nodes.ParseNodeBase
      extended by com.aptana.ide.editor.html.parsing.nodes.HTMLParseNode
          extended by com.aptana.ide.editor.html.parsing.nodes.HTMLElementNode
All Implemented Interfaces:
IRange, IParseNode

public class HTMLElementNode
extends HTMLParseNode

Author:
Kevin Lindsey

Constructor Summary
HTMLElementNode(Lexeme startLexeme)
           
 
Method Summary
 IParseNodeAttribute getAttributeNode(java.lang.String attributeName)
          getAttributeNode
 java.lang.String getCSSClass()
          getCssClass
 java.lang.String getID()
          getID
 void getSource(SourceWriter writer)
          getSource
 java.lang.String getStyle()
          getStyle
 java.lang.String getText()
          getText
 boolean isClosed()
          isClosed
 void setAttribute(java.lang.String name, java.lang.String value)
          setAttribute
 void setIsClosed(boolean value)
          setIsClosed
 
Methods inherited from class com.aptana.ide.parsing.nodes.ParseNodeBase
appendChild, containsOffset, createAttribute, getAttribute, getAttributes, getChild, getChildCount, getChildIndex, getChildren, getEndingLexeme, getEndingOffset, getLanguage, getLength, getName, getNodeAtOffset, getParent, getRootNode, getSource, getStartingLexeme, getStartingOffset, getType, getTypeIndex, getXML, getXML, hasAttribute, hasAttributes, hasChildren, isEmpty, setEndingLexeme, setName
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HTMLElementNode

public HTMLElementNode(Lexeme startLexeme)
Parameters:
startLexeme -
Method Detail

getCSSClass

public java.lang.String getCSSClass()
getCssClass

Returns:
String

getID

public java.lang.String getID()
getID

Returns:
String

getStyle

public java.lang.String getStyle()
getStyle

Returns:
String

getText

public java.lang.String getText()
getText

Specified by:
getText in interface IParseNode
Overrides:
getText in class ParseNodeBase
Returns:
String
See Also:
IParseNode.getText()

isClosed

public boolean isClosed()
isClosed

Returns:
boolean

setIsClosed

public void setIsClosed(boolean value)
setIsClosed

Parameters:
value -

setAttribute

public void setAttribute(java.lang.String name,
                         java.lang.String value)
setAttribute

Specified by:
setAttribute in interface IParseNode
Overrides:
setAttribute in class ParseNodeBase
Parameters:
name -
value -
See Also:
IParseNode.setAttribute(java.lang.String, java.lang.String)

getAttributeNode

public IParseNodeAttribute getAttributeNode(java.lang.String attributeName)
Description copied from interface: IParseNode
getAttributeNode

Specified by:
getAttributeNode in interface IParseNode
Overrides:
getAttributeNode in class ParseNodeBase
Returns:
IParseNodeAttribute
See Also:
ParseNodeBase.getAttributeNode(java.lang.String)

getSource

public void getSource(SourceWriter writer)
Description copied from interface: IParseNode
getSource

Specified by:
getSource in interface IParseNode
Overrides:
getSource in class ParseNodeBase
See Also:
ParseNodeBase.getSource(com.aptana.ide.io.SourceWriter)