com.sun.msv.grammar.util
Class IDContextProviderWrapper

java.lang.Object
  extended bycom.sun.msv.grammar.util.IDContextProviderWrapper
All Implemented Interfaces:
IDContextProvider2, org.relaxng.datatype.ValidationContext

public final class IDContextProviderWrapper
extends Object
implements IDContextProvider2

Wraps IDContextProvider so that it can be used where IDContextProvider2 is expected.

Author:
Kohsuke Kawaguchi (kohsuke.kawaguchi@sun.com)

Method Summary
static IDContextProvider2 create(com.sun.msv.grammar.IDContextProvider core)
           
 String getBaseUri()
           
 boolean isNotation(String arg0)
           
 boolean isUnparsedEntity(String arg0)
           
 void onID(org.relaxng.datatype.Datatype datatype, StringToken token)
          this method is called when a type with ID semantics is matched.
 String resolveNamespacePrefix(String arg0)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

create

public static IDContextProvider2 create(com.sun.msv.grammar.IDContextProvider core)

getBaseUri

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

isNotation

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

isUnparsedEntity

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

onID

public void onID(org.relaxng.datatype.Datatype datatype,
                 StringToken token)
Description copied from interface: IDContextProvider2
this method is called when a type with ID semantics is matched. It is the callee's responsibility that stores ID and checks doubly defined ID, if it is necessary.

Specified by:
onID in interface IDContextProvider2

resolveNamespacePrefix

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


Copyright © 2001-2003 Sun Microsystems, Inc. Documenation generated April 28 2005.