Decision Center API

ilog.rules.teamserver.model
Class IlrArchiveOutput

java.lang.Object
  extended by ilog.rules.teamserver.model.IlrArchiveOutput
All Implemented Interfaces:
Serializable

public class IlrArchiveOutput
extends Object
implements Serializable

Result object returned when generating a ruleset or RuleApp archive.

See Also:
IlrDeploymentFacility.generateRulesetArchive(IlrSearchCriteria,String,String), IlrDeploymentFacility.generateRuleAppArchive(IlrElementHandle, String, int), Serialized Form

Field Summary
static String DEPLOYMENT_NAME_ATTRIBUTE
          Name of the attribute containing the name of the deployment.
static String DEPLOYMENT_REPORT_ATTRIBUTE
          Name of the attribute containing the deployment report on the Rule Execution Server (if performed).
 
Constructor Summary
IlrArchiveOutput(byte[] bytes, List checkingErrors)
          Constructs a new archive output.
 
Method Summary
 Object getAttribute(String name)
          Returns the value of the named attribute as an Object, or null if no attribute of the given name exists.
 Set getAttributeNames()
          Returns a Set containing the names of the attributes available to this archive.
 byte[] getBytes()
          Gets the byte array representing the ruleset or RuleApp archive.
 List<IlrElementError> getCheckingErrors()
          Gets the list of errors generated when checking the archive.
 void removeAttribute(String name)
          Removes an attribute from this archive.
 void setAttribute(String name, Object value)
          Stores an attribute in this archive.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEPLOYMENT_REPORT_ATTRIBUTE

public static final String DEPLOYMENT_REPORT_ATTRIBUTE
Name of the attribute containing the deployment report on the Rule Execution Server (if performed).

See Also:
Constant Field Values

DEPLOYMENT_NAME_ATTRIBUTE

public static final String DEPLOYMENT_NAME_ATTRIBUTE
Name of the attribute containing the name of the deployment.

See Also:
Constant Field Values
Constructor Detail

IlrArchiveOutput

public IlrArchiveOutput(byte[] bytes,
                        List checkingErrors)
Constructs a new archive output.

Parameters:
bytes - The archive (RuleApp or ruleset archive), as a byte array.
checkingErrors - List of IlrElementError containing the checking errors reported during the ruleset generation.
Method Detail

getBytes

public byte[] getBytes()
Gets the byte array representing the ruleset or RuleApp archive.

Returns:
The archive as a byte array.
See Also:
IlrRulesetArchive

getCheckingErrors

public List<IlrElementError> getCheckingErrors()
Gets the list of errors generated when checking the archive.

Returns:
List of IlrElementError objects.
See Also:
IlrElementError

getAttribute

public Object getAttribute(String name)
Returns the value of the named attribute as an Object, or null if no attribute of the given name exists.

Parameters:
name - A String specifying the name of the attribute.
Returns:
An Object containing the value of the attribute, or null if the attribute does not exist.

setAttribute

public void setAttribute(String name,
                         Object value)
Stores an attribute in this archive.

Parameters:
name - A String specifying the name of the attribute.
value - The Object to be stored.

removeAttribute

public void removeAttribute(String name)
Removes an attribute from this archive.

Parameters:
name - A String specifying the name of the attribute to remove.

getAttributeNames

public Set getAttributeNames()
Returns a Set containing the names of the attributes available to this archive.

Returns:
A Set of strings containing the names of the archive's attributes.

Decision Center API

© Copyright IBM Corp. 1987, 2013