com.sun.msv.grammar.util

Class IDContextProviderWrapper

Implemented Interfaces:
IDContextProvider2, 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(IDContextProvider core)
String
getBaseUri()
boolean
isNotation(String arg0)
boolean
isUnparsedEntity(String arg0)
void
onID(Datatype datatype, StringToken token)
this method is called when a type with ID semantics is matched.
String
resolveNamespacePrefix(String arg0)

Method Details

create

public static IDContextProvider2 create(IDContextProvider core)

getBaseUri

public String getBaseUri()

isNotation

public boolean isNotation(String arg0)

isUnparsedEntity

public boolean isUnparsedEntity(String arg0)

onID

public void onID(Datatype datatype,
                 StringToken token)
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)