jlibs.xml.sax.SAXProperties Maven / Gradle / Ivy
/**
* Copyright 2015 Santhosh Kumar Tekuri
*
* The JLibs authors license this file to you under the Apache License,
* version 2.0 (the "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at:
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations
* under the License.
*/
package jlibs.xml.sax;
/**
* This interface contains constants for various SAX Properties.
*
* @author Santhosh Kumar T
*/
public interface SAXProperties{
/**
* Set the handler for lexical parsing events: comments, CDATA delimiters,
* selected general entity inclusions, and the start and end of the DTD
* (and declaration of document element name).
*
* Type: {@link org.xml.sax.ext.LexicalHandler}
* Access: read-write
*/
String LEXICAL_HANDLER = "http://xml.org/sax/properties/lexical-handler"; //NOI18N
/**
* Set the handler for DTD declarations
*
* Type: {@link org.xml.sax.ext.DeclHandler}
* Access: read-write
*/
String DECL_HANDLER = "http://xml.org/sax/properties/declaration-handler"; //NOI18N
/**
* A literal string describing the actual XML version of the document, such as "1.0" or "1.1"
*
* Type: {@link java.lang.String}
* Access: read-only
* Note: This property may only be examined during a parse after the startDocument callback has been completed.
*/
String XML_VERSION = "http://xml.org/sax/properties/document-xml-version"; //NOI18N
/**
* Get the string of characters associated with the current event.
If the parser
* recognizes and supports this property but is not currently parsing text,
* it should return null
*
* Type: {@link java.lang.String}
* Access: read-only
*/
String XML_STRING = "http://xml.org/sax/properties/xml-string"; //NOI18N
/**
* The DOM node currently being visited, if SAX is being used as a DOM iterator.
* If the parser recognizes and supports this property but is not currently
* visiting a DOM node, it should return null.
*
* Type: {@link org.w3c.dom.Node}
* Access: (parsing) read-only; (not parsing) read-write;
*/
String DOM_NODE = "http://xml.org/sax/properties/dom-node"; //NOI18N
/*-------------------------------------------------[ Non-Standard ]---------------------------------------------------*/
/**
* Shortcut for SAX-ext. lexical handler alternate property.
* Although this property URI is not the one defined by the SAX
* "standard", some parsers use it instead of the official one.
*/
String LEXICAL_HANDLER_ALT = "http://xml.org/sax/handlers/LexicalHandler"; //NOI18N
/** Shortcut for SAX-ext. declaration handler alternate property */
String DECL_HANDLER_ALT = "http://xml.org/sax/handlers/DeclHandler"; //NOI18N
}