|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectsk.uniba.euromath.document.schema.Validator
public final class Validator
Manages validator switching when validating document with multiple namespaces. Thread-safe.
| Method Summary | |
|---|---|
static Validator |
getInstance()
Returns one and only instance of this class. |
void |
validate(Attr attr)
Validates this attribute by appropriate schema. |
void |
validate(Element element,
SchemaReferences ref)
Performs full validation over given element. |
void |
validateAttr(String namespaceUri,
String localName,
String qname,
Element owner,
String value)
Validates this attribute by appropriate schema. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static Validator getInstance()
public void validate(Element element,
SchemaReferences ref)
throws SchemaException
SchemaException will
be thrown. This function must NOT be used by the Schema object.
element - element to be validated.ref - reference to schema manager for the document.
SchemaException - thrown if element isn't the root element, or by
underlying schema.validate.
SchemaException - if given uri doesn't exist.
public void validateAttr(String namespaceUri,
String localName,
String qname,
Element owner,
String value)
throws SchemaException
namespaceUri - namespace of attribute. It must not be empty
namespace.localName - localName of attribute.qname - displayable qualified name, in form of prefix:localnameowner - owner element.value - value of the attribute.
SchemaException - if attribute is not exportable or invalid.
public void validate(Attr attr)
throws SchemaException
attr - attribute to validate. It must not have empty namespace.
SchemaException - when an attribute mismatch had been found.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||