|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface BaseTool
Performs editing functions on a generic CMLObject
| Field Summary | |
|---|---|
static java.lang.String |
DOUBLE
|
static java.lang.String |
INTEGER
|
static java.lang.String |
STRING
|
static java.lang.String |
XSD_DOUBLE
|
static java.lang.String |
XSD_INTEGER
|
static java.lang.String |
XSD_STRING
|
| Method Summary | |
|---|---|
void |
characters(SaxHandler saxHandler,
java.lang.String content)
SAX2 parsing routine - called from characters() callback NOT namespace aware |
void |
copyAttributesFromTo(AbstractBase from,
AbstractBase to)
copy attributes from one AbstractBase to another. |
void |
endElement(SaxHandler saxHandler)
SAX2 parsing routine - called from endElement() callback NOT namespace aware |
boolean |
equals(BaseTool baseTool)
is the contained object equal to the other contained object. |
AbstractBase |
getAbstractBase()
get abstract base. |
java.lang.reflect.Method[] |
getDeclaredPublicMethods()
get all public methods belonging just to this class. |
BaseTool |
getTestInstance(AbstractCMLDocument doc,
int serial)
a standard instance for testing. |
Workflow |
getWorkflow()
get the workflow. |
void |
mustEqual(BaseTool baseTool)
throws exception if the contained object is not equal to the other contained object. |
int |
processCommandLine(java.lang.String[] args,
int offset,
java.util.List argVector,
AbstractCMLDocument doc)
process the commandline from main routines. |
void |
processCurrentCommand(Workflow workflow)
run workflow script or object. |
org.w3c.dom.Element |
removeElement(java.lang.String elementName)
removes the first element by tagName finds first element with that name and removes it from its parent. |
java.lang.Object |
runMethod(java.lang.String methodS,
java.util.List argVector)
run any public method. |
void |
setAbstractBase(AbstractBase ab)
set abstract base only defined for implemented tools (default => null) should not be required in user code |
void |
setIgnoreAttribute(java.lang.String name,
boolean descend)
ignore an attribute |
void |
startElement(SaxHandler saxHandler,
org.xml.sax.Attributes attributes)
SAX2 parsing routine - called from startElement() callback NOT namespace aware |
void |
transferChildrenFromTo(AbstractBase from,
AbstractBase to)
transfer children from one AbstractBase to another. |
void |
writeXML(java.io.Writer w,
java.lang.String control)
write XML, using class-specific information NOT namespace aware |
| Field Detail |
|---|
static final java.lang.String DOUBLE
static final java.lang.String INTEGER
static final java.lang.String STRING
static final java.lang.String XSD_DOUBLE
static final java.lang.String XSD_INTEGER
static final java.lang.String XSD_STRING
| Method Detail |
|---|
AbstractBase getAbstractBase()
void setAbstractBase(AbstractBase ab)
ab - the element associated with this tool
void setIgnoreAttribute(java.lang.String name,
boolean descend)
name - attribute to ignoredescend - carry over to descendantsboolean equals(BaseTool baseTool)
baseTool - the other element tool (must be of same class)
void mustEqual(BaseTool baseTool)
throws CMLException
baseTool - the other element tool (must be of same class)
CMLException - the reason for non-equalityorg.w3c.dom.Element removeElement(java.lang.String elementName)
elementName -
void characters(SaxHandler saxHandler,
java.lang.String content)
throws CMLException
saxHandler - SaxHandlercontent - throws exception (probably application specific)
CMLException
void endElement(SaxHandler saxHandler)
throws CMLException
saxHandler - Saxhandler
throws exception (probably application specific)
CMLException
void startElement(SaxHandler saxHandler,
org.xml.sax.Attributes attributes)
throws CMLException
saxHandler - Saxhandlerattributes - the attribute list
throws exception (probably application specific)
CMLException
void writeXML(java.io.Writer w,
java.lang.String control)
throws CMLException,
java.io.IOException
w - the writercontrol - (concatenation of CML version and array)
exception - (probably application specific)
CMLException
java.io.IOException
void copyAttributesFromTo(AbstractBase from,
AbstractBase to)
from - element to copy fromto - element to copy to
void transferChildrenFromTo(AbstractBase from,
AbstractBase to)
from - element to copy fromto - element to copy to
void processCurrentCommand(Workflow workflow)
throws CMLException
workflow - to process.
CMLExceptionWorkflow getWorkflow()
java.lang.Object runMethod(java.lang.String methodS,
java.util.List argVector)
methodS - case-sensitive?. Returns without action if duplicate method nameargVector - arguments in order. First arg is instance of this
java.lang.reflect.Method[] getDeclaredPublicMethods()
int processCommandLine(java.lang.String[] args,
int offset,
java.util.List argVector,
AbstractCMLDocument doc)
args - the argumentsoffset - current position in argsargVector - vector to accumulate argumentsdoc - owner document
BaseTool getTestInstance(AbstractCMLDocument doc,
int serial)
doc - the owner documentserial - the instance (1,2,3)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||