oracle.clex.tools.processgenerator.util
Class ServiceReader
java.lang.Object
|
+--org.xml.sax.HandlerBase
|
+--oracle.clex.tools.processgenerator.util.ServiceReader
- All Implemented Interfaces:
- org.xml.sax.DocumentHandler, org.xml.sax.DTDHandler, org.xml.sax.EntityResolver, org.xml.sax.ErrorHandler
- public class ServiceReader
- extends org.xml.sax.HandlerBase
This class is used to read a service definition and has methods
to return information found within the service definition.
Field Summary |
protected static java.lang.String |
CLASS
|
protected static java.lang.String |
PROCESS
|
protected static int |
TYPE
|
protected static int |
VALUE
|
Constructor Summary |
ServiceReader(java.lang.String urlString)
Constructor |
Method Summary |
void |
endDocument()
This method does not do anything but is required for the interface |
void |
endElement(java.lang.String name)
Nothing needs to be done when element closes |
boolean |
fileExist(java.lang.String filename)
Returns a boolean of weather a file exists at the defined location |
protected org.xml.sax.InputSource |
getInputSource(java.lang.String urlString)
Returns the InputSource for the xml file at the specified URL |
java.util.Vector |
getProcesses()
Returns an the value for the attribute processes |
static void |
main(java.lang.String[] args)
|
void |
startElement(java.lang.String name,
org.xml.sax.AttributeList amap)
For the start of each element,check to see if the element is
a Process |
Methods inherited from class org.xml.sax.HandlerBase |
characters, error, fatalError, ignorableWhitespace, notationDecl, processingInstruction, resolveEntity, setDocumentLocator, startDocument, unparsedEntityDecl, warning |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PROCESS
protected static final java.lang.String PROCESS
CLASS
protected static final java.lang.String CLASS
TYPE
protected static final int TYPE
VALUE
protected static final int VALUE
ServiceReader
public ServiceReader(java.lang.String urlString)
throws java.lang.Exception
- Constructor
startElement
public void startElement(java.lang.String name,
org.xml.sax.AttributeList amap)
throws org.xml.sax.SAXException
- For the start of each element,check to see if the element is
a Process
- Overrides:
startElement
in class org.xml.sax.HandlerBase
endElement
public void endElement(java.lang.String name)
throws org.xml.sax.SAXException
- Nothing needs to be done when element closes
- Overrides:
endElement
in class org.xml.sax.HandlerBase
endDocument
public void endDocument()
throws org.xml.sax.SAXException
- This method does not do anything but is required for the interface
- Overrides:
endDocument
in class org.xml.sax.HandlerBase
getProcesses
public java.util.Vector getProcesses()
- Returns an the value for the attribute processes
fileExist
public boolean fileExist(java.lang.String filename)
- Returns a boolean of weather a file exists at the defined location
main
public static void main(java.lang.String[] args)
getInputSource
protected org.xml.sax.InputSource getInputSource(java.lang.String urlString)
throws java.lang.Exception
- Returns the InputSource for the xml file at the specified URL
- Returns:
- org.xml.sax.InputSource
Copyright © 2003 ORACLE Corp. All Rights Reserved.