
org.apache.ws.jaxme.xs.parser.XSContext Maven / Gradle / Ivy
/*
* Copyright 2003, 2004 The Apache Software Foundation
*
* Licensed 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 org.apache.ws.jaxme.xs.parser;
import org.apache.ws.jaxme.xs.*;
import org.apache.ws.jaxme.xs.impl.XSLogicalParser;
import org.apache.ws.jaxme.xs.xml.XsObjectFactory;
import org.xml.sax.ContentHandler;
import org.xml.sax.Locator;
import org.xml.sax.helpers.NamespaceSupport;
/** This interface provides access to the parsers context.
*
* @author Jochen Wiedmann
*/
public interface XSContext {
/** Returns the parsers object factory for syntax elements.
*/
public XsObjectFactory getXsObjectFactory();
/** Sets the parsers object factory for syntax elements.
*/
public void setXsObjectFactory(XsObjectFactory pFactory);
/** Returns the parsers object factory for logical elements.
*/
public XSObjectFactory getXSObjectFactory();
/** Sets the parsers object factory for logical elements.
*/
public void setXSObjectFactory(XSObjectFactory pFactory);
/** Returns the {@link AttributeSetter}, which is used to
* configure properties.
*/
public AttributeSetter getAttributeSetter();
/** Sets the AttributeSetter, which is used to
* configure properties.
*/
public void setAttributeSetter(AttributeSetter pSetter);
/** Returns the {@link ChildSetter}, which is used to create
* child elements.
*/
public ChildSetter getChildSetter();
/** Sets the ChildSetter, which is used to create
* child elements.
*/
public void setChildSetter(ChildSetter pSetter);
/** Returns the {@link TextSetter}, used to add text sections.
*/
public TextSetter getTextSetter();
/** Sets the TextSetter, used to add text sections.
*/
public void setTextSetter(TextSetter pSetter);
/** Returns the currently running {@link XSParser} or null,
* if no such instance is available.
*/
public XSLogicalParser getXSLogicalParser();
/** Sets the currently active instance of {@link XSParser}, if any.
* Returns null, if no such instance is available.
*/
public void setXSLogicalParser(XSLogicalParser pParser);
/** Returns the {@link XSSchema}, which is currently being parsed,
* if any.
*/
public XSSchema getXSSchema();
/** Returns the locator, used for error messages.
*/
public Locator getLocator();
/** Sets the locator, used for error messages.
*/
public void setLocator(Locator pLocator);
/** Returns the namespace handler.
*/
public NamespaceSupport getNamespaceSupport();
/** Sets the namespace handler.
*/
public void setNamespaceSupport(NamespaceSupport pNamespaceSupport);
/** Sets the currently active instance of {@link XsSAXParser}.
*/
public ContentHandler getCurrentContentHandler();
/** Sets the currently active instance of {@link XsSAXParser}.
*/
public void setCurrentContentHandler(ContentHandler pParser);
}