SMILA 1.0 API documentation

org.eclipse.smila.processing.bpel.internal
Class BpelScanner

java.lang.Object
  extended by org.eclipse.smila.processing.bpel.internal.BpelScanner

public class BpelScanner
extends java.lang.Object

scan BPEL definitions for invocations of other pipelines and find process name.


Constructor Summary
BpelScanner(byte[] bpelDefinition)
          create instance for given BPEL definition.
BpelScanner(java.io.InputStream bpelDefinition)
          create instance for given BPEL stream.
BpelScanner(java.lang.String bpelDefinition)
          create instance for given BPEL string.
 
Method Summary
 void close()
          close XML parser.
 boolean findNextInvoke()
          find next <invoke> element.
 java.lang.String getCurrentOperation()
           
 java.lang.String getCurrentPartnerLink()
           
 java.lang.String getCurrentPortType()
           
 java.lang.String getProcessName()
          value of name attribute of process element.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BpelScanner

public BpelScanner(java.lang.String bpelDefinition)
            throws java.io.UnsupportedEncodingException,
                   javax.xml.stream.XMLStreamException
create instance for given BPEL string.

Throws:
java.io.UnsupportedEncodingException
javax.xml.stream.XMLStreamException

BpelScanner

public BpelScanner(byte[] bpelDefinition)
            throws javax.xml.stream.XMLStreamException
create instance for given BPEL definition.

Throws:
javax.xml.stream.XMLStreamException

BpelScanner

public BpelScanner(java.io.InputStream bpelDefinition)
            throws javax.xml.stream.XMLStreamException
create instance for given BPEL stream.

Throws:
javax.xml.stream.XMLStreamException
Method Detail

getProcessName

public java.lang.String getProcessName()
value of name attribute of process element. Set after parsing BPEL has been done.


findNextInvoke

public boolean findNextInvoke()
                       throws javax.xml.stream.XMLStreamException
find next <invoke> element.

Returns:
true if another one was found, otherwise false.
Throws:
javax.xml.stream.XMLStreamException

getCurrentPortType

public java.lang.String getCurrentPortType()
Returns:
value of portType attribute if an <invoke> element was found. null if called before findNextInvoke() was called or if it has returned false.

getCurrentOperation

public java.lang.String getCurrentOperation()
Returns:
value of operation attribute if an <invoke> element was found. null if called before findNextInvoke() was called or if it has returned false.

getCurrentPartnerLink

public java.lang.String getCurrentPartnerLink()
Returns:
value of partnerLink attribute if an <invoke> element was found. null if called before findNextInvoke() was called or if it has returned false.

close

public void close()
close XML parser.


SMILA 1.0 API documentation