org.eclipse.persistence.platform.xml.XMLParser Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of eclipselink Show documentation
Show all versions of eclipselink Show documentation
EclipseLink build based upon Git transaction f2b9fc5
The newest version!
/*
* Copyright (c) 1998, 2023 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0 which is available at
* http://www.eclipse.org/legal/epl-2.0,
* or the Eclipse Distribution License v. 1.0 which is available at
* http://www.eclipse.org/org/documents/edl-v10.php.
*
* SPDX-License-Identifier: EPL-2.0 OR BSD-3-Clause
*/
// Contributors:
// Oracle - initial API and implementation from Oracle TopLink
package org.eclipse.persistence.platform.xml;
import org.w3c.dom.Document;
import org.xml.sax.EntityResolver;
import org.xml.sax.ErrorHandler;
import org.xml.sax.InputSource;
import javax.xml.transform.Source;
import javax.xml.validation.Schema;
import java.io.File;
import java.io.InputStream;
import java.io.Reader;
import java.net.URL;
public interface XMLParser {
int NONVALIDATING = 0;
int DTD_VALIDATION = 2;
int SCHEMA_VALIDATION = 3;
void setNamespaceAware(boolean isNamespaceAware);
void setWhitespacePreserving(boolean isWhitespacePreserving);
int getValidationMode();
void setValidationMode(int validationMode);
EntityResolver getEntityResolver();
void setEntityResolver(EntityResolver entityResolver);
ErrorHandler getErrorHandler();
void setErrorHandler(ErrorHandler errorHandler);
void setXMLSchema(URL url) throws XMLPlatformException;
void setXMLSchemas(Object[] schemas) throws XMLPlatformException;
void setXMLSchema(Schema schema) throws XMLPlatformException;
Schema getXMLSchema() throws XMLPlatformException;
Document parse(InputSource inputSource) throws XMLPlatformException;
Document parse(File file) throws XMLPlatformException;
Document parse(InputStream inputStream) throws XMLPlatformException;
Document parse(Reader reader) throws XMLPlatformException;
Document parse(Source source) throws XMLPlatformException;
Document parse(URL url) throws XMLPlatformException;
}