ilog.rules.teamserver.model
Class IlrArchiveOutput
- java.lang.Object
-
- ilog.rules.teamserver.model.IlrArchiveOutput
-
- All Implemented Interfaces:
- java.io.Serializable
public class IlrArchiveOutput extends java.lang.Object implements java.io.Serializable
Result object returned when generating a ruleset or RuleApp archive.
-
-
Field Summary
Fields Modifier and Type Field and Description static java.lang.String
DEPLOYMENT_NAME_ATTRIBUTE
Name of the attribute containing the name of the deployment.static java.lang.String
DEPLOYMENT_REPORT_ATTRIBUTE
Name of the attribute containing the deployment report on the Rule Execution Server (if performed).
-
Constructor Summary
Constructors Constructor and Description IlrArchiveOutput(byte[] bytes, java.util.List checkingErrors)
Constructs a new archive output.
-
Method Summary
Methods Modifier and Type Method and Description java.lang.Object
getAttribute(java.lang.String name)
Returns the value of the named attribute as anObject
, ornull
if no attribute of the given name exists.java.util.Set
getAttributeNames()
Returns aSet
containing the names of the attributes available to this archive.byte[]
getBytes()
Gets the byte array representing the ruleset or RuleApp archive.java.util.List<IlrElementError>
getCheckingErrors()
Gets the list of errors generated when checking the archive.void
removeAttribute(java.lang.String name)
Removes an attribute from this archive.void
setAttribute(java.lang.String name, java.lang.Object value)
Stores an attribute in this archive.
-
-
-
Field Detail
-
DEPLOYMENT_REPORT_ATTRIBUTE
public static final java.lang.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 java.lang.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, java.util.List checkingErrors)
Constructs a new archive output.- Parameters:
bytes
- The archive (RuleApp or ruleset archive), as a byte array.checkingErrors
- List ofIlrElementError
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 java.util.List<IlrElementError> getCheckingErrors()
Gets the list of errors generated when checking the archive.- Returns:
- List of
IlrElementError
objects. - See Also:
IlrElementError
-
getAttribute
public java.lang.Object getAttribute(java.lang.String name)
Returns the value of the named attribute as anObject
, ornull
if no attribute of the given name exists.- Parameters:
name
- AString
specifying the name of the attribute.- Returns:
- An
Object
containing the value of the attribute, ornull
if the attribute does not exist.
-
setAttribute
public void setAttribute(java.lang.String name, java.lang.Object value)
Stores an attribute in this archive.- Parameters:
name
- AString
specifying the name of the attribute.value
- TheObject
to be stored.
-
removeAttribute
public void removeAttribute(java.lang.String name)
Removes an attribute from this archive.- Parameters:
name
- AString
specifying the name of the attribute to remove.
-
getAttributeNames
public java.util.Set getAttributeNames()
Returns aSet
containing the names of the attributes available to this archive.- Returns:
- A
Set
of strings containing the names of the archive's attributes.
-
-