com.bea.p13n.rules.model
Interface RuleTypeRecognizer

All Known Implementing Classes:
DefaultWLPRuleTypeRecognizer

public interface RuleTypeRecognizer

The interface for an object which can recognize rule types in xml structures.

An instance of a this needs to be registered with the RuleInfoSvc for a each configured rule type.


Method Summary
 RuleModel createRuleModel(String ruleType)
          Initialize a new, empty ruleModel of the specified ruleType.
 boolean recognize(RuleModel model, String ruleType)
          Check if the specified xml structure is an instance of the specified rule type.
 

Method Detail

recognize

boolean recognize(RuleModel model,
                  String ruleType)
Check if the specified xml structure is an instance of the specified rule type.


createRuleModel

RuleModel createRuleModel(String ruleType)
Initialize a new, empty ruleModel of the specified ruleType.

Returns
the rule model, null on unknown rule type.


Copyright © 2011, Oracle. All rights reserved.