Top Description Fields Constructors Methods
com.sun.msv.grammar.util

public final Class IDContextProviderWrapper

extends Object
implements IDContextProvider2
Class Inheritance
All Implemented Interfaces
com.sun.msv.grammar.IDContextProvider2, org.relaxng.datatype.ValidationContext
Annotations
@SuppressWarnings:deprecation
Imports
org.relaxng.datatype.Datatype, com.sun.msv.grammar.IDContextProvider, .IDContextProvider2, com.sun.msv.verifier.regexp.StringToken

Wraps IDContextProvider so that it can be used where IDContextProvider2 is expected.
Author
Kohsuke Kawaguchi ([email protected])

Field Summary

Modifier and TypeField and Description
private final IDContextProvider
core

Deprecated as a consequence of IDContextProvider being deprecated.

Constructor Summary

AccessConstructor and Description
private
IDContextProviderWrapper(IDContextProvider _core)

Deprecated as a consequence of IDContextProvider being deprecated.

Method Summary

Modifier and TypeMethod and Description
public static IDContextProvider2
create(IDContextProvider core)

Deprecated as a consequence of IDContextProvider being deprecated.
public String
getBaseUri()

Implements org.relaxng.datatype.ValidationContext.getBaseUri.

Returns the base URI of the context.
public boolean
isNotation(String arg0)

Implements org.relaxng.datatype.ValidationContext.isNotation.

Checks if a notation is declared with the specified name.
public boolean
isUnparsedEntity(String arg0)

Implements org.relaxng.datatype.ValidationContext.isUnparsedEntity.

Checks if an unparsed entity is declared with the specified name.
public void
onID(Datatype datatype, StringToken token)

Implements com.sun.msv.grammar.IDContextProvider2.onID.

this method is called when a type with ID semantics is matched.
public String
resolveNamespacePrefix(String arg0)

Implements org.relaxng.datatype.ValidationContext.resolveNamespacePrefix.

Resolves a namespace prefix to the corresponding namespace URI.
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

coreback to summary
private final IDContextProvider core

Deprecated

as a consequence of IDContextProvider being deprecated. See corresponding docs for further information.

Constructor Detail

IDContextProviderWrapperback to summary
private IDContextProviderWrapper(IDContextProvider _core)

Deprecated

as a consequence of IDContextProvider being deprecated. See corresponding docs for further information.

Method Detail

createback to summary
public static IDContextProvider2 create(IDContextProvider core)

Deprecated

as a consequence of IDContextProvider being deprecated. See corresponding docs for further information.

getBaseUriback to summary
public String getBaseUri()

Implements org.relaxng.datatype.ValidationContext.getBaseUri.

Doc from org.relaxng.datatype.ValidationContext.getBaseUri.

Returns the base URI of the context. The null string may be returned if no base URI is known.

isNotationback to summary
public boolean isNotation(String arg0)

Implements org.relaxng.datatype.ValidationContext.isNotation.

Doc from org.relaxng.datatype.ValidationContext.isNotation.

Checks if a notation is declared with the specified name.

Returns:boolean

true if the DTD has a notation declaration for the specified name. false otherwise.

isUnparsedEntityback to summary
public boolean isUnparsedEntity(String arg0)

Implements org.relaxng.datatype.ValidationContext.isUnparsedEntity.

Doc from org.relaxng.datatype.ValidationContext.isUnparsedEntity.

Checks if an unparsed entity is declared with the specified name.

Returns:boolean

true if the DTD has an unparsed entity declaration for the specified name. false otherwise.

onIDback to summary
public void onID(Datatype datatype, StringToken token)

Implements com.sun.msv.grammar.IDContextProvider2.onID.

Doc from com.sun.msv.grammar.IDContextProvider2.onID.

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.

resolveNamespacePrefixback to summary
public String resolveNamespacePrefix(String arg0)

Implements org.relaxng.datatype.ValidationContext.resolveNamespacePrefix.

Doc from org.relaxng.datatype.ValidationContext.resolveNamespacePrefix.

Resolves a namespace prefix to the corresponding namespace URI. This method is used for validating the QName type, for example.

If the prefix is "" (empty string), it indicates an unprefixed value. The callee should resolve it as for an unprefixed element, rather than for an unprefixed attribute.

If the prefix is "xml", then the callee must resolve this prefix into "http://www.w3.org/XML/1998/namespace", as defined in the XML Namespaces Recommendation.

Returns:String

namespace URI of this prefix. If the specified prefix is not declared, the implementation must return null.