org.bee.processor
Class AbstractBlock

java.lang.Object
  extended by org.xml.sax.helpers.DefaultHandler
      extended by org.bee.processor.AbstractValue
          extended by org.bee.processor.AbstractBlock
All Implemented Interfaces:
Instruction, org.xml.sax.ContentHandler, org.xml.sax.DTDHandler, org.xml.sax.EntityResolver, org.xml.sax.ErrorHandler
Direct Known Subclasses:
Bee, Block, Expression, For, Function, If, OnExit, Operator, Switch

public abstract class AbstractBlock
extends AbstractValue


Nested Class Summary
 
Nested classes/interfaces inherited from class org.bee.processor.AbstractValue
AbstractValue.Type
 
Nested classes/interfaces inherited from interface org.bee.processor.Instruction
Instruction.NameSpace
 
Field Summary
protected  java.lang.String dir
           
protected  Instruction.NameSpace nameSpace
           
 
Fields inherited from class org.bee.processor.AbstractValue
locator, name, parent, type, TYPE_RESERVED, TYPE_SHORTCUTS, value, valueBuffer, variable, xpath
 
Fields inherited from interface org.bee.processor.Instruction
ATTR_CODE, ATTR_COMMENT, ATTR_DIR, ATTR_ERROUT, ATTR_ERROUT_STREAM, ATTR_EXEC, ATTR_IN, ATTR_NAME, ATTR_OPTIONS, ATTR_PATH, ATTR_PROCESSONLY, ATTR_PROPERTY, ATTR_SEPARATOR, ATTR_STDIN, ATTR_STDOUT, ATTR_STDOUT_STREAM, ATTR_TARGET, ATTR_TYPE, ATTR_URL, ATTR_VALUE, ATTR_VARIABLE, RESERVE_BUILD_FILE, RESERVE_CLASS_LIB, RESERVE_NAME_ARGS, RESERVE_NAME_DIR, RESERVE_NAME_ERROR, RESERVE_NAME_EXCEPTION, RESERVE_OPTION_NOINPUT, TYPE_BOOL, TYPE_DATE, TYPE_DIRECTORY, TYPE_FILE, TYPE_NUMBER, TYPE_URL, TYPE_VARIABLE
 
Constructor Summary
protected AbstractBlock(java.lang.String xpath)
           
 
Method Summary
protected  void clearNameSpace()
           
 java.lang.String[] getAllowedAttributeNames()
          Funtions used only for diagnostic purpose to check if not allowed attribute for instruction used.
 java.lang.String getName()
          returns instruction name
 Instruction.NameSpace getNameSpace()
          return current name space
 void startElement(java.lang.String uri, java.lang.String localName, java.lang.String qName, org.xml.sax.Attributes attributes)
           
 
Methods inherited from class org.bee.processor.AbstractValue
characters, childDone, endElement, getHandler, getParent, getPath, ignorableWhitespace, lookupInChain, lookupNameSpace, lookupOnTop, lookupStringValue, makeFile, setDocumentLocator, setParent, traceInChain, updateInNameSpace, verifyAttributes
 
Methods inherited from class org.xml.sax.helpers.DefaultHandler
endDocument, endPrefixMapping, error, fatalError, notationDecl, processingInstruction, resolveEntity, skippedEntity, startDocument, startPrefixMapping, unparsedEntityDecl, warning
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.bee.processor.Instruction
eval
 

Field Detail

nameSpace

protected Instruction.NameSpace nameSpace

dir

protected java.lang.String dir
Constructor Detail

AbstractBlock

protected AbstractBlock(java.lang.String xpath)
Method Detail

getName

public java.lang.String getName()
Description copied from interface: Instruction
returns instruction name

Returns:
name

getNameSpace

public Instruction.NameSpace getNameSpace()
Description copied from interface: Instruction
return current name space

Specified by:
getNameSpace in interface Instruction
Overrides:
getNameSpace in class AbstractValue
Returns:
NameSpace where children can be stored makes no sense for simple variables

clearNameSpace

protected void clearNameSpace()

startElement

public void startElement(java.lang.String uri,
                         java.lang.String localName,
                         java.lang.String qName,
                         org.xml.sax.Attributes attributes)
                  throws org.xml.sax.SAXException
Specified by:
startElement in interface org.xml.sax.ContentHandler
Overrides:
startElement in class AbstractValue
Throws:
org.xml.sax.SAXException

getAllowedAttributeNames

public java.lang.String[] getAllowedAttributeNames()
Description copied from interface: Instruction
Funtions used only for diagnostic purpose to check if not allowed attribute for instruction used.

Specified by:
getAllowedAttributeNames in interface Instruction
Overrides:
getAllowedAttributeNames in class AbstractValue
Returns:
String[] names of allowed attribute, can return null if any attribute is allowed