XmlElementNode Class

com.bea.ide.lang.xml
XmlElementNode Class

public class XmlElementNode

    extends XmlNode

Hierarchy
Object
  DefaultElement
    DefaultTreeElement
      DefaultDocumentElement
        DefaultSourceElement
          XmlNode
            XmlElementNode
All Implemented Interfaces

IDocumentElement, IElement, ISourceElement, IStructureFeature.IStructureNode, ITreeElement

Nested Class Summary

 
Nested classes from  com.bea.ide.sourceeditor.element.DefaultSourceElement
DefaultSourceElement.CompilerPropertyDescriptor, DefaultSourceElement.DefaultAuthorElement, DefaultSourceElement.StaticCompilerPropertyDescriptor, DefaultSourceElement.StickyRange
 

Field Summary

   
Fields from  com.bea.ide.lang.xml.XmlNode
PROP_COMMENT, PROP_NAME, PROP_TEXT
 
Fields from  com.bea.ide.sourceeditor.element.DefaultSourceElement
_range, PROP_NAME, PROP_VALUE
 
Fields from  com.bea.ide.element.DefaultTreeElement
_parent, _vChildren
 
Fields from interface com.bea.ide.sourceeditor.element.ISourceElement
STATUS_IN_TREE, STATUS_NOT_IN_TREE, STATUS_REMOVED_FROM_TREE
 

Constructor Summary

XmlElementNode(Object cookie)

 

Method Summary

public String
getComment()
public DefaultSourceElement.CompilerPropertyDescriptor[]
getDefaultPropertyDescriptors()
DefaultSourceElement subclasses define their set of available CompilerPropertyDescriptor objects by implementing this method.
public IStructureFeature.StructureCode
getTypeCode()
This method returns a code used by the compiler to identify the type of this element.
public void
setComment(String text)
public String
toString()
Overridden to provide a decent name for the structure view.
 
Methods from  com.bea.ide.lang.xml.XmlNode
getName, getRangePrefetchProperties, getText, setName, setText
 
Methods from  com.bea.ide.sourceeditor.element.DefaultSourceElement
addChild, createAuthorNode, debugDump, equals, getChildrenByClass, getClassLoader, getCookie, getDefaultPropertyDescriptors, getDiagnostics, getGroup, getInstanceName, getProperty, getPropertyCode, getPropertyDescriptors, getPropertySourceRange, getPropertySourceRanges, getPropertySourceText, getPropertySourceText, getRange, getRange, getRangePrefetchProperties, getStatus, initializeRange, initializeRange, insertChild, isAuthorProperty, markRemovedFromTree, mergeElements, mergeFrom, propertyModified, removeChild, removeChild, replaceChild, requestAddChild, requestAddChild, requestRemoveChild, requestSetProperty, setProperty, setStatus
 
Methods from  com.bea.ide.document.DefaultDocumentElement
addChild, getDocument, setDocument
 
Methods from  com.bea.ide.element.DefaultTreeElement
addChild, children, getChild, getChildCount, getParent, removeChild
 
Methods from  com.bea.ide.element.DefaultElement
getProperty, getPropertyDescriptors, setProperty
 
Methods from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
   
Methods from interface com.bea.ide.document.IDocumentElement
getDocument
 
Methods from interface com.bea.ide.element.IElement
getProperty, getPropertyDescriptors, setProperty
 
Methods from interface com.bea.ide.sourceeditor.element.ISourceElement
createAuthorNode, getCookie, getDiagnostics, getPropertyCode, getRange, getStatus, mergeFrom, requestAddChild, requestAddChild, requestRemoveChild, requestSetProperty
 
Methods from interface com.bea.compiler.feature.IStructureFeature.IStructureNode
getCookie, getTypeCode
 
Methods from interface com.bea.ide.element.ITreeElement
children, getChild, getChildCount, getParent
 

Constructor Detail

XmlElementNode

public XmlElementNode(Object cookie)
 

Method Detail

getComment() Method

public String getComment()

getDefaultPropertyDescriptors() Method

public DefaultSourceElement.CompilerPropertyDescriptor[] getDefaultPropertyDescriptors()
Description copied from DefaultSourceElement.getDefaultPropertyDescriptors()
DefaultSourceElement subclasses define their set of available CompilerPropertyDescriptor objects by implementing this method.

Overrides
XmlNode.getDefaultPropertyDescriptors()

Returns

an array of CompilerPropertyDescriptor objects

getTypeCode() Method

public IStructureFeature.StructureCode getTypeCode()
Description copied from DefaultSourceElement.getTypeCode()
This method returns a code used by the compiler to identify the type of this element. This method should not be called directly, since the return value isn't useful outside of the compiler.

Overrides
DefaultSourceElement.getTypeCode()

Returns

A compiler structure code identifying the type of this element.

setComment(String) Method

public void setComment(String text)

toString() Method

public String toString()
Overridden to provide a decent name for the structure view. Returns tag[ : {id|name}]

Overrides
Object.toString()

Returns

String name describing object, tag name in this case.