Package com.sun.msv.generator
Class ContextProviderImpl
java.lang.Object
com.sun.msv.generator.ContextProviderImpl
- All Implemented Interfaces:
SerializationContext
,org.relaxng.datatype.ValidationContext
public final class ContextProviderImpl
extends Object
implements org.relaxng.datatype.ValidationContext, SerializationContext
dummy implementation of ValidationContextProvider.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected static String
findPredeclaredPrefix
(Element e, String uri) finds a prefix for this URI.getNamespacePrefix
(String uri) get namespace prefix for the given namespace URI.boolean
isNotation
(String name) boolean
isUnparsedEntity
(String name) resolveNamespacePrefix
(String prefix) protected static String
resolvePrefix
(Element e, String prefix)
-
Field Details
-
element
-
XMLNS_URI
- See Also:
-
-
Constructor Details
-
ContextProviderImpl
-
-
Method Details
-
getNamespacePrefix
Description copied from interface:SerializationContext
get namespace prefix for the given namespace URI. this method is used to convert QName. It is a responsibility of the callee to ensure that the returned prefix is properly declared.- Specified by:
getNamespacePrefix
in interfaceSerializationContext
- Returns:
- prefix for this namespace URI. return null to indicate that this namespace URI is the default name space. In this case, QNames are converted into unqualified names (just the local names only as NCNames).
-
resolveNamespacePrefix
- Specified by:
resolveNamespacePrefix
in interfaceorg.relaxng.datatype.ValidationContext
-
isUnparsedEntity
- Specified by:
isUnparsedEntity
in interfaceorg.relaxng.datatype.ValidationContext
-
isNotation
- Specified by:
isNotation
in interfaceorg.relaxng.datatype.ValidationContext
-
getBaseUri
- Specified by:
getBaseUri
in interfaceorg.relaxng.datatype.ValidationContext
-
findPredeclaredPrefix
finds a prefix for this URI. If no prefix is declared for this URI, returns null. -
resolvePrefix
-