Rule Execution Server API

ilog.rules.archive
Class IlrRulesetArchive.Element

java.lang.Object
  extended by ilog.rules.archive.IlrRulesetArchive.Element
All Implemented Interfaces:
Serializable
Enclosing class:
IlrRulesetArchive

public class IlrRulesetArchive.Element
extends Object
implements Serializable

Model of an archive element.

See Also:
Serialized Form

Method Summary
 byte[] getContent()
          Returns the element contents.
 String getKey()
          Returns the element name.
 int getKind()
          Returns the kind of the element.
 String toString()
          Returns a representation of the element as a java.lang.String.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

getKey

public String getKey()
Returns the element name.

Returns:
The name under which the element content is stored in the archive.

getContent

public byte[] getContent()
Returns the element contents.

Returns:
A byte array that represents the contents of the archive element.

getKind

public int getKind()
Returns the kind of the element.

Returns:
The kind of the element. The possible values for the kind are: IRL, BOM, B2X, XOM, XSD, WSDL, USER_DATA, or ENGINE_CONF.

toString

public String toString()
Returns a representation of the element as a java.lang.String.

Overrides:
toString in class Object
Returns:
A string that represents the element contents. If the element kind is USER_DATA, the contents may not be interpretable as a java.lang.String. In this case a string formatted as follows is returned: [IlrRulesetArchive.Element " + <element's key> +"]

Rule Execution Server API

© Copyright IBM Corp. 1987, 2013