Rule Execution Server API

ilog.rules.res.model
Class IlrPath

java.lang.Object
  extended by ilog.rules.res.model.IlrPath
All Implemented Interfaces:
Serializable

public class IlrPath
extends Object
implements Serializable

IlrPath represents the path to a RuleApp or a ruleset.

Since:
7.0
See Also:
Serialized Form

Constructor Summary
IlrPath(String ruleAppName)
          Constructs a new RuleApp path with no version.
IlrPath(String ruleAppName, IlrVersion ruleAppVersion)
          Constructs a new RuleApp path.
IlrPath(String ruleAppName, IlrVersion ruleAppVersion, String rulesetName)
          Constructs a ruleset path with no version number.
IlrPath(String ruleAppName, IlrVersion ruleAppVersion, String rulesetName, IlrVersion rulesetVersion)
          Constructs a new canonical ruleset path.
IlrPath(String ruleAppName, String rulesetName)
          Constructs a new ruleset path with no version number.
IlrPath(String ruleAppName, String rulesetName, IlrVersion rulesetVersion)
          Constructs a new ruleset path with no RuleApp version.
 
Method Summary
 boolean equals(Object obj)
           
 String getRuleAppName()
          Returns the RuleApp name.
 IlrVersion getRuleAppVersion()
          Returns the RuleApp version.
 String getRulesetName()
          Returns the ruleset name.
 IlrVersion getRulesetVersion()
          Returns the ruleset version.
 int hashCode()
           
 boolean isCanonical()
          Checks if the path is canonical.
 boolean isRuleAppPath()
          Checks if this path points to a RuleApp.
 boolean isRulesetPath()
          Checks if this path points to a ruleset.
static IlrPath parsePath(String path)
          Returns an IlrPath object that represents the path of the RuleApp or the ruleset specified by a string.
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

IlrPath

public IlrPath(String ruleAppName)
Constructs a new RuleApp path with no version.

Parameters:
ruleAppName - The RuleApp name. This parameter cannot be set to null.

IlrPath

public IlrPath(String ruleAppName,
               IlrVersion ruleAppVersion)
Constructs a new RuleApp path.

Parameters:
ruleAppName - The RuleApp name. This parameter cannot be set to null.
ruleAppVersion - The RuleApp version.

IlrPath

public IlrPath(String ruleAppName,
               String rulesetName,
               IlrVersion rulesetVersion)
Constructs a new ruleset path with no RuleApp version.

Parameters:
ruleAppName - The RuleApp name. This parameter cannot be set to null.
rulesetName - The ruleset name.
rulesetVersion - The ruleset version.

IlrPath

public IlrPath(String ruleAppName,
               String rulesetName)
Constructs a new ruleset path with no version number.

Parameters:
ruleAppName - The RuleApp name. This parameter cannot be set to null.
rulesetName - The ruleset name.

IlrPath

public IlrPath(String ruleAppName,
               IlrVersion ruleAppVersion,
               String rulesetName)
Constructs a ruleset path with no version number.

Parameters:
ruleAppName - The RuleApp name. This parameter cannot be set to null.
ruleAppVersion - The RuleApp version.
rulesetName - The ruleset name.

IlrPath

public IlrPath(String ruleAppName,
               IlrVersion ruleAppVersion,
               String rulesetName,
               IlrVersion rulesetVersion)
Constructs a new canonical ruleset path.

Parameters:
ruleAppName - The RuleApp name. This parameter cannot be set to null.
ruleAppVersion - The RuleApp version.
rulesetName - The ruleset name.
rulesetVersion - The ruleset version.
Method Detail

parsePath

public static IlrPath parsePath(String path)
                         throws IlrFormatException
Returns an IlrPath object that represents the path of the RuleApp or the ruleset specified by a string.

Throws:
IlrFormatException - if path is not in the correct format.
Parameters:
path - The string to be parsed.
Returns:
An IlrPath object representing the path of either the RuleApp or the ruleset specified by path.
See Also:
isRuleAppPath(), isRulesetPath()

getRuleAppName

public String getRuleAppName()
Returns the RuleApp name.

Returns:
The RuleApp name. This method cannot return null.

getRuleAppVersion

public IlrVersion getRuleAppVersion()
Returns the RuleApp version.

Returns:
The RuleApp version. If the RuleApp has not been assigned a version, null is returned.

getRulesetName

public String getRulesetName()
Returns the ruleset name.

Returns:
The ruleset name. If the ruleset has not been assigned a name, null is returned.

getRulesetVersion

public IlrVersion getRulesetVersion()
Returns the ruleset version.

Returns:
The ruleset version. If the ruleset has not been assigned a version number, null is returned.

isRuleAppPath

public boolean isRuleAppPath()
Checks if this path points to a RuleApp. For example:

Returns:
If this path points to a RuleApp, true is returned.

isRulesetPath

public boolean isRulesetPath()
Checks if this path points to a ruleset. For example:

Returns:
If this path points to a ruleset, true is returned.

isCanonical

public boolean isCanonical()
Checks if the path is canonical. Examples of a canonical path are:

Returns:
If the path is canonical, true is returned.

equals

public boolean equals(Object obj)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object

toString

public String toString()
Overrides:
toString in class Object

Rule Execution Server API

© Copyright IBM Corp. 1987, 2012