|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object sk.uniba.euromath.document.schema.ValidationContextImpl
public final class ValidationContextImpl
Implementation of ValidationContextP
.
Method Summary | |
---|---|
boolean |
isNotation(String notationName)
Checks if a notation is declared with the specified name. |
boolean |
isUnparsedEntity(String entityName,
String namespace)
Checks if an unparsed entity is declared with the specified name. |
String |
resolveNamespacePrefix(String prefix)
Resolves a namespace prefix to the corresponding namespace URI. |
void |
validate(Element element)
Performs full validation over given element. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public boolean isNotation(String notationName)
IValidationContextP
isNotation
in interface IValidationContextP
notationName
- the notation name
public boolean isUnparsedEntity(String entityName, String namespace)
IValidationContextP
isUnparsedEntity
in interface IValidationContextP
entityName
- the entity name.namespace
- namespace, where this entity occured.
public String resolveNamespacePrefix(String prefix)
IValidationContextP
resolveNamespacePrefix
in interface IValidationContextP
prefix
- If the prefix is "" (empty string), it indicates an
unprefixed value. Because of the prefix management, it will be always
resolved to empty string. If the prefix is "xml", it will be resolved to
"http://www.w3.org/XML/1998/namespace"
, as defined in
the XML Namespaces Recommendation.
null
, if the
specified prefix is not declared.public void validate(Element element) throws SchemaException
IValidationContextP
SchemaException
will be thrown.
validate
in interface IValidationContextP
element
- element to be validated.
SchemaException
- thrown if element isn't the root element, or if
given uri doesn't exist, or it is thrown by underlying schema.validate
.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |