|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.actf.validation.rulebase.RuleBaseMapDocument
public class RuleBaseMapDocument
default implementation for the ACTF validation engine. A rulebase mapping document is located in rulebases.xml files somewhere in the resources classpath.
Field Summary | |
---|---|
static String |
LOCATION
attribute defining the rulebase location for a document rulebase; value is 'location' |
static String |
POLYMORPHIC
attribute defining whether or not rulebases are to be applied polymorphically; value is 'polymorphic' |
static String |
REGEXP
attribute defining the regular expression for a target; value is 'regexp' |
static String |
RULEBASE
tag name for the element defining a rulebase; value is 'rulebase' |
static String |
RULEBASE_FACTORY
attribute defining the rulebase factory; value is 'rulebaseFactory' |
static String |
RULEBASES
root element name for the rulebases.xml file; value is 'rulebases |
static String |
TARGET
tag name for element defining a target; value is 'target' |
Constructor Summary | |
---|---|
RuleBaseMapDocument(InputStream xmlSource)
create a rulebase mapping document from the given XML source stream |
Method Summary | |
---|---|
String |
getDocumentName()
|
String |
getDocumentVersion()
|
IRuleBaseDescriptor[] |
getRuleBaseDescriptors()
|
protected IRuleBaseDescriptor |
parseRuleBaseDescriptor(Element rbElem)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String RULEBASES
public static final String RULEBASE
public static final String TARGET
public static final String RULEBASE_FACTORY
public static final String LOCATION
public static final String POLYMORPHIC
public static final String REGEXP
Constructor Detail |
---|
public RuleBaseMapDocument(InputStream xmlSource) throws ParserConfigurationException, SAXException, IOException
xmlSource
- --
source stream for XML document
SAXException
- in case of parsing error
IOException
- in case of I/O error
ParserConfigurationException
Method Detail |
---|
public String getDocumentName()
public String getDocumentVersion()
public IRuleBaseDescriptor[] getRuleBaseDescriptors()
protected IRuleBaseDescriptor parseRuleBaseDescriptor(Element rbElem)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |