|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
A Rule
provides a holder for business logic that describes
actions to be performed under certain conditions. This business logic
is specified using XML.
Supported API: false
Extendable: false
Field Summary | |
static String |
DEFAULT_RULE
Label for the attribute; Specifies whether or not this is a default rule. |
static String |
DESCRIPTION
Label for the attribute; A description of the rule's content and purpose. |
static String |
NAME
Label for the attribute; The name of the rule. |
static String |
RULE_TYPE
Label for the attribute; The type of business logic described by this rule. |
Method Summary | |
String |
getContents()
Get the String content of the rule's specification. |
String |
getDescription()
Gets the value of the attribute: DESCRIPTION. |
String |
getEncoding()
Get the character encoding of the rule's specification. |
InputSource |
getInputSource()
Get an InputSource on the contents of this rule's
XML specification. |
String |
getName()
Gets the value of the attribute: NAME. |
RuleType |
getRuleType()
Gets the value of the attribute: RULE_TYPE. |
boolean |
isDefaultRule()
Gets the value of the attribute: DEFAULT_RULE. |
boolean |
isEnabled()
Specifies whether or not this rule is enabled. |
void |
setContents(String xml)
Set the content of the rule's specification to the the specified String . |
void |
setDefaultRule(boolean a_DefaultRule)
Sets the value of the attribute: DEFAULT_RULE. |
void |
setDescription(String a_Description)
Sets the value of the attribute: DESCRIPTION. |
void |
setEncoding(String encoding)
Set the encoding of the rule's specification. |
void |
setName(String a_Name)
Sets the value of the attribute: NAME. |
void |
setRuleType(RuleType a_RuleType)
Sets the value of the attribute: RULE_TYPE. |
Methods inherited from interface wt.fc.NetFactor |
getClassInfo, getConceptualClassname |
Field Detail |
public static final String NAME
public static final String RULE_TYPE
public static final String DEFAULT_RULE
public static final String DESCRIPTION
Method Detail |
public String getName()
public void setName(String a_Name) throws WTPropertyVetoException
a_Name
-
WTPropertyVetoException
public RuleType getRuleType()
public void setRuleType(RuleType a_RuleType) throws WTPropertyVetoException
a_RuleType
-
WTPropertyVetoException
public boolean isDefaultRule()
public void setDefaultRule(boolean a_DefaultRule) throws WTPropertyVetoException
a_DefaultRule
-
WTPropertyVetoException
public String getDescription()
public void setDescription(String a_Description) throws WTPropertyVetoException
a_Description
-
WTPropertyVetoException
public String getContents()
String
content of the rule's specification.
The specification is written in XML
. The semantics
of the specification depends on the rule's RuleType
.
public void setContents(String xml) throws WTPropertyVetoException
String
. The specification is written in XML
.
The semantics of the specification depends on the rule's RuleType
.
xml
-
WTPropertyVetoException
public String getEncoding()
XML
. The semantics of the specification
depends on the rule's RuleType
.
public void setEncoding(String encoding) throws WTPropertyVetoException
XML
. The semantics of the specification depends
on the rule's RuleType
.
encoding
-
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
UnsupportedEncodingException
public boolean isEnabled()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |