All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.codehaus.stax2.validation.DTDValidationSchema Maven / Gradle / Ivy

The newest version!
package org.codehaus.stax2.validation;

/**
 * Specialized interface that covers schema features unique to DTDs.
 * Necessary to have basic level of support for entities and notations.
 */
public interface DTDValidationSchema
    extends XMLValidationSchema
{
    /*
    //////////////////////////////////////////////////////////
    // Entity support
    //////////////////////////////////////////////////////////
     */

    /**
     * @return Number of general (non-parameter) entities (of all types)
     *    declared in this DTD
     *    schema (in subsets [internal, external] included)
     */
    public int getEntityCount();

    /**
     * @return True if a general entity with the specified name was
     *   defined in this dtd
     */
    //public boolean isEntityDefined(String name);

    /**
     * @return Index of the entity with given name (between 0 and 
     *   getEntityCount()-1)
     *   if such general entity
     *   was defined in this dtd; -1 if not.
     */
    //public int findEntity(String name);

    //public String getEntityName(int index);

    //public boolean isEntityParsed(int index);
    //public boolean isEntityExternal(int index);

    //public String getEntityPublicId(int index);
    //public String getEntitySystemId(int index);
    //public String getNotationIdOfEntity(int entityIndex);
    //public String getEntityExpansionText(int index);
    
    /*
    //////////////////////////////////////////////////////////
    // Notation support
    //////////////////////////////////////////////////////////
     */

    /**
     * @return Number of notations declared in this DTD
     *    schema (in subsets [internal, external] included)
     */
    public int getNotationCount();

    //public boolean isNotationDefined(String name);

    /**
     * @return Index of the notation with given name (between 0 and 
     *   getNotationtyCount()-1)
     *   if such notation was defined in this dtd; -1 if not.
     */
    //public int findNotation(String name);

    //public String getNotationName(int index);
    //public String getNotationPublicId(int index);
    //public String getNotationSystemId(int index);
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy