Class ContextProviderImpl

    • Constructor Detail

      • ContextProviderImpl

        public ContextProviderImpl​(Element parent)
    • Method Detail

      • getNamespacePrefix

        public String getNamespacePrefix​(String uri)
        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 interface SerializationContext
        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

        public String resolveNamespacePrefix​(String prefix)
        Specified by:
        resolveNamespacePrefix in interface org.relaxng.datatype.ValidationContext
      • isUnparsedEntity

        public boolean isUnparsedEntity​(String name)
        Specified by:
        isUnparsedEntity in interface org.relaxng.datatype.ValidationContext
      • isNotation

        public boolean isNotation​(String name)
        Specified by:
        isNotation in interface org.relaxng.datatype.ValidationContext
      • getBaseUri

        public String getBaseUri()
        Specified by:
        getBaseUri in interface org.relaxng.datatype.ValidationContext
      • findPredeclaredPrefix

        protected static String findPredeclaredPrefix​(Element e,
                                                      String uri)
        finds a prefix for this URI. If no prefix is declared for this URI, returns null.