|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectwt.rule.util.InitRuleContentHandler
This ContentHandler
supports parsing
INIT
Rule
specifications.
Nested Class Summary | |
static interface |
InitRuleContentHandler.ContextTargetValueHandler
Deprecated. Implementations of this interface are used to handle processing the context elements
whose object attribute equals
target in an XML INIT rule
specification. |
Field Summary | |
private InitRuleContentHandler.ContextTargetValueHandler |
_contextTargetValueHandler
Deprecated. |
private String |
_currentValue
Deprecated. |
private Stack |
_elemStack
Deprecated. |
private String |
_rootElement
Deprecated. |
private Object |
_target
Deprecated. |
private Map |
_values
Deprecated. |
private static String |
RESOURCE
Deprecated. |
static String |
XML_ATTR_CLASS
Deprecated. |
static String |
XML_ATTR_METHOD
Deprecated. |
static String |
XML_ATTR_OBJECT
Deprecated. |
static String |
XML_ATTR_SELECT
Deprecated. |
static String |
XML_CONTEXT
Deprecated. |
static String |
XML_CONTEXT_PROJECT
Deprecated. |
static String |
XML_CONTEXT_TARGET
Deprecated. |
static String |
XML_CONTEXT_TEAM
Deprecated. |
static String |
XML_INVOKE
Deprecated. |
Constructor Summary | |
InitRuleContentHandler(Object target)
Deprecated. Create an InitRuleContentHandler that will
apply a rule to the specified target
object. |
Method Summary | |
private void |
addToCurrentValue(String s)
Deprecated. Add the specified string to the value of the current element. |
void |
characters(char[] ch,
int start,
int length)
Deprecated. |
void |
endDocument()
Deprecated. |
void |
endElement(String namespaceURI,
String localName,
String qName)
Deprecated. |
void |
endPrefixMapping(String prefix)
Deprecated. |
private String |
getContextTargetValue(String property)
Deprecated. Process the context element whose
object attribute equals target . |
private String |
getContextValue(String object,
String select)
Deprecated. Process the context element. |
private String |
getCurrentKey()
Deprecated. Get the key that corresponds to the current element being parsed. |
private String |
getCurrentValue()
Deprecated. Get the value of the current element. |
private String |
getInvokeValue(String className,
String methodName)
Deprecated. Process the invoke element. |
String |
getRootElement()
Deprecated. Get the root element of the parsed document. |
Map |
getValues()
Deprecated. Return a Map that maps property
keys to values. |
void |
ignorableWhitespace(char[] ch,
int start,
int length)
Deprecated. |
void |
processingInstruction(String target,
String data)
Deprecated. |
void |
setContextTargetValueHandler(InitRuleContentHandler.ContextTargetValueHandler hnd)
Deprecated. Set the wt.rule.InitRuleContentHandler.ContextTargetValueHandler
that should be used by this content handler to handle
context elements whose object
attribute equals target in an XML
INIT rule specification. |
void |
setDocumentLocator(Locator locator)
Deprecated. |
void |
skippedEntity(String name)
Deprecated. |
void |
startDocument()
Deprecated. |
void |
startElement(String namespaceURI,
String localName,
String qName,
Attributes atts)
Deprecated. |
void |
startPrefixMapping(String prefix,
String uri)
Deprecated. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private static final String RESOURCE
public static final String XML_CONTEXT
public static final String XML_CONTEXT_TARGET
public static final String XML_CONTEXT_PROJECT
public static final String XML_CONTEXT_TEAM
public static final String XML_ATTR_OBJECT
public static final String XML_ATTR_SELECT
public static final String XML_INVOKE
public static final String XML_ATTR_CLASS
public static final String XML_ATTR_METHOD
private final Object _target
private String _rootElement
private final Map _values
private final Stack _elemStack
private String _currentValue
private InitRuleContentHandler.ContextTargetValueHandler _contextTargetValueHandler
Constructor Detail |
public InitRuleContentHandler(Object target)
InitRuleContentHandler
that will
apply a rule to the specified target
object.
Method Detail |
public String getRootElement()
null
until the document has
been parsed.
public Map getValues()
Map
that maps property
keys to values.
private String getCurrentKey()
private String getCurrentValue()
private void addToCurrentValue(String s)
public void setContextTargetValueHandler(InitRuleContentHandler.ContextTargetValueHandler hnd)
wt.rule.InitRuleContentHandler.ContextTargetValueHandler
that should be used by this content handler to handle
context
elements whose object
attribute equals target
in an XML
INIT
rule specification.
private String getContextTargetValue(String property) throws WTException
context
element whose
object
attribute equals target
.
Return the characters that should be appended to the
current content.
WTException
private String getContextValue(String object, String select) throws WTException
context
element. Return the
characters that should be appended to the current content.
WTException
private String getInvokeValue(String className, String methodName) throws ClassNotFoundException, NoSuchMethodException, InvocationTargetException, IllegalAccessException
invoke
element. Return the
characters that should be appended to the current content.
ClassNotFoundException
NoSuchMethodException
InvocationTargetException
IllegalAccessException
public void characters(char[] ch, int start, int length)
characters
in interface ContentHandler
public void endDocument()
endDocument
in interface ContentHandler
public void endElement(String namespaceURI, String localName, String qName)
endElement
in interface ContentHandler
public void endPrefixMapping(String prefix)
endPrefixMapping
in interface ContentHandler
public void ignorableWhitespace(char[] ch, int start, int length)
ignorableWhitespace
in interface ContentHandler
public void processingInstruction(String target, String data)
processingInstruction
in interface ContentHandler
public void setDocumentLocator(Locator locator)
setDocumentLocator
in interface ContentHandler
public void skippedEntity(String name)
skippedEntity
in interface ContentHandler
public void startDocument()
startDocument
in interface ContentHandler
public void startElement(String namespaceURI, String localName, String qName, Attributes atts)
startElement
in interface ContentHandler
public void startPrefixMapping(String prefix, String uri)
startPrefixMapping
in interface ContentHandler
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |