|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectuk.ac.ucl.sse.omii.bpel.abr.generation.PddGenerator
public class PddGenerator
Responsible for generating PDD (ActiveBPEL deployment descriptor) for any
given valid BPELModuleArtifact
.
TODO when workflow analyzer is implemented to recognise different types of
workflows think about refactoring this so that this becomes base class and
can use strategy pattern in order decide which concrete implementation ot use
for generating PDD
Constructor Summary | |
---|---|
PddGenerator(java.lang.String host,
int httpPort,
org.eclipse.wst.server.core.IModuleArtifact moduleArtifact)
|
Method Summary | |
---|---|
DocumentRoot |
generatePDD()
Generates PDD given an IModuleArtifact . |
DocumentRoot |
getDocRoot()
ONLY FOR TESTING PURPOSES! |
java.lang.String |
getHost()
ONLY FOR TESTING PURPOSES! |
int |
getHttpPort()
ONLY FOR TESTING PURPOSES! |
org.eclipse.emf.ecore.util.ExtendedMetaData |
getMetaData()
ONLY FOR TESTING PURPOSES! |
org.eclipse.emf.common.util.EList |
getScopePartnerLinks(org.eclipse.emf.ecore.EObject process)
Return an EList containing all partnerLink elements defined
on Scopes in this process. |
boolean |
hasWsdlService(PartnerLink bpelPartnerLink)
Returns true if any of the imported (in BPEL process) WSDLs corresponding to this partnerLinkType define a wsdl:service element that is associated with the partnerLinkType, false otherwise. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PddGenerator(java.lang.String host, int httpPort, org.eclipse.wst.server.core.IModuleArtifact moduleArtifact)
host
- String
representing host to be deployed tohttpPort
- int
ActiveBPEL engine port numbermoduleArtifact
- IModuleArtifact
that is expected to be non-null
and contain a valid bpel fileMethod Detail |
---|
public DocumentRoot generatePDD()
IModuleArtifact
.
moduleArtifact
- IModuleArtifact
DocumentRoot
containing model instance with
deployment descriptor for corresponding BPEL process or
null
, if moduleArtifact or BPEL file is not valid
This method checks whether the IModuleArtifact
is
in fact a BPELModuleArtifact
that contains a
corresponding BPEL file. Without these requirements met, it is
not possible to generate correct PDD and the method will
therefore return null
public boolean hasWsdlService(PartnerLink bpelPartnerLink)
ONLY PUBLIC FOR TESTING PURPOSES! TODO not sure that we actually need this method. can just use findWsdlService and check whether null or not
public DocumentRoot getDocRoot()
public org.eclipse.emf.ecore.util.ExtendedMetaData getMetaData()
public java.lang.String getHost()
public int getHttpPort()
public org.eclipse.emf.common.util.EList getScopePartnerLinks(org.eclipse.emf.ecore.EObject process)
EList
containing all partnerLink elements defined
on Scopes in this process.
process
- EObject
representing the Process element
EList
containing all PartnerLink
s
defined on any Scopes (or none)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |