ca.ucalgary.services.util
Class RuleCreator
java.lang.Object
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)
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)
|
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
RuleCreator
public RuleCreator()
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
Submit a bug or feature
Generated: Sat May 29 04:26:35 EDT 2010