Package com.sun.msv.grammar.util
Class IDContextProviderWrapper
- java.lang.Object
-
- com.sun.msv.grammar.util.IDContextProviderWrapper
-
- All Implemented Interfaces:
IDContextProvider2,org.relaxng.datatype.ValidationContext
public final class IDContextProviderWrapper extends Object implements IDContextProvider2
WrapsIDContextProviderso that it can be used whereIDContextProvider2is expected.- Author:
- Kohsuke Kawaguchi (kohsuke.kawaguchi@sun.com)
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static IDContextProvider2create(IDContextProvider core)StringgetBaseUri()booleanisNotation(String arg0)booleanisUnparsedEntity(String arg0)voidonID(org.relaxng.datatype.Datatype datatype, StringToken token)this method is called when a type with ID semantics is matched.StringresolveNamespacePrefix(String arg0)
-
-
-
Method Detail
-
create
public static IDContextProvider2 create(IDContextProvider core)
-
getBaseUri
public String getBaseUri()
- Specified by:
getBaseUriin interfaceorg.relaxng.datatype.ValidationContext
-
isNotation
public boolean isNotation(String arg0)
- Specified by:
isNotationin interfaceorg.relaxng.datatype.ValidationContext
-
isUnparsedEntity
public boolean isUnparsedEntity(String arg0)
- Specified by:
isUnparsedEntityin interfaceorg.relaxng.datatype.ValidationContext
-
onID
public void onID(org.relaxng.datatype.Datatype datatype, StringToken token)Description copied from interface:IDContextProvider2this 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:
onIDin interfaceIDContextProvider2
-
-