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
Wraps IDContextProvider so that it can be used where IDContextProvider2 is expected.
  • Field Details

  • Constructor Details

    • IDContextProviderWrapper

      private IDContextProviderWrapper(IDContextProvider _core)
  • Method Details

    • create

      public static IDContextProvider2 create(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