|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectwt.rule.CompositeRule
A rule that represents a composite of other rules. This rule is not peristent.
Use the newCompositeRule
static factory method(s), not the
CompositeRule
constructor, to construct instances of this
class. Instances must be constructed using the static factory(s), in
order to ensure proper initialization of the instance.
Supported API: false
Extendable: false
Field Summary | |
private static String |
CLASSNAME
|
private String |
contents
|
private boolean |
defaultRule
|
private String |
description
|
private String |
encoding
|
static long |
EXTERNALIZATION_VERSION_UID
|
private ObjectIdentifier[] |
mergedRules
|
private String |
name
|
protected static long |
OLD_FORMAT_VERSION_UID
|
private static String |
RESOURCE
|
private RuleType |
ruleType
|
(package private) static long |
serialVersionUID
|
Fields inherited from interface wt.rule.Rule |
DEFAULT_RULE, DESCRIPTION, NAME, RULE_TYPE |
Constructor Summary | |
CompositeRule()
|
Method Summary | |
private void |
descriptionValidate(String a_Description)
|
ClassInfo |
getClassInfo()
Returns the ClassInfo object for this class. |
String |
getConceptualClassname()
Deprecated. |
String |
getContents()
Gets the value of the attribute: contents; the String
content of the rule's specification
Supported API: false |
String |
getDescription()
Gets the value of the attribute: description; A description of the rule's content and purpose. |
String |
getEncoding()
Gets the value of the attribute: encoding; the character encoding of the rule's specification Supported API: false |
InputSource |
getInputSource()
Get an InputSource on the contents of this rule's
XML specification. |
ObjectIdentifier[] |
getMergedRules()
Gets the value of the attribute: mergedRules; A list of the ObjectIdentifier s for the rules that were merged to produce
this composite rule. |
String |
getName()
Gets the value of the attribute: name; The name of the rule. |
RuleType |
getRuleType()
Gets the value of the attribute: ruleType; The type of business logic described by this rule. |
protected void |
initialize(RuleType ruleType)
Supports initialization, following construction of an instance. |
boolean |
isDefaultRule()
Gets the value of the attribute: defaultRule; Specifies whether or not this is a default rule. |
boolean |
isEnabled()
Specifies whether or not this rule is enabled. |
private void |
nameValidate(String a_Name)
|
static CompositeRule |
newCompositeRule(RuleType ruleType)
Create a new composite rule with the specified RuleType . |
void |
readExternal(ObjectInput input)
Reads the non-transient fields of this class from an external source. |
private boolean |
readOldVersion(ObjectInput input,
long readSerialVersionUID,
boolean passThrough,
boolean superDone)
Reads the non-transient fields of this class from an external source, which is not the current version. |
protected boolean |
readVersion(CompositeRule thisObject,
ObjectInput input,
long readSerialVersionUID,
boolean passThrough,
boolean superDone)
Reads the non-transient fields of this class from an external source. |
void |
setContents(String a_Contents)
Sets the value of the attribute: contents; the String
content of the rule's specification
Supported API: false |
void |
setDefaultRule(boolean a_DefaultRule)
Sets the value of the attribute: defaultRule; Specifies whether or not this is a default rule. |
void |
setDescription(String a_Description)
Sets the value of the attribute: description; A description of the rule's content and purpose. |
void |
setEncoding(String a_Encoding)
Sets the value of the attribute: encoding; the character encoding of the rule's specification Supported API: false |
void |
setMergedRules(ObjectIdentifier[] a_MergedRules)
Sets the value of the attribute: mergedRules; A list of the ObjectIdentifier s for the rules that were merged to produce
this composite rule. |
void |
setMergedRules(Rule[] mergedRules)
A convenience method for setting the value of the mergedRules
attribute. |
void |
setName(String a_Name)
Sets the value of the attribute: name; The name of the rule. |
void |
setRuleType(RuleType a_RuleType)
Sets the value of the attribute: ruleType; The type of business logic described by this rule. |
String |
toString()
Returns the conceptual (modeled) name for the class. |
void |
writeExternal(ObjectOutput output)
Writes the non-transient fields of this class to an external source. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
private static final String RESOURCE
private static final String CLASSNAME
private String name
private RuleType ruleType
private boolean defaultRule
private String description
private String contents
private String encoding
private ObjectIdentifier[] mergedRules
static final long serialVersionUID
public static final long EXTERNALIZATION_VERSION_UID
protected static final long OLD_FORMAT_VERSION_UID
Constructor Detail |
public CompositeRule()
Method Detail |
public void writeExternal(ObjectOutput output) throws IOException
writeExternal
in interface Externalizable
output
-
IOException
public void readExternal(ObjectInput input) throws IOException, ClassNotFoundException
readExternal
in interface Externalizable
input
-
IOException
ClassNotFoundException
protected boolean readVersion(CompositeRule thisObject, ObjectInput input, long readSerialVersionUID, boolean passThrough, boolean superDone) throws IOException, ClassNotFoundException
thisObject
- input
- readSerialVersionUID
- passThrough
- superDone
-
IOException
ClassNotFoundException
private boolean readOldVersion(ObjectInput input, long readSerialVersionUID, boolean passThrough, boolean superDone) throws IOException, ClassNotFoundException
input
- readSerialVersionUID
- passThrough
- superDone
-
IOException
ClassNotFoundException
public String getConceptualClassname()
getConceptualClassname
in interface NetFactor
public String toString()
public ClassInfo getClassInfo() throws WTIntrospectionException
getClassInfo
in interface NetFactor
WTIntrospectionException
public String getName()
getName
in interface Rule
public void setName(String a_Name)
setName
in interface Rule
a_Name
- public RuleType getRuleType()
getRuleType
in interface Rule
public void setRuleType(RuleType a_RuleType)
setRuleType
in interface Rule
a_RuleType
- public boolean isDefaultRule()
isDefaultRule
in interface Rule
public void setDefaultRule(boolean a_DefaultRule)
setDefaultRule
in interface Rule
a_DefaultRule
- public String getDescription()
getDescription
in interface Rule
public void setDescription(String a_Description)
setDescription
in interface Rule
a_Description
- public String getContents()
String
content of the rule's specification
getContents
in interface Rule
public void setContents(String a_Contents)
String
content of the rule's specification
setContents
in interface Rule
a_Contents
- public String getEncoding()
getEncoding
in interface Rule
public void setEncoding(String a_Encoding)
setEncoding
in interface Rule
a_Encoding
- public ObjectIdentifier[] getMergedRules()
ObjectIdentifier
s for the rules that were merged to produce
this composite rule.
The order of the identifiers matches the order in which the rules
were merged. So, the structure of this array mimics the structure
of the array passed into RuleService.mergeRules(wt.rule.Rule[], wt.rule.RuleType)
.
Supported API: false
public void setMergedRules(ObjectIdentifier[] a_MergedRules) throws WTPropertyVetoException
ObjectIdentifier
s for the rules that were merged to produce
this composite rule.
The order of the identifiers matches the order in which the rules
were merged. So, the structure of this array mimics the structure
of the array passed into RuleService.mergeRules(wt.rule.Rule[], wt.rule.RuleType)
.
Supported API: false
a_MergedRules
-
WTPropertyVetoException
public static CompositeRule newCompositeRule(RuleType ruleType) throws WTException
RuleType
.
ruleType
-
WTException
protected void initialize(RuleType ruleType) throws WTException
ruleType
-
WTException
public void setMergedRules(Rule[] mergedRules) throws WTPropertyVetoException
mergedRules
attribute.
mergedRules
- list of the rules that were merged to produce this composite rule.
WTPropertyVetoException
private void nameValidate(String a_Name) throws WTPropertyVetoException
a_Name
-
WTPropertyVetoException
private void descriptionValidate(String a_Description) throws WTPropertyVetoException
a_Description
-
WTPropertyVetoException
public InputSource getInputSource() throws UnsupportedEncodingException
InputSource
on the contents of this rule's
XML
specification.
This method returns null if the rule specification has no content.
Supported API: false
getInputSource
in interface Rule
UnsupportedEncodingException
public boolean isEnabled()
isEnabled
in interface Rule
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |