SMACS

smacs.tree.defs
Class InputNode

java.lang.Object
  extended byorg.dom4j.tree.AbstractNode
      extended byorg.dom4j.tree.AbstractAttribute
          extended byorg.dom4j.tree.FlyweightAttribute
              extended byorg.dom4j.tree.DefaultAttribute
                  extended bysmacs.tree.NodeDefaultAttribute
                      extended bysmacs.tree.NodeExtendedAttribute
                          extended bysmacs.tree.NodeReferenceAttribute
                              extended bysmacs.tree.defs.InputNode
All Implemented Interfaces:
Attribute, Cloneable, EventListener, GetSimpleNode, HasNodeHandler, IsaNodeReferenceAttribute, IsaNodeReferenceChildListener, IsaNodeReferenceListener, Node, Serializable
Direct Known Subclasses:
InputSqlAllDistinctHint, InputSqlDataTypeFieldDeclaration, InputSqlFieldList, InputSqlFieldName, InputSqlForeignKeyFieldDeclaration, InputSqlFromClause, InputSqlFromItem, InputSqlInsertIntoStatement, InputSqlInsertNewFromStatement, InputSqlInsertNewIntoClause, InputSqlIntoTableClause, InputSqlMaterializedCursor, InputSqlOldNewHint, InputSqlSelectItem, InputSqlSelectWhereClause, InputSqlTableColumn, InputSqlTableDeclaration, InputSqlTableExpression, InputSqlUniqueKeyFieldDeclaration, InputSqlWhereClause, InputSqlWithOptions

public class InputNode
extends NodeReferenceAttribute

wrapper around SimpleNode.

It is the base class for other semantic wrappers which each are attributes to the original parsingtree node. The reference hint points back to the original parsingtree node.

Author:
Copyright (C) 2004 Guido Draheim, All rights reserved, Part of SMACS project.
See Also:
Serialized Form

Field Summary
static String AttributeName
           
protected static Logger log
           
static int Max
          maxium number of nodes to check in input
 
Fields inherited from class smacs.tree.NodeReferenceAttribute
nodehandler, referenced
 
Fields inherited from class smacs.tree.NodeDefaultAttribute
_qname
 
Fields inherited from class org.dom4j.tree.FlyweightAttribute
value
 
Fields inherited from class org.dom4j.tree.AbstractNode
NODE_TYPE_NAMES
 
Fields inherited from interface org.dom4j.Node
ANY_NODE, ATTRIBUTE_NODE, CDATA_SECTION_NODE, COMMENT_NODE, DOCUMENT_NODE, DOCUMENT_TYPE_NODE, ELEMENT_NODE, ENTITY_REFERENCE_NODE, MAX_NODE_TYPE, NAMESPACE_NODE, PROCESSING_INSTRUCTION_NODE, TEXT_NODE, UNKNOWN_NODE
 
Constructor Summary
InputNode(SimpleNode node)
           
InputNode(SimpleNode node, String attrname)
           
InputNode(SimpleNode node, String attrname, String refname)
           
 
Method Summary
 SimpleNode get()
          shorthand for the referenced node.
 String getClassPackageName()
           
static String getClassPackageName(String name)
           
 String getClassShortName()
           
static String getClassShortName(String name)
           
 String getTokenName()
           
 String getTokenValue()
           
 
Methods inherited from class smacs.tree.NodeReferenceAttribute
destroy, getHandler, getId, getSimpleNode, getValue, onNodeReferenceChildHasChanged, onNodeReferenceHasChanged, setHandler, toAttrXML
 
Methods inherited from class smacs.tree.NodeDefaultAttribute
getQName, newQName, newQName, setName, setQName
 
Methods inherited from class org.dom4j.tree.DefaultAttribute
getParent, isReadOnly, setParent, setValue, supportsParent
 
Methods inherited from class org.dom4j.tree.AbstractAttribute
accept, asXML, createXPathResult, getData, getName, getNamespace, getNamespacePrefix, getNamespaceURI, getNodeType, getPath, getQualifiedName, getText, getUniquePath, setData, setNamespace, setText, toString, write
 
Methods inherited from class org.dom4j.tree.AbstractNode
asXPathResult, clone, createPattern, createXPath, createXPathFilter, detach, getDocument, getDocumentFactory, getNodeTypeName, getPath, getStringValue, getUniquePath, hasContent, matches, numberValueOf, selectNodes, selectNodes, selectNodes, selectObject, selectSingleNode, setDocument, valueOf
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.dom4j.Attribute
getData, getNamespace, getNamespacePrefix, getNamespaceURI, getQName, getQualifiedName, setData, setNamespace, setValue
 
Methods inherited from interface org.dom4j.Node
accept, asXML, asXPathResult, clone, createXPath, detach, getDocument, getName, getNodeType, getNodeTypeName, getParent, getPath, getPath, getStringValue, getText, getUniquePath, getUniquePath, hasContent, isReadOnly, matches, numberValueOf, selectNodes, selectNodes, selectNodes, selectObject, selectSingleNode, setDocument, setName, setParent, setText, supportsParent, valueOf, write
 

Field Detail

log

protected static final Logger log

AttributeName

public static final String AttributeName
See Also:
Constant Field Values

Max

public static int Max
maxium number of nodes to check in input

Constructor Detail

InputNode

public InputNode(SimpleNode node,
                 String attrname,
                 String refname)

InputNode

public InputNode(SimpleNode node,
                 String attrname)

InputNode

public InputNode(SimpleNode node)
Method Detail

get

public SimpleNode get()
shorthand for the referenced node.


getTokenName

public String getTokenName()

getTokenValue

public String getTokenValue()

getClassShortName

public String getClassShortName()

getClassShortName

public static String getClassShortName(String name)

getClassPackageName

public String getClassPackageName()

getClassPackageName

public static String getClassPackageName(String name)

SMACS