|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.softwareag.centrasite.appl.framework.validation.impl.ValidationDefaultParser
public class ValidationDefaultParser
This parser is used to create instances of ValidationDefaults
by parsing XML documents.
Field Summary | |
---|---|
protected java.lang.ClassLoader |
classLoader
The class loader to use for loading classes. |
protected static java.lang.String |
NS_VALIDATION_DEFAULTS
The validationDefaults namespace. |
Constructor Summary | |
---|---|
ValidationDefaultParser()
Creates a new instance with the current threads context class loader. |
|
ValidationDefaultParser(java.lang.ClassLoader pClassLoader)
Creates a new instance with the given class loader. |
Method Summary | ||
---|---|---|
java.lang.ClassLoader |
getClassLoader()
Returns the ClassLoader to use for loading classes. |
|
protected ValidatableClasses.ValidatableClass |
newValidatableClass()
Creates a new instance of ValidatableClasses.ValidatableClass . |
|
ValidationDefaults |
newValidationDefaults()
Creates a new, empty instance of ValidationDefaults . |
|
void |
parse(ValidationDefaults pDefaults,
java.io.File pFile)
Parses the given File and adds the parsed default
settings to the given instance of ValidationDefaults . |
|
void |
parse(ValidationDefaults pDefaults,
org.xml.sax.InputSource pSource)
Parses the given InputStream and adds the parsed default
settings to the given instance of ValidationDefaults . |
|
void |
parse(ValidationDefaults pDefaults,
java.net.URL pURL)
Parses the given URL and adds the parsed default
settings to the given instance of ValidationDefaults . |
|
protected
|
parseImplementation(ValidationDefaults.Implementation<T> pImplementation,
com.softwareag.centrasite.appl.framework.parser.ParsedXMLDocument pDoc,
org.w3c.dom.Element pElement,
java.lang.Class<T> pClass)
Called to parse an implementations details. |
|
protected ValidatableClasses.ValidatableClass |
parseValidatableClass(org.w3c.dom.Element pElement,
com.softwareag.centrasite.appl.framework.parser.ParsedXMLDocument pDoc)
Creates an instance of ValidatableClasses.ValidatableClass . |
|
protected void |
parseValidationDefaultsChild(ValidationDefaults pDefaults,
com.softwareag.centrasite.appl.framework.parser.ParsedXMLDocument pDoc,
org.w3c.dom.Element child)
Parses a child of the root element "validationDefaults". |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected static final java.lang.String NS_VALIDATION_DEFAULTS
protected final java.lang.ClassLoader classLoader
Constructor Detail |
---|
public ValidationDefaultParser()
public ValidationDefaultParser(java.lang.ClassLoader pClassLoader)
Method Detail |
---|
public java.lang.ClassLoader getClassLoader()
ClassLoader
to use for loading classes.
public ValidationDefaults newValidationDefaults()
ValidationDefaults
.
public void parse(ValidationDefaults pDefaults, java.net.URL pURL) throws com.softwareag.centrasite.appl.framework.CSAppFrameworkException
URL
and adds the parsed default
settings to the given instance of ValidationDefaults
.
This will possibly override existing settings.
com.softwareag.centrasite.appl.framework.CSAppFrameworkException
public void parse(ValidationDefaults pDefaults, java.io.File pFile) throws com.softwareag.centrasite.appl.framework.CSAppFrameworkException
File
and adds the parsed default
settings to the given instance of ValidationDefaults
.
This will possibly override existing settings.
com.softwareag.centrasite.appl.framework.CSAppFrameworkException
public void parse(ValidationDefaults pDefaults, org.xml.sax.InputSource pSource) throws com.softwareag.centrasite.appl.framework.CSAppFrameworkException, java.io.IOException
InputStream
and adds the parsed default
settings to the given instance of ValidationDefaults
.
This will possibly override existing settings.
com.softwareag.centrasite.appl.framework.CSAppFrameworkException
java.io.IOException
protected void parseValidationDefaultsChild(ValidationDefaults pDefaults, com.softwareag.centrasite.appl.framework.parser.ParsedXMLDocument pDoc, org.w3c.dom.Element child) throws com.softwareag.centrasite.appl.framework.CSAppFrameworkException, com.softwareag.centrasite.appl.framework.parser.CSAppFrameworkParserException
com.softwareag.centrasite.appl.framework.CSAppFrameworkException
com.softwareag.centrasite.appl.framework.parser.CSAppFrameworkParserException
protected ValidatableClasses.ValidatableClass parseValidatableClass(org.w3c.dom.Element pElement, com.softwareag.centrasite.appl.framework.parser.ParsedXMLDocument pDoc) throws com.softwareag.centrasite.appl.framework.CSAppFrameworkException
ValidatableClasses.ValidatableClass
. The instance data is parsed from
the element pElement
.
s
com.softwareag.centrasite.appl.framework.CSAppFrameworkException
protected ValidatableClasses.ValidatableClass newValidatableClass()
ValidatableClasses.ValidatableClass
.
protected <T> void parseImplementation(ValidationDefaults.Implementation<T> pImplementation, com.softwareag.centrasite.appl.framework.parser.ParsedXMLDocument pDoc, org.w3c.dom.Element pElement, java.lang.Class<T> pClass) throws com.softwareag.centrasite.appl.framework.CSAppFrameworkException
com.softwareag.centrasite.appl.framework.CSAppFrameworkException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |