Version: 1.1.1

ca.ucalgary.services.util
Class RuleCreator

java.lang.Object
  extended by ca.ucalgary.services.util.RuleCreator

public class RuleCreator
extends Object

Contains utility functions to create and store MOB and DEM rules (for Sehawk's MobyClient and TextClient)


Field Summary
static String DATA_CONTENTS_PARAM
           
static String LIFTING_SCHEMA_PATH
           
static String LOWERING_SCHEMA_PATH
           
static String METADATA_CONTENTS_PARAM
           
static String RULE_CONTENTS_PARAM
           
static String RULESTORE_URL
           
 
Constructor Summary
RuleCreator()
           
 
Method Summary
static String createLiftingRuleAndMakeAvailable(String discoveryXPath, String cleanXPath, String dataType, Map<String,String> nsXPaths, Map<String,String> memberXPaths)
          Creates a new MOB rule based on the input xpaths, then uploads that rule to an LSID server.
static String simplifyParamName(String originalName, Map<String,String> namesInUse)
          Turns a complex xpath-based parameter name into something a moby user won't be afraid of Since the XPath is passd between the PBE system and the Daggoo registration engine, they should both cal this method to coordinate on Moby parameter names.
static Vector<String> suggestValueXPathsFromSelectionXPath(String selectionXpath, Node selectionNode)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

RULESTORE_URL

public static final String RULESTORE_URL
See Also:
Constant Field Values

LIFTING_SCHEMA_PATH

public static final String LIFTING_SCHEMA_PATH
See Also:
Constant Field Values

LOWERING_SCHEMA_PATH

public static final String LOWERING_SCHEMA_PATH
See Also:
Constant Field Values

RULE_CONTENTS_PARAM

public static final String RULE_CONTENTS_PARAM
See Also:
Constant Field Values

DATA_CONTENTS_PARAM

public static final String DATA_CONTENTS_PARAM
See Also:
Constant Field Values

METADATA_CONTENTS_PARAM

public static final String METADATA_CONTENTS_PARAM
See Also:
Constant Field Values
Constructor Detail

RuleCreator

public RuleCreator()
Method Detail

createLiftingRuleAndMakeAvailable

public static String createLiftingRuleAndMakeAvailable(String discoveryXPath,
                                                       String cleanXPath,
                                                       String dataType,
                                                       Map<String,String> nsXPaths,
                                                       Map<String,String> memberXPaths)
                                                throws Exception
Creates a new MOB rule based on the input xpaths, then uploads that rule to an LSID server.

Returns:
uri of the registered rule
Throws:
Exception

suggestValueXPathsFromSelectionXPath

public static Vector<String> suggestValueXPathsFromSelectionXPath(String selectionXpath,
                                                                  Node selectionNode)

simplifyParamName

public static String simplifyParamName(String originalName,
                                       Map<String,String> namesInUse)
                                throws Exception
Turns a complex xpath-based parameter name into something a moby user won't be afraid of Since the XPath is passd between the PBE system and the Daggoo registration engine, they should both cal this method to coordinate on Moby parameter names.

Throws:
Exception

Version: 1.1.1

Submit a bug or feature
Generated: Sat May 29 04:26:35 EDT 2010