|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.actf.validation.valdoc.rulebase.ReflectionValidationDocument
public class ReflectionValidationDocument
embodies a validation document that uses knowledge of the Java API of the model being validated and the validation engine's use of the Java Reflection API to process validation rules. This was the original implementation of a valaidation document in the IBM IRule-based Accessibility Validation Environment (RAVEN).
Field Summary |
---|
Fields inherited from interface org.eclipse.actf.validation.valdoc.rulebase.IValidationDocument |
---|
ACTF_NAMESPACE_URI, DOCUMENT_NAME, DOCUMENT_VERSION, ENABLE, MODEL, SCRIPTLANG |
Constructor Summary | |
---|---|
ReflectionValidationDocument(InputStream xmlSource)
create a ReflectionValidationDocument from the given XML source stream. |
Method Summary | |
---|---|
protected MethodExecutionPointTarget |
createMethodExecutionTarget(Element targetTypeElem,
String targetTypeName,
boolean polymorphic)
|
AliasElement[] |
getAliasElements()
return an array of alias elements of the document. |
static Element[] |
getChildElements(Element element)
|
static Element[] |
getChildElements(Element element,
String name)
|
String |
getDocumentName()
return the value of the actf:name attribute for this document |
String |
getDocumentVersion()
return the value of the actf:version attribute for this document |
String |
getEnable()
return the value of the actf:enable attribute |
ExecutionPointDescriptor[] |
getExecutionPointDescriptors()
retreave the set of execution point descriptors stipulated in this document. |
protected Element |
getMetaDataElement(String name)
|
String |
getModelType()
return the value of the actf:model attribute |
Element[] |
getRuleSetElements()
return the list of ruleset elements of the document. |
ScriptElement[] |
getScriptElements()
return an array of script elements of the document. |
String |
getScriptLanguage()
return the value of the actf:scriptlang attribute |
protected ExecutionPointDescriptor |
parseExecutionPointDescriptor(Element execPointElem)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ReflectionValidationDocument(InputStream xmlSource) throws ParserConfigurationException, SAXException, IOException
xmlSource
- --
source stream for document
SAXException
- in case of parsing error
IOException
- in case of I/O error
ParserConfigurationException
Method Detail |
---|
public String getDocumentName()
getDocumentName
in interface IValidationDocument
null
if no name is specifiedpublic String getModelType()
getModelType
in interface IValidationDocument
null
if
not presentpublic String getDocumentVersion()
getDocumentVersion
in interface IValidationDocument
null
if no version is
specifiedpublic String getScriptLanguage()
getScriptLanguage
in interface IValidationDocument
null
if not
presentpublic String getEnable()
getEnable
in interface IValidationDocument
null
if
not presentpublic ScriptElement[] getScriptElements() throws MalformedRuleBaseException
getScriptElements
in interface IValidationDocument
MalformedRuleBaseException
public AliasElement[] getAliasElements() throws MalformedRuleBaseException
getAliasElements
in interface IValidationDocument
MalformedRuleBaseException
public Element[] getRuleSetElements()
getRuleSetElements
in interface IValidationDocument
public ExecutionPointDescriptor[] getExecutionPointDescriptors()
getExecutionPointDescriptors
in interface IValidationDocument
protected ExecutionPointDescriptor parseExecutionPointDescriptor(Element execPointElem)
protected MethodExecutionPointTarget createMethodExecutionTarget(Element targetTypeElem, String targetTypeName, boolean polymorphic)
public static Element[] getChildElements(Element element)
public static Element[] getChildElements(Element element, String name)
protected Element getMetaDataElement(String name) throws MalformedRuleBaseException
MalformedRuleBaseException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |