org.ogf.graap.wsag.api.pattern
Class ComputeApplicationPattern

java.lang.Object
  extended by org.ogf.graap.wsag.api.pattern.AbstractPattern
      extended by org.ogf.graap.wsag.api.pattern.ComputeApplicationPattern
All Implemented Interfaces:
IPattern

public class ComputeApplicationPattern
extends AbstractPattern

ComputeApplicationPattern The term compositor contains an Application SDT.

Author:
Oliver Waeldrich
 <wsag:Template wsag:TemplateId="1"
  xmlns:wsag="http://schemas.ggf.org/graap/2007/03/ws-agreement">
  <wsag:Name>ADAVANCE_RESERVATION_TEMPLATE</wsag:Name>
  <wsag:Context>
      <wsag:ServiceProvider>AgreementResponder</wsag:ServiceProvider>
      <wsag:TemplateId>1</wsag:TemplateId>
      <wsag:TemplateName>ADAVANCE_RESERVATION_TEMPLATE</wsag:TemplateName>
  </wsag:Context>
  <wsag:Terms>
      <wsag:All>
          <wsag:ServiceDescriptionTerm wsag:Name="SDT_1"
              wsag:ServiceName="SERVICE_1">
              (Put your service description terms here) ....
          </wsag:ServiceDescriptionTerm>
          ...
          <wsag:ServiceDescriptionTerm wsag:Name="APPLICATION_SDT"
              wsag:ServiceName="CHANGE_ME">
              <jsdl:JobDefinition xmlns:jsdl="http://schemas.ggf.org/jsdl/2005/11/jsdl">
                  <jsdl:JobDescription>
                      <jsdl:Application>
                          <jsdl:ApplicationName>ApplicationName</jsdl:ApplicationName>
                          <jsdl:ApplicationVersion>ApplicationVersion</jsdl:ApplicationVersion>
                          <jsdl:Description>Description</jsdl:Description>
                      </jsdl:Application>
                  </jsdl:JobDescription>
              </jsdl:JobDefinition>
          </wsag:ServiceDescriptionTerm>
      </wsag:All>
  </wsag:Terms>
  <wsag:CreationConstraints />
 </wsag:Template>
 
 

Constructor Summary
ComputeApplicationPattern(TermCompositorType termCompositor)
          Instantiates the pattern for the given term compositor.
 
Method Summary
static String getApplicationxpath()
          Subclasses may overwrite this method in order to provide a custom expression for selecting the applications.
 ApplicationType getSelectedApplication()
           
 JobDefinitionType getSelectedJobDefinition()
           
 
Methods inherited from class org.ogf.graap.wsag.api.pattern.AbstractPattern
getTermCompositor
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ComputeApplicationPattern

public ComputeApplicationPattern(TermCompositorType termCompositor)
Instantiates the pattern for the given term compositor.

Parameters:
termCompositor - the term compositor
Method Detail

getSelectedApplication

public ApplicationType getSelectedApplication()
Returns:
the selected application

getSelectedJobDefinition

public JobDefinitionType getSelectedJobDefinition()
Returns:
the selected job definition that contains the application

getApplicationxpath

public static String getApplicationxpath()
Subclasses may overwrite this method in order to provide a custom expression for selecting the applications.

Returns:
the XPath expression that is used to select the applications from the term compositor.


Copyright © 2008-2012. All Rights Reserved.