|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectwt.rule.init.InitRuleHelper
This class provides utilities that are useful when working with INIT
rules.
Supported API: false
Extendable: false
Field Summary | |
private static String |
CLASSNAME
|
static InitRuleEvalService |
evaluator
Supported API: false |
private static String |
RESOURCE
|
Constructor Summary | |
InitRuleHelper()
|
Method Summary | |
static AttributeValues |
getAttributeValues(InputSource source)
Returns the attribute values specification that results from parsing XML obtained from the specified InputSource . |
static AttributeValues |
getAttributeValues(Object obj,
WTContainerRef container)
Returns the attribute values specification that results from parsing the rule for the specified Object and WTContainerRef . |
static AttributeValues |
getAttributeValues(Rule rule)
Return the attribute values specification that results from parsing the rule. |
static AttrValue |
getAttrValue(String id,
Object obj,
WTContainerRef container)
Get the AttrValue with the specified identifier
from the specified INIT Rule for the
specified Object and WTContainerRef . |
static AttrValue |
getAttrValue(String id,
Rule rule)
Get the AttrValue from the specified INIT
Rule that has the specified identifier. |
static boolean |
hasAttrValue(String id,
Object obj,
WTContainerRef container)
Returns true if the specified INIT Rule specifies a value for the attribute with the specified
identifier. |
static boolean |
hasAttrValue(String id,
Rule rule)
Returns true if the specified INIT Rule specifies a value for the attribute with the specified
identifier. |
static AttributeValues |
mergeAttributeValues(AttributeValues spec1,
AttributeValues spec2)
Merge spec1 into spec2 . |
static void |
setContents(Rule rule,
AttributeValues spec)
Set the contents of the (@link wt.rule.Rule} to the XML specified by the AttributeValues . |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private static final String RESOURCE
private static final String CLASSNAME
public static final InitRuleEvalService evaluator
Constructor Detail |
public InitRuleHelper()
Method Detail |
public static final AttributeValues getAttributeValues(Rule rule) throws WTException
rule
-
WTException
public static final AttributeValues getAttributeValues(Object obj, WTContainerRef container) throws WTException
Object
and WTContainerRef
.
obj
- container
-
WTException
public static final AttributeValues getAttributeValues(InputSource source) throws IOException, SAXException
InputSource
.
source
-
IOException
SAXException
public static AttributeValues mergeAttributeValues(AttributeValues spec1, AttributeValues spec2)
spec1
into spec2
. The values from
spec1
overwrite the values in spec2
unless
the attribute in spec2
being overwritten is marked as
final
.
spec1
is modified and returned.
Supported API: false
spec1
- spec2
-
public static final AttrValue getAttrValue(String id, Rule rule) throws WTException
AttrValue
from the specified INIT
Rule
that has the specified identifier.
id
- rule
-
WTException
public static final AttrValue getAttrValue(String id, Object obj, WTContainerRef container) throws WTException
AttrValue
with the specified identifier
from the specified INIT
Rule
for the
specified Object
and WTContainerRef
.
id
- obj
- container
-
WTException
public static final boolean hasAttrValue(String id, Rule rule) throws WTException
true
if the specified INIT
Rule
specifies a value for the attribute with the specified
identifier.
id
- rule
-
WTException
public static final boolean hasAttrValue(String id, Object obj, WTContainerRef container) throws WTException
true
if the specified INIT
Rule
specifies a value for the attribute with the specified
identifier.
id
- obj
- container
-
WTException
public static void setContents(Rule rule, AttributeValues spec) throws IOException, WTPropertyVetoException
AttributeValues
.
The rule is not persisted as part of this operation.
Supported API: false
rule
- spec
-
IOException
WTPropertyVetoException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |