|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.xml.sax.helpers.DefaultHandler
org.bee.processor.AbstractValue
public abstract class AbstractValue
| Nested Class Summary | |
|---|---|
static class |
AbstractValue.Type
|
| Nested classes/interfaces inherited from interface org.bee.processor.Instruction |
|---|
Instruction.NameSpace |
| Field Summary | |
|---|---|
protected org.xml.sax.Locator |
locator
|
protected java.lang.String |
name
|
protected Instruction |
parent
|
protected AbstractValue.Type |
type
|
protected static java.lang.String |
TYPE_RESERVED
|
protected static java.lang.String |
TYPE_SHORTCUTS
|
protected java.lang.String |
value
|
protected java.lang.StringBuffer |
valueBuffer
|
protected java.lang.String |
variable
|
protected java.lang.String |
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 | |
|---|---|
AbstractValue(java.lang.String xpath)
|
|
| Method Summary | |
|---|---|
void |
characters(char[] ch,
int start,
int length)
|
void |
childDone(Instruction child)
Child notifies a parent that evaluation done, and a parent can use it for own evaluation |
void |
endElement(java.lang.String uri,
java.lang.String localName,
java.lang.String qName)
|
java.lang.String[] |
getAllowedAttributeNames()
Funtions used only for diagnostic purpose to check if not allowed attribute for instruction used. |
org.xml.sax.ContentHandler |
getHandler()
provides a handler to parce instruction |
Instruction.NameSpace |
getNameSpace()
return current name space |
Instruction |
getParent()
returns parent, not sure that we need it at all |
XmlPath |
getPath()
Provides path to the instruction |
void |
ignorableWhitespace(char[] ch,
int start,
int length)
|
InfoHolder<java.lang.String,InfoHolder,java.lang.Object> |
lookupInChain(java.lang.String lookName)
|
Instruction.NameSpace |
lookupNameSpace(java.lang.String lookName)
|
InfoHolder<java.lang.String,InfoHolder,java.lang.Object> |
lookupOnTop(java.lang.String lookName)
|
java.lang.String |
lookupStringValue(java.lang.String lookName)
|
protected java.io.File |
makeFile(java.lang.String pathName)
|
void |
setDocumentLocator(org.xml.sax.Locator locator)
|
void |
setParent(Instruction parent)
call back from processor to set parent instruction |
void |
startElement(java.lang.String uri,
java.lang.String localName,
java.lang.String qName,
org.xml.sax.Attributes attributes)
|
protected void |
traceInChain(java.lang.String lookName)
|
protected void |
updateInNameSpace(java.lang.String lookName,
InfoHolder<java.lang.String,InfoHolder,java.lang.Object> nv)
|
protected void |
verifyAttributes(org.xml.sax.Attributes attrs)
|
| 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, getName |
| Field Detail |
|---|
protected java.lang.String xpath
protected java.lang.String value
protected java.lang.String variable
protected java.lang.String name
protected Instruction parent
protected java.lang.StringBuffer valueBuffer
protected AbstractValue.Type type
protected org.xml.sax.Locator locator
protected static final java.lang.String TYPE_RESERVED
protected static final java.lang.String TYPE_SHORTCUTS
| Constructor Detail |
|---|
public AbstractValue(java.lang.String xpath)
| Method Detail |
|---|
public org.xml.sax.ContentHandler getHandler()
Instruction
getHandler in interface Instructionpublic XmlPath getPath()
Instruction
getPath in interface InstructionXmlPath path
generally path can be modified outside, so it should return clone
if path is statically calculated insidepublic void childDone(Instruction child)
Instruction
childDone in interface Instructionpublic void setParent(Instruction parent)
Instruction
setParent in interface Instructionpublic Instruction getParent()
Instruction
getParent in interface Instructionpublic Instruction.NameSpace getNameSpace()
Instruction
getNameSpace in interface Instructionpublic java.lang.String[] getAllowedAttributeNames()
Instruction
getAllowedAttributeNames in interface Instructionpublic InfoHolder<java.lang.String,InfoHolder,java.lang.Object> lookupInChain(java.lang.String lookName)
public Instruction.NameSpace lookupNameSpace(java.lang.String lookName)
protected void traceInChain(java.lang.String lookName)
public InfoHolder<java.lang.String,InfoHolder,java.lang.Object> lookupOnTop(java.lang.String lookName)
protected void updateInNameSpace(java.lang.String lookName,
InfoHolder<java.lang.String,InfoHolder,java.lang.Object> nv)
public java.lang.String lookupStringValue(java.lang.String lookName)
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
startElement in interface org.xml.sax.ContentHandlerstartElement in class org.xml.sax.helpers.DefaultHandlerorg.xml.sax.SAXException
public void endElement(java.lang.String uri,
java.lang.String localName,
java.lang.String qName)
throws org.xml.sax.SAXException
endElement in interface org.xml.sax.ContentHandlerendElement in class org.xml.sax.helpers.DefaultHandlerorg.xml.sax.SAXException
public void characters(char[] ch,
int start,
int length)
throws org.xml.sax.SAXException
characters in interface org.xml.sax.ContentHandlercharacters in class org.xml.sax.helpers.DefaultHandlerorg.xml.sax.SAXException
public void ignorableWhitespace(char[] ch,
int start,
int length)
throws org.xml.sax.SAXException
ignorableWhitespace in interface org.xml.sax.ContentHandlerignorableWhitespace in class org.xml.sax.helpers.DefaultHandlerorg.xml.sax.SAXExceptionpublic void setDocumentLocator(org.xml.sax.Locator locator)
setDocumentLocator in interface org.xml.sax.ContentHandlersetDocumentLocator in class org.xml.sax.helpers.DefaultHandlerprotected void verifyAttributes(org.xml.sax.Attributes attrs)
protected java.io.File makeFile(java.lang.String pathName)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||