org.wsmostudio.choreography.helper
Class Render

java.lang.Object
  extended by org.wsmostudio.choreography.helper.Render

public class Render
extends java.lang.Object

Helper class to render objects to wsml fragments and the opposite

Title: WSMO Studio

Description: Semantic Web Service Editor

Copyright: Copyright (c) 2004-2006

Company: OntoText Lab. / SIRMA


Constructor Summary
Render()
           
 
Method Summary
static java.lang.String compoundFactToWSMLString(org.wsmo.common.TopEntity nsHolder, java.util.List<org.wsmo.service.rule.CompoundFact> facts)
          Serialize a CompoundFact(s) to a wsml string.
static java.util.List<org.wsmo.service.rule.CompoundFact> wsmlStringToCompoundFact(org.wsmo.common.TopEntity nsHolder, java.lang.String factText)
          Parse a WSML compound fact string to CompoundFact object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Render

public Render()
Method Detail

compoundFactToWSMLString

public static java.lang.String compoundFactToWSMLString(org.wsmo.common.TopEntity nsHolder,
                                                        java.util.List<org.wsmo.service.rule.CompoundFact> facts)
Serialize a CompoundFact(s) to a wsml string.

Parameters:
nsHolder - namespace holder
facts - facts[0] is new CompoundFact; facts[1] is old CompoundFact (optional)
Returns:
wsml string

wsmlStringToCompoundFact

public static java.util.List<org.wsmo.service.rule.CompoundFact> wsmlStringToCompoundFact(org.wsmo.common.TopEntity nsHolder,
                                                                                          java.lang.String factText)
                                                                                   throws org.wsmo.wsml.ParserException
Parse a WSML compound fact string to CompoundFact object.

Parameters:
nsHolder - namespace information
factText - wsml for the compound fact
Returns:
Array of CompoundFacts the new (1), old if exists (2)
Throws:
org.wsmo.wsml.ParserException


Copyright © 2005-2008 Ontotext Lab.. All Rights Reserved.