wt.rule.util
Class InitRuleContentHandler

java.lang.Object
  extended bywt.rule.util.InitRuleContentHandler
All Implemented Interfaces:
ContentHandler

public class InitRuleContentHandler
extends Object
implements ContentHandler

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

RESOURCE

private static final String RESOURCE
Deprecated. 
See Also:
Constant Field Values

XML_CONTEXT

public static final String XML_CONTEXT
Deprecated. 
See Also:
Constant Field Values

XML_CONTEXT_TARGET

public static final String XML_CONTEXT_TARGET
Deprecated. 
See Also:
Constant Field Values

XML_CONTEXT_PROJECT

public static final String XML_CONTEXT_PROJECT
Deprecated. 
See Also:
Constant Field Values

XML_CONTEXT_TEAM

public static final String XML_CONTEXT_TEAM
Deprecated. 
See Also:
Constant Field Values

XML_ATTR_OBJECT

public static final String XML_ATTR_OBJECT
Deprecated. 
See Also:
Constant Field Values

XML_ATTR_SELECT

public static final String XML_ATTR_SELECT
Deprecated. 
See Also:
Constant Field Values

XML_INVOKE

public static final String XML_INVOKE
Deprecated. 
See Also:
Constant Field Values

XML_ATTR_CLASS

public static final String XML_ATTR_CLASS
Deprecated. 
See Also:
Constant Field Values

XML_ATTR_METHOD

public static final String XML_ATTR_METHOD
Deprecated. 
See Also:
Constant Field Values

_target

private final Object _target
Deprecated. 

_rootElement

private String _rootElement
Deprecated. 

_values

private final Map _values
Deprecated. 

_elemStack

private final Stack _elemStack
Deprecated. 

_currentValue

private String _currentValue
Deprecated. 

_contextTargetValueHandler

private InitRuleContentHandler.ContextTargetValueHandler _contextTargetValueHandler
Deprecated. 
Constructor Detail

InitRuleContentHandler

public InitRuleContentHandler(Object target)
Deprecated. 
Create an InitRuleContentHandler that will apply a rule to the specified target object.

Method Detail

getRootElement

public String getRootElement()
Deprecated. 
Get the root element of the parsed document. This returns null until the document has been parsed.


getValues

public Map getValues()
Deprecated. 
Return a Map that maps property keys to values.


getCurrentKey

private String getCurrentKey()
Deprecated. 
Get the key that corresponds to the current element being parsed.


getCurrentValue

private String getCurrentValue()
Deprecated. 
Get the value of the current element.


addToCurrentValue

private void addToCurrentValue(String s)
Deprecated. 
Add the specified string to the value of the current element. If no value currently exists, use the supplied string as the current value.


setContextTargetValueHandler

public 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.


getContextTargetValue

private String getContextTargetValue(String property)
                              throws WTException
Deprecated. 
Process the context element whose object attribute equals target. Return the characters that should be appended to the current content.

Throws:
WTException

getContextValue

private String getContextValue(String object,
                               String select)
                        throws WTException
Deprecated. 
Process the context element. Return the characters that should be appended to the current content.

Throws:
WTException

getInvokeValue

private String getInvokeValue(String className,
                              String methodName)
                       throws ClassNotFoundException,
                              NoSuchMethodException,
                              InvocationTargetException,
                              IllegalAccessException
Deprecated. 
Process the invoke element. Return the characters that should be appended to the current content.

Throws:
ClassNotFoundException
NoSuchMethodException
InvocationTargetException
IllegalAccessException

characters

public void characters(char[] ch,
                       int start,
                       int length)
Deprecated. 
Specified by:
characters in interface ContentHandler

endDocument

public void endDocument()
Deprecated. 
Specified by:
endDocument in interface ContentHandler

endElement

public void endElement(String namespaceURI,
                       String localName,
                       String qName)
Deprecated. 
Specified by:
endElement in interface ContentHandler

endPrefixMapping

public void endPrefixMapping(String prefix)
Deprecated. 
Specified by:
endPrefixMapping in interface ContentHandler

ignorableWhitespace

public void ignorableWhitespace(char[] ch,
                                int start,
                                int length)
Deprecated. 
Specified by:
ignorableWhitespace in interface ContentHandler

processingInstruction

public void processingInstruction(String target,
                                  String data)
Deprecated. 
Specified by:
processingInstruction in interface ContentHandler

setDocumentLocator

public void setDocumentLocator(Locator locator)
Deprecated. 
Specified by:
setDocumentLocator in interface ContentHandler

skippedEntity

public void skippedEntity(String name)
Deprecated. 
Specified by:
skippedEntity in interface ContentHandler

startDocument

public void startDocument()
Deprecated. 
Specified by:
startDocument in interface ContentHandler

startElement

public void startElement(String namespaceURI,
                         String localName,
                         String qName,
                         Attributes atts)
Deprecated. 
Specified by:
startElement in interface ContentHandler

startPrefixMapping

public void startPrefixMapping(String prefix,
                               String uri)
Deprecated. 
Specified by:
startPrefixMapping in interface ContentHandler