sk.uniba.euromath.document.schema.impl.tools
Class ValidationContextWrapper

java.lang.Object
  extended by sk.uniba.euromath.document.schema.impl.tools.ValidationContextWrapper
All Implemented Interfaces:
com.sun.msv.grammar.IDContextProvider2, org.relaxng.datatype.ValidationContext

public class ValidationContextWrapper
extends Object
implements com.sun.msv.grammar.IDContextProvider2

Wraps the ValidationContextP class so it is usable to MSV.

Author:
Martin Vysny

Constructor Summary
ValidationContextWrapper(SchemaImpl schema)
          Constructor.
 
Method Summary
 String getBaseUri()
           
 boolean isNotation(String notationName)
           
 boolean isUnparsedEntity(String entityName)
           
 void onID(org.relaxng.datatype.Datatype datatype, com.sun.msv.verifier.regexp.StringToken literal)
           
 String resolveNamespacePrefix(String prefix)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ValidationContextWrapper

public ValidationContextWrapper(SchemaImpl schema)
Constructor.

Parameters:
schema - schema instance
Method Detail

onID

public void onID(org.relaxng.datatype.Datatype datatype,
                 com.sun.msv.verifier.regexp.StringToken literal)
Specified by:
onID in interface com.sun.msv.grammar.IDContextProvider2

getBaseUri

public String getBaseUri()
Specified by:
getBaseUri in interface org.relaxng.datatype.ValidationContext

isNotation

public boolean isNotation(String notationName)
Specified by:
isNotation in interface org.relaxng.datatype.ValidationContext

isUnparsedEntity

public boolean isUnparsedEntity(String entityName)
Specified by:
isUnparsedEntity in interface org.relaxng.datatype.ValidationContext

resolveNamespacePrefix

public String resolveNamespacePrefix(String prefix)
Specified by:
resolveNamespacePrefix in interface org.relaxng.datatype.ValidationContext


Copyright © 2003-2006 null. All Rights Reserved.