Moved SAX and XDBX out of X4O driver
This commit is contained in:
parent
831eccea01
commit
002a556a79
|
@ -34,7 +34,7 @@ import java.io.InputStreamReader;
|
||||||
import java.nio.charset.StandardCharsets;
|
import java.nio.charset.StandardCharsets;
|
||||||
import java.util.PrimitiveIterator;
|
import java.util.PrimitiveIterator;
|
||||||
|
|
||||||
import org.x4o.xml.io.XMLConstants;
|
import org.x4o.xml.o2o.io.sax3.XMLConstants;
|
||||||
|
|
||||||
import love.distributedrebirth.nx01.warp.manifestor.scopic.ScopicManifestContent;
|
import love.distributedrebirth.nx01.warp.manifestor.scopic.ScopicManifestContent;
|
||||||
import love.distributedrebirth.nx01.warp.manifestor.scopic.ScopicManifestException;
|
import love.distributedrebirth.nx01.warp.manifestor.scopic.ScopicManifestException;
|
||||||
|
|
|
@ -29,7 +29,7 @@ package love.distributedrebirth.nx01.warp.manifestor.scopic.iomf;
|
||||||
|
|
||||||
import java.util.PrimitiveIterator;
|
import java.util.PrimitiveIterator;
|
||||||
|
|
||||||
import org.x4o.xml.io.XMLConstants;
|
import org.x4o.xml.o2o.io.sax3.XMLConstants;
|
||||||
import org.x4o.xml.o2o.octal.PrimordialOctalOrangeJuiceAtoms;
|
import org.x4o.xml.o2o.octal.PrimordialOctalOrangeJuiceAtoms;
|
||||||
|
|
||||||
/// Stroboscopic manifest 1 and 2 constants.
|
/// Stroboscopic manifest 1 and 2 constants.
|
||||||
|
|
|
@ -35,7 +35,7 @@ import java.nio.charset.StandardCharsets;
|
||||||
import java.util.Optional;
|
import java.util.Optional;
|
||||||
import java.util.PrimitiveIterator;
|
import java.util.PrimitiveIterator;
|
||||||
|
|
||||||
import org.x4o.xml.io.XMLConstants;
|
import org.x4o.xml.o2o.io.sax3.XMLConstants;
|
||||||
|
|
||||||
import love.distributedrebirth.nx01.warp.manifestor.manifest.WarpManifest3HeaderField;
|
import love.distributedrebirth.nx01.warp.manifestor.manifest.WarpManifest3HeaderField;
|
||||||
import love.distributedrebirth.nx01.warp.manifestor.manifest.WarpManifestTheVersion;
|
import love.distributedrebirth.nx01.warp.manifestor.manifest.WarpManifestTheVersion;
|
||||||
|
|
|
@ -24,11 +24,11 @@ package org.x4o.xml.eld.xsd;
|
||||||
|
|
||||||
import java.io.IOException;
|
import java.io.IOException;
|
||||||
|
|
||||||
import org.x4o.xml.io.sax.ext.PropertyConfig;
|
|
||||||
import org.x4o.xml.lang.X4OLanguage;
|
import org.x4o.xml.lang.X4OLanguage;
|
||||||
import org.x4o.xml.lang.task.AbstractX4OLanguageTask;
|
import org.x4o.xml.lang.task.AbstractX4OLanguageTask;
|
||||||
import org.x4o.xml.lang.task.X4OLanguageTaskException;
|
import org.x4o.xml.lang.task.X4OLanguageTaskException;
|
||||||
import org.x4o.xml.lang.task.X4OLanguageTaskExecutor;
|
import org.x4o.xml.lang.task.X4OLanguageTaskExecutor;
|
||||||
|
import org.x4o.xml.o2o.PropertyConfig;
|
||||||
import org.xml.sax.SAXException;
|
import org.xml.sax.SAXException;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -30,11 +30,11 @@ import java.io.Writer;
|
||||||
|
|
||||||
import org.x4o.xml.element.ElementClass;
|
import org.x4o.xml.element.ElementClass;
|
||||||
import org.x4o.xml.element.ElementNamespace;
|
import org.x4o.xml.element.ElementNamespace;
|
||||||
import org.x4o.xml.io.sax.ext.ContentWriterXml;
|
|
||||||
import org.x4o.xml.io.sax.ext.ContentWriterXsd;
|
|
||||||
import org.x4o.xml.io.sax.ext.PropertyConfig;
|
|
||||||
import org.x4o.xml.io.sax.ext.PropertyConfig.PropertyConfigItem;
|
|
||||||
import org.x4o.xml.lang.X4OLanguageModule;
|
import org.x4o.xml.lang.X4OLanguageModule;
|
||||||
|
import org.x4o.xml.o2o.PropertyConfig;
|
||||||
|
import org.x4o.xml.o2o.PropertyConfig.PropertyConfigItem;
|
||||||
|
import org.x4o.xml.o2o.io.ContentWriterXsd;
|
||||||
|
import org.x4o.xml.o2o.io.sax3.ContentWriterXml;
|
||||||
import org.x4o.xml.lang.X4OLanguage;
|
import org.x4o.xml.lang.X4OLanguage;
|
||||||
import org.xml.sax.SAXException;
|
import org.xml.sax.SAXException;
|
||||||
|
|
||||||
|
|
|
@ -39,12 +39,12 @@ import org.x4o.xml.element.ElementInterface;
|
||||||
import org.x4o.xml.element.ElementMetaBase;
|
import org.x4o.xml.element.ElementMetaBase;
|
||||||
import org.x4o.xml.element.ElementNamespace;
|
import org.x4o.xml.element.ElementNamespace;
|
||||||
import org.x4o.xml.element.ElementNamespaceAttribute;
|
import org.x4o.xml.element.ElementNamespaceAttribute;
|
||||||
import org.x4o.xml.io.XMLConstants;
|
|
||||||
import org.x4o.xml.io.sax.ext.ContentWriterXml;
|
|
||||||
import org.x4o.xml.io.sax.ext.ContentWriterXsd;
|
|
||||||
import org.x4o.xml.io.sax.ext.ContentWriterXsd.Tag;
|
|
||||||
import org.x4o.xml.io.sax.ext.PropertyConfig;
|
|
||||||
import org.x4o.xml.lang.X4OLanguageModule;
|
import org.x4o.xml.lang.X4OLanguageModule;
|
||||||
|
import org.x4o.xml.o2o.PropertyConfig;
|
||||||
|
import org.x4o.xml.o2o.io.ContentWriterXsd;
|
||||||
|
import org.x4o.xml.o2o.io.ContentWriterXsd.Tag;
|
||||||
|
import org.x4o.xml.o2o.io.sax3.ContentWriterXml;
|
||||||
|
import org.x4o.xml.o2o.io.sax3.XMLConstants;
|
||||||
import org.x4o.xml.lang.X4OLanguage;
|
import org.x4o.xml.lang.X4OLanguage;
|
||||||
import org.xml.sax.SAXException;
|
import org.xml.sax.SAXException;
|
||||||
import org.xml.sax.helpers.AttributesImpl;
|
import org.xml.sax.helpers.AttributesImpl;
|
||||||
|
|
|
@ -26,8 +26,8 @@ import java.util.ArrayList;
|
||||||
import java.util.Collection;
|
import java.util.Collection;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
import org.x4o.xml.io.sax.ext.PropertyConfig;
|
|
||||||
import org.x4o.xml.lang.X4OLanguage;
|
import org.x4o.xml.lang.X4OLanguage;
|
||||||
|
import org.x4o.xml.o2o.PropertyConfig;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* AbstractX4OConnection is the read/write interface for the classes.
|
* AbstractX4OConnection is the read/write interface for the classes.
|
||||||
|
|
|
@ -28,15 +28,14 @@ import java.io.PrintWriter;
|
||||||
import java.io.StringWriter;
|
import java.io.StringWriter;
|
||||||
import java.io.UnsupportedEncodingException;
|
import java.io.UnsupportedEncodingException;
|
||||||
|
|
||||||
import org.x4o.xml.io.sax.X4ODebugWriter;
|
|
||||||
import org.x4o.xml.io.sax.ext.ContentWriter;
|
|
||||||
import org.x4o.xml.io.sax.ext.ContentWriterXml;
|
|
||||||
import org.x4o.xml.lang.X4OLanguageSession;
|
import org.x4o.xml.lang.X4OLanguageSession;
|
||||||
import org.x4o.xml.lang.X4OLanguageSessionLocal;
|
import org.x4o.xml.lang.X4OLanguageSessionLocal;
|
||||||
import org.x4o.xml.lang.phase.X4OPhase;
|
import org.x4o.xml.lang.phase.X4OPhase;
|
||||||
import org.x4o.xml.lang.phase.X4OPhaseException;
|
import org.x4o.xml.lang.phase.X4OPhaseException;
|
||||||
import org.x4o.xml.lang.phase.X4OPhaseLanguageRead;
|
import org.x4o.xml.lang.phase.X4OPhaseLanguageRead;
|
||||||
import org.x4o.xml.lang.phase.X4OPhaseLanguageWrite;
|
import org.x4o.xml.lang.phase.X4OPhaseLanguageWrite;
|
||||||
|
import org.x4o.xml.o2o.io.sax3.ContentWriter;
|
||||||
|
import org.x4o.xml.o2o.io.sax3.ContentWriterXml;
|
||||||
import org.xml.sax.SAXException;
|
import org.xml.sax.SAXException;
|
||||||
import org.xml.sax.helpers.AttributesImpl;
|
import org.xml.sax.helpers.AttributesImpl;
|
||||||
|
|
||||||
|
|
|
@ -28,9 +28,9 @@ import java.io.FileOutputStream;
|
||||||
import java.io.IOException;
|
import java.io.IOException;
|
||||||
import java.io.OutputStream;
|
import java.io.OutputStream;
|
||||||
|
|
||||||
import org.x4o.xml.io.sax.ext.ContentWriterXml;
|
|
||||||
import org.x4o.xml.lang.X4OLanguage;
|
import org.x4o.xml.lang.X4OLanguage;
|
||||||
import org.x4o.xml.lang.X4OLanguageSession;
|
import org.x4o.xml.lang.X4OLanguageSession;
|
||||||
|
import org.x4o.xml.o2o.io.sax3.ContentWriterXml;
|
||||||
import org.xml.sax.SAXException;
|
import org.xml.sax.SAXException;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -31,15 +31,15 @@ import java.net.URL;
|
||||||
import javax.el.ValueExpression;
|
import javax.el.ValueExpression;
|
||||||
import javax.xml.parsers.ParserConfigurationException;
|
import javax.xml.parsers.ParserConfigurationException;
|
||||||
|
|
||||||
import org.x4o.xml.io.sax.X4OContentParser;
|
|
||||||
import org.x4o.xml.io.sax.ext.ContentWriter;
|
|
||||||
import org.x4o.xml.io.sax.ext.PropertyConfig;
|
|
||||||
import org.x4o.xml.io.sax.ext.PropertyConfig.PropertyConfigItem;
|
|
||||||
import org.x4o.xml.lang.X4OLanguage;
|
import org.x4o.xml.lang.X4OLanguage;
|
||||||
import org.x4o.xml.lang.X4OLanguageSession;
|
import org.x4o.xml.lang.X4OLanguageSession;
|
||||||
import org.x4o.xml.lang.X4OLanguageSessionLocal;
|
import org.x4o.xml.lang.X4OLanguageSessionLocal;
|
||||||
import org.x4o.xml.lang.phase.X4OPhaseException;
|
import org.x4o.xml.lang.phase.X4OPhaseException;
|
||||||
import org.x4o.xml.lang.phase.X4OPhaseType;
|
import org.x4o.xml.lang.phase.X4OPhaseType;
|
||||||
|
import org.x4o.xml.o2o.PropertyConfig;
|
||||||
|
import org.x4o.xml.o2o.PropertyConfig.PropertyConfigItem;
|
||||||
|
import org.x4o.xml.o2o.io.sax3.ContentWriter;
|
||||||
|
import org.x4o.xml.o2o.io.sax3.XMLConstants;
|
||||||
import org.xml.sax.EntityResolver;
|
import org.xml.sax.EntityResolver;
|
||||||
import org.xml.sax.ErrorHandler;
|
import org.xml.sax.ErrorHandler;
|
||||||
import org.xml.sax.InputSource;
|
import org.xml.sax.InputSource;
|
||||||
|
|
|
@ -39,17 +39,18 @@ import org.x4o.xml.element.ElementClassAttribute;
|
||||||
import org.x4o.xml.element.ElementInterface;
|
import org.x4o.xml.element.ElementInterface;
|
||||||
import org.x4o.xml.element.ElementNamespace;
|
import org.x4o.xml.element.ElementNamespace;
|
||||||
import org.x4o.xml.element.ElementObjectPropertyValueException;
|
import org.x4o.xml.element.ElementObjectPropertyValueException;
|
||||||
import org.x4o.xml.io.sax.ext.ContentWriter;
|
|
||||||
import org.x4o.xml.io.sax.ext.PropertyConfig;
|
|
||||||
import org.x4o.xml.io.sax.ext.ContentWriterXml;
|
|
||||||
import org.x4o.xml.io.sax.ext.PropertyConfig.PropertyConfigItem;
|
|
||||||
import org.x4o.xml.io.sax.xdbx.XDBXWriterXml;
|
|
||||||
import org.x4o.xml.lang.X4OLanguage;
|
import org.x4o.xml.lang.X4OLanguage;
|
||||||
import org.x4o.xml.lang.X4OLanguageSession;
|
import org.x4o.xml.lang.X4OLanguageSession;
|
||||||
import org.x4o.xml.lang.X4OLanguageModule;
|
import org.x4o.xml.lang.X4OLanguageModule;
|
||||||
import org.x4o.xml.lang.phase.X4OPhaseException;
|
import org.x4o.xml.lang.phase.X4OPhaseException;
|
||||||
import org.x4o.xml.lang.phase.X4OPhaseLanguageWrite;
|
import org.x4o.xml.lang.phase.X4OPhaseLanguageWrite;
|
||||||
import org.x4o.xml.lang.phase.X4OPhaseType;
|
import org.x4o.xml.lang.phase.X4OPhaseType;
|
||||||
|
import org.x4o.xml.o2o.PropertyConfig;
|
||||||
|
import org.x4o.xml.o2o.PropertyConfig.PropertyConfigItem;
|
||||||
|
import org.x4o.xml.o2o.io.sax3.ContentWriter;
|
||||||
|
import org.x4o.xml.o2o.io.sax3.ContentWriterXml;
|
||||||
|
import org.x4o.xml.o2o.io.sax3.XMLConstants;
|
||||||
|
import org.x4o.xml.o2o.io.sax3.xdbx.XDBXWriterXml;
|
||||||
import org.xml.sax.SAXException;
|
import org.xml.sax.SAXException;
|
||||||
import org.xml.sax.helpers.AttributesImpl;
|
import org.xml.sax.helpers.AttributesImpl;
|
||||||
|
|
||||||
|
|
|
@ -20,17 +20,16 @@
|
||||||
* TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
|
* TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
|
||||||
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||||
*/
|
*/
|
||||||
package org.x4o.xml.io.sax;
|
package org.x4o.xml.io;
|
||||||
|
|
||||||
import org.x4o.xml.element.Element;
|
import org.x4o.xml.element.Element;
|
||||||
import org.x4o.xml.element.Element.ElementType;
|
import org.x4o.xml.element.Element.ElementType;
|
||||||
import org.x4o.xml.element.ElementException;
|
import org.x4o.xml.element.ElementException;
|
||||||
import org.x4o.xml.element.ElementNamespace;
|
import org.x4o.xml.element.ElementNamespace;
|
||||||
import org.x4o.xml.element.ElementNamespaceInstanceProvider;
|
import org.x4o.xml.element.ElementNamespaceInstanceProvider;
|
||||||
import org.x4o.xml.io.DefaultX4OReader;
|
|
||||||
import org.x4o.xml.io.sax.ext.AttributeMap;
|
|
||||||
import org.x4o.xml.io.sax.ext.PropertyConfig;
|
|
||||||
import org.x4o.xml.lang.X4OLanguageSession;
|
import org.x4o.xml.lang.X4OLanguageSession;
|
||||||
|
import org.x4o.xml.o2o.PropertyConfig;
|
||||||
|
import org.x4o.xml.o2o.io.sax3.AttributeMap;
|
||||||
import org.xml.sax.Attributes;
|
import org.xml.sax.Attributes;
|
||||||
import org.xml.sax.Locator;
|
import org.xml.sax.Locator;
|
||||||
import org.xml.sax.SAXException;
|
import org.xml.sax.SAXException;
|
|
@ -20,13 +20,12 @@
|
||||||
* TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
|
* TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
|
||||||
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||||
*/
|
*/
|
||||||
package org.x4o.xml.io.sax;
|
package org.x4o.xml.io;
|
||||||
|
|
||||||
import org.x4o.xml.eld.EldDriver;
|
import org.x4o.xml.eld.EldDriver;
|
||||||
import org.x4o.xml.element.ElementException;
|
import org.x4o.xml.element.ElementException;
|
||||||
import org.x4o.xml.io.DefaultX4OReader;
|
|
||||||
import org.x4o.xml.io.sax.ext.PropertyConfig;
|
|
||||||
import org.x4o.xml.lang.X4OLanguageSession;
|
import org.x4o.xml.lang.X4OLanguageSession;
|
||||||
|
import org.x4o.xml.o2o.PropertyConfig;
|
||||||
import org.xml.sax.InputSource;
|
import org.xml.sax.InputSource;
|
||||||
import org.xml.sax.SAXException;
|
import org.xml.sax.SAXException;
|
||||||
import org.xml.sax.XMLReader;
|
import org.xml.sax.XMLReader;
|
|
@ -20,7 +20,7 @@
|
||||||
* TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
|
* TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
|
||||||
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||||
*/
|
*/
|
||||||
package org.x4o.xml.io.sax;
|
package org.x4o.xml.io;
|
||||||
|
|
||||||
import java.lang.reflect.Method;
|
import java.lang.reflect.Method;
|
||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
|
@ -41,10 +41,6 @@ import org.x4o.xml.element.ElementException;
|
||||||
import org.x4o.xml.element.ElementInterface;
|
import org.x4o.xml.element.ElementInterface;
|
||||||
import org.x4o.xml.element.ElementNamespace;
|
import org.x4o.xml.element.ElementNamespace;
|
||||||
import org.x4o.xml.element.ElementNamespaceInstanceProvider;
|
import org.x4o.xml.element.ElementNamespaceInstanceProvider;
|
||||||
import org.x4o.xml.io.X4OConnection;
|
|
||||||
import org.x4o.xml.io.XMLConstants;
|
|
||||||
import org.x4o.xml.io.sax.ext.ContentWriter;
|
|
||||||
import org.x4o.xml.io.sax.ext.ContentWriterTagWrapper;
|
|
||||||
import org.x4o.xml.lang.X4OLanguageModule;
|
import org.x4o.xml.lang.X4OLanguageModule;
|
||||||
import org.x4o.xml.lang.X4OLanguageModuleLoaderResult;
|
import org.x4o.xml.lang.X4OLanguageModuleLoaderResult;
|
||||||
import org.x4o.xml.lang.X4OLanguageSession;
|
import org.x4o.xml.lang.X4OLanguageSession;
|
||||||
|
@ -52,6 +48,9 @@ import org.x4o.xml.lang.X4OLanguageConfiguration;
|
||||||
import org.x4o.xml.lang.phase.X4OPhase;
|
import org.x4o.xml.lang.phase.X4OPhase;
|
||||||
import org.x4o.xml.lang.phase.X4OPhaseException;
|
import org.x4o.xml.lang.phase.X4OPhaseException;
|
||||||
import org.x4o.xml.lang.phase.X4OPhaseListener;
|
import org.x4o.xml.lang.phase.X4OPhaseListener;
|
||||||
|
import org.x4o.xml.o2o.io.sax3.ContentWriter;
|
||||||
|
import org.x4o.xml.o2o.io.sax3.ContentWriterTagWrapper;
|
||||||
|
import org.x4o.xml.o2o.io.sax3.XMLConstants;
|
||||||
import org.xml.sax.SAXException;
|
import org.xml.sax.SAXException;
|
||||||
import org.xml.sax.helpers.AttributesImpl;
|
import org.xml.sax.helpers.AttributesImpl;
|
||||||
|
|
|
@ -20,7 +20,7 @@
|
||||||
* TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
|
* TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
|
||||||
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||||
*/
|
*/
|
||||||
package org.x4o.xml.io.sax;
|
package org.x4o.xml.io;
|
||||||
|
|
||||||
import java.io.File;
|
import java.io.File;
|
||||||
import java.io.FileInputStream;
|
import java.io.FileInputStream;
|
||||||
|
@ -31,10 +31,9 @@ import java.util.Map;
|
||||||
import java.util.logging.Logger;
|
import java.util.logging.Logger;
|
||||||
|
|
||||||
import org.x4o.xml.element.ElementNamespace;
|
import org.x4o.xml.element.ElementNamespace;
|
||||||
import org.x4o.xml.io.DefaultX4OReader;
|
|
||||||
import org.x4o.xml.io.sax.ext.PropertyConfig;
|
|
||||||
import org.x4o.xml.lang.X4OLanguageModule;
|
import org.x4o.xml.lang.X4OLanguageModule;
|
||||||
import org.x4o.xml.lang.X4OLanguageSession;
|
import org.x4o.xml.lang.X4OLanguageSession;
|
||||||
|
import org.x4o.xml.o2o.PropertyConfig;
|
||||||
import org.x4o.xml.lang.X4OLanguageClassLoader;
|
import org.x4o.xml.lang.X4OLanguageClassLoader;
|
||||||
import org.xml.sax.EntityResolver;
|
import org.xml.sax.EntityResolver;
|
||||||
import org.xml.sax.InputSource;
|
import org.xml.sax.InputSource;
|
|
@ -20,12 +20,11 @@
|
||||||
* TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
|
* TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
|
||||||
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||||
*/
|
*/
|
||||||
package org.x4o.xml.io.sax;
|
package org.x4o.xml.io;
|
||||||
|
|
||||||
import org.x4o.xml.element.ElementException;
|
import org.x4o.xml.element.ElementException;
|
||||||
import org.x4o.xml.io.DefaultX4OReader;
|
|
||||||
import org.x4o.xml.io.sax.ext.PropertyConfig;
|
|
||||||
import org.x4o.xml.lang.X4OLanguageSession;
|
import org.x4o.xml.lang.X4OLanguageSession;
|
||||||
|
import org.x4o.xml.o2o.PropertyConfig;
|
||||||
import org.xml.sax.ErrorHandler;
|
import org.xml.sax.ErrorHandler;
|
||||||
import org.xml.sax.SAXException;
|
import org.xml.sax.SAXException;
|
||||||
import org.xml.sax.SAXParseException;
|
import org.xml.sax.SAXParseException;
|
|
@ -1,29 +0,0 @@
|
||||||
/*
|
|
||||||
* Copyright (c) 2004-2014, Willem Cazander
|
|
||||||
* All rights reserved.
|
|
||||||
*
|
|
||||||
* Redistribution and use in source and binary forms, with or without modification, are permitted provided
|
|
||||||
* that the following conditions are met:
|
|
||||||
*
|
|
||||||
* * Redistributions of source code must retain the above copyright notice, this list of conditions and the
|
|
||||||
* following disclaimer.
|
|
||||||
* * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and
|
|
||||||
* the following disclaimer in the documentation and/or other materials provided with the distribution.
|
|
||||||
*
|
|
||||||
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY
|
|
||||||
* EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
|
|
||||||
* MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL
|
|
||||||
* THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
|
||||||
* SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT
|
|
||||||
* OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
|
|
||||||
* HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR
|
|
||||||
* TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
|
|
||||||
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
||||||
*/
|
|
||||||
/**
|
|
||||||
* The SAX based classes and interfaces.
|
|
||||||
*
|
|
||||||
* @since 1.0
|
|
||||||
*/
|
|
||||||
|
|
||||||
package org.x4o.xml.io.sax;
|
|
|
@ -32,7 +32,7 @@ import javax.el.ExpressionFactory;
|
||||||
import org.x4o.xml.element.Element;
|
import org.x4o.xml.element.Element;
|
||||||
import org.x4o.xml.element.ElementAttributeValueParser;
|
import org.x4o.xml.element.ElementAttributeValueParser;
|
||||||
import org.x4o.xml.element.ElementObjectPropertyValue;
|
import org.x4o.xml.element.ElementObjectPropertyValue;
|
||||||
import org.x4o.xml.io.sax.X4ODebugWriter;
|
import org.x4o.xml.io.X4ODebugWriter;
|
||||||
import org.x4o.xml.lang.phase.X4OPhase;
|
import org.x4o.xml.lang.phase.X4OPhase;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -191,7 +191,7 @@ public abstract class AbstractX4OLanguageSession implements X4OLanguageSessionLo
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @see org.x4o.xml.lang.X4OLanguageSessionLocal#setX4ODebugWriter(org.x4o.xml.io.sax.X4ODebugWriter)
|
* @see org.x4o.xml.lang.X4OLanguageSessionLocal#setX4ODebugWriter(org.x4o.xml.io.X4ODebugWriter)
|
||||||
*/
|
*/
|
||||||
public void setX4ODebugWriter(X4ODebugWriter debugWriter) {
|
public void setX4ODebugWriter(X4ODebugWriter debugWriter) {
|
||||||
this.debugWriter=debugWriter;
|
this.debugWriter=debugWriter;
|
||||||
|
|
|
@ -30,7 +30,7 @@ import javax.el.ExpressionFactory;
|
||||||
import org.x4o.xml.element.Element;
|
import org.x4o.xml.element.Element;
|
||||||
import org.x4o.xml.element.ElementAttributeValueParser;
|
import org.x4o.xml.element.ElementAttributeValueParser;
|
||||||
import org.x4o.xml.element.ElementObjectPropertyValue;
|
import org.x4o.xml.element.ElementObjectPropertyValue;
|
||||||
import org.x4o.xml.io.sax.X4ODebugWriter;
|
import org.x4o.xml.io.X4ODebugWriter;
|
||||||
import org.x4o.xml.lang.phase.X4OPhase;
|
import org.x4o.xml.lang.phase.X4OPhase;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -27,7 +27,7 @@ import javax.el.ExpressionFactory;
|
||||||
|
|
||||||
import org.x4o.xml.element.ElementAttributeValueParser;
|
import org.x4o.xml.element.ElementAttributeValueParser;
|
||||||
import org.x4o.xml.element.ElementObjectPropertyValue;
|
import org.x4o.xml.element.ElementObjectPropertyValue;
|
||||||
import org.x4o.xml.io.sax.X4ODebugWriter;
|
import org.x4o.xml.io.X4ODebugWriter;
|
||||||
import org.x4o.xml.lang.phase.X4OPhase;
|
import org.x4o.xml.lang.phase.X4OPhase;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -32,6 +32,7 @@ import java.util.logging.Logger;
|
||||||
import org.x4o.xml.conv.ObjectConverterException;
|
import org.x4o.xml.conv.ObjectConverterException;
|
||||||
import org.x4o.xml.element.Element;
|
import org.x4o.xml.element.Element;
|
||||||
import org.x4o.xml.element.ElementNamespaceAttribute;
|
import org.x4o.xml.element.ElementNamespaceAttribute;
|
||||||
|
import org.x4o.xml.io.X4ODebugWriter;
|
||||||
import org.x4o.xml.element.ElementAttributeValueParser;
|
import org.x4o.xml.element.ElementAttributeValueParser;
|
||||||
import org.x4o.xml.element.ElementBindingHandler;
|
import org.x4o.xml.element.ElementBindingHandler;
|
||||||
import org.x4o.xml.element.ElementClassAttribute;
|
import org.x4o.xml.element.ElementClassAttribute;
|
||||||
|
@ -40,7 +41,6 @@ import org.x4o.xml.element.ElementConfiguratorGlobal;
|
||||||
import org.x4o.xml.element.ElementException;
|
import org.x4o.xml.element.ElementException;
|
||||||
import org.x4o.xml.element.ElementInterface;
|
import org.x4o.xml.element.ElementInterface;
|
||||||
import org.x4o.xml.element.ElementNamespace;
|
import org.x4o.xml.element.ElementNamespace;
|
||||||
import org.x4o.xml.io.sax.X4ODebugWriter;
|
|
||||||
import org.x4o.xml.lang.X4OLanguageModule;
|
import org.x4o.xml.lang.X4OLanguageModule;
|
||||||
import org.x4o.xml.lang.X4OLanguageSession;
|
import org.x4o.xml.lang.X4OLanguageSession;
|
||||||
import org.x4o.xml.lang.X4OLanguageClassLoader;
|
import org.x4o.xml.lang.X4OLanguageClassLoader;
|
||||||
|
|
|
@ -24,7 +24,7 @@ package org.x4o.xml.lang.task;
|
||||||
|
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
import org.x4o.xml.io.sax.ext.PropertyConfig;
|
import org.x4o.xml.o2o.PropertyConfig;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* AbstractX4OLanguageTask holds the language task meta info.
|
* AbstractX4OLanguageTask holds the language task meta info.
|
||||||
|
@ -53,7 +53,7 @@ public abstract class AbstractX4OLanguageTask implements X4OLanguageTask {
|
||||||
protected abstract X4OLanguageTaskExecutor createTaskExecutorChecked(PropertyConfig config);
|
protected abstract X4OLanguageTaskExecutor createTaskExecutorChecked(PropertyConfig config);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @see org.x4o.xml.lang.task.X4OLanguageTask#createTaskExecutor(org.x4o.xml.io.sax.ext.PropertyConfig)
|
* @see org.x4o.xml.lang.task.X4OLanguageTask#createTaskExecutor(org.x4o.xml.o2o.PropertyConfig)
|
||||||
*/
|
*/
|
||||||
public X4OLanguageTaskExecutor createTaskExecutor(PropertyConfig config) {
|
public X4OLanguageTaskExecutor createTaskExecutor(PropertyConfig config) {
|
||||||
return createTaskExecutorChecked(checkConfig(config));
|
return createTaskExecutorChecked(checkConfig(config));
|
||||||
|
|
|
@ -22,7 +22,7 @@
|
||||||
*/
|
*/
|
||||||
package org.x4o.xml.lang.task;
|
package org.x4o.xml.lang.task;
|
||||||
|
|
||||||
import org.x4o.xml.io.sax.ext.PropertyConfig;
|
import org.x4o.xml.o2o.PropertyConfig;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* X4OLanguageTask runs a task for a language.
|
* X4OLanguageTask runs a task for a language.
|
||||||
|
|
|
@ -22,7 +22,7 @@
|
||||||
*/
|
*/
|
||||||
package org.x4o.xml.lang.task;
|
package org.x4o.xml.lang.task;
|
||||||
|
|
||||||
import org.x4o.xml.io.sax.ext.PropertyConfig;
|
import org.x4o.xml.o2o.PropertyConfig;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* X4OLanguageTaskException addes the property config to the exception.
|
* X4OLanguageTaskException addes the property config to the exception.
|
||||||
|
|
|
@ -24,8 +24,8 @@ package org.x4o.xml.lang.task;
|
||||||
|
|
||||||
import java.io.IOException;
|
import java.io.IOException;
|
||||||
|
|
||||||
import org.x4o.xml.io.sax.ext.PropertyConfig;
|
|
||||||
import org.x4o.xml.lang.X4OLanguage;
|
import org.x4o.xml.lang.X4OLanguage;
|
||||||
|
import org.x4o.xml.o2o.PropertyConfig;
|
||||||
import org.xml.sax.SAXException;
|
import org.xml.sax.SAXException;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -28,9 +28,9 @@ import java.io.IOException;
|
||||||
import java.io.InputStream;
|
import java.io.InputStream;
|
||||||
import java.io.OutputStream;
|
import java.io.OutputStream;
|
||||||
|
|
||||||
import org.x4o.xml.io.sax.ext.PropertyConfig;
|
|
||||||
import org.x4o.xml.io.sax.ext.PropertyConfig.PropertyConfigItem;
|
|
||||||
import org.x4o.xml.lang.X4OLanguageClassLoader;
|
import org.x4o.xml.lang.X4OLanguageClassLoader;
|
||||||
|
import org.x4o.xml.o2o.PropertyConfig;
|
||||||
|
import org.x4o.xml.o2o.PropertyConfig.PropertyConfigItem;
|
||||||
import org.xml.sax.SAXException;
|
import org.xml.sax.SAXException;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -34,11 +34,11 @@ import java.util.Properties;
|
||||||
|
|
||||||
import org.x4o.xml.X4ODriver;
|
import org.x4o.xml.X4ODriver;
|
||||||
import org.x4o.xml.X4ODriverManager;
|
import org.x4o.xml.X4ODriverManager;
|
||||||
import org.x4o.xml.io.sax.ext.PropertyConfig;
|
|
||||||
import org.x4o.xml.lang.X4OLanguage;
|
import org.x4o.xml.lang.X4OLanguage;
|
||||||
import org.x4o.xml.lang.task.X4OLanguageTask;
|
import org.x4o.xml.lang.task.X4OLanguageTask;
|
||||||
import org.x4o.xml.lang.task.X4OLanguageTaskException;
|
import org.x4o.xml.lang.task.X4OLanguageTaskException;
|
||||||
import org.x4o.xml.lang.task.X4OLanguageTaskExecutor;
|
import org.x4o.xml.lang.task.X4OLanguageTaskExecutor;
|
||||||
|
import org.x4o.xml.o2o.PropertyConfig;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* X4OLanguageTaskCommandLine runs a language task from the command line.
|
* X4OLanguageTaskCommandLine runs a language task from the command line.
|
||||||
|
|
|
@ -26,11 +26,11 @@ import java.util.List;
|
||||||
|
|
||||||
import org.x4o.xml.X4ODriver;
|
import org.x4o.xml.X4ODriver;
|
||||||
import org.x4o.xml.X4ODriverManager;
|
import org.x4o.xml.X4ODriverManager;
|
||||||
import org.x4o.xml.io.sax.ext.PropertyConfig;
|
|
||||||
import org.x4o.xml.lang.X4OLanguage;
|
import org.x4o.xml.lang.X4OLanguage;
|
||||||
import org.x4o.xml.lang.task.X4OLanguageTask;
|
import org.x4o.xml.lang.task.X4OLanguageTask;
|
||||||
import org.x4o.xml.lang.task.X4OLanguageTaskException;
|
import org.x4o.xml.lang.task.X4OLanguageTaskException;
|
||||||
import org.x4o.xml.lang.task.X4OLanguageTaskExecutor;
|
import org.x4o.xml.lang.task.X4OLanguageTaskExecutor;
|
||||||
|
import org.x4o.xml.o2o.PropertyConfig;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* X4OTaskRunner finds all x4o objects and configs and then run the x4o langauge task.
|
* X4OTaskRunner finds all x4o objects and configs and then run the x4o langauge task.
|
||||||
|
|
|
@ -29,9 +29,9 @@ import org.junit.jupiter.api.Test;
|
||||||
import org.x4o.xml.X4ODriver;
|
import org.x4o.xml.X4ODriver;
|
||||||
import org.x4o.xml.eld.CelDriver;
|
import org.x4o.xml.eld.CelDriver;
|
||||||
import org.x4o.xml.io.DefaultX4OReader;
|
import org.x4o.xml.io.DefaultX4OReader;
|
||||||
import org.x4o.xml.io.sax.X4OEntityResolver;
|
import org.x4o.xml.io.X4OEntityResolver;
|
||||||
import org.x4o.xml.io.sax.ext.PropertyConfig;
|
|
||||||
import org.x4o.xml.lang.X4OLanguageSession;
|
import org.x4o.xml.lang.X4OLanguageSession;
|
||||||
|
import org.x4o.xml.o2o.PropertyConfig;
|
||||||
import org.x4o.xml.test.TestDriver;
|
import org.x4o.xml.test.TestDriver;
|
||||||
import org.x4o.xml.test.models.TestObjectRoot;
|
import org.x4o.xml.test.models.TestObjectRoot;
|
||||||
import org.xml.sax.EntityResolver;
|
import org.xml.sax.EntityResolver;
|
||||||
|
|
|
@ -34,9 +34,9 @@ import org.x4o.xml.eld.CelDriver;
|
||||||
import org.x4o.xml.eld.EldDriver;
|
import org.x4o.xml.eld.EldDriver;
|
||||||
import org.x4o.xml.eld.EldModuleLoaderCore;
|
import org.x4o.xml.eld.EldModuleLoaderCore;
|
||||||
import org.x4o.xml.io.X4OWriterTest;
|
import org.x4o.xml.io.X4OWriterTest;
|
||||||
import org.x4o.xml.io.sax.ext.ContentWriterXml;
|
|
||||||
import org.x4o.xml.io.sax.ext.PropertyConfig;
|
|
||||||
import org.x4o.xml.lang.task.X4OLanguageTask;
|
import org.x4o.xml.lang.task.X4OLanguageTask;
|
||||||
|
import org.x4o.xml.o2o.PropertyConfig;
|
||||||
|
import org.x4o.xml.o2o.io.sax3.ContentWriterXml;
|
||||||
import org.x4o.xml.test.swixml.SwiXmlDriver;
|
import org.x4o.xml.test.swixml.SwiXmlDriver;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -26,7 +26,7 @@ import java.io.StringWriter;
|
||||||
|
|
||||||
import org.x4o.xml.element.AbstractElement;
|
import org.x4o.xml.element.AbstractElement;
|
||||||
import org.x4o.xml.element.ElementException;
|
import org.x4o.xml.element.ElementException;
|
||||||
import org.x4o.xml.io.sax.ext.ContentWriterXml;
|
import org.x4o.xml.o2o.io.sax3.ContentWriterXml;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* InlinePropertiesElement to test
|
* InlinePropertiesElement to test
|
||||||
|
|
|
@ -23,11 +23,11 @@
|
||||||
package org.x4o.xml.eld.doc;
|
package org.x4o.xml.eld.doc;
|
||||||
|
|
||||||
import org.x4o.xml.element.ElementException;
|
import org.x4o.xml.element.ElementException;
|
||||||
import org.x4o.xml.io.sax.ext.PropertyConfig;
|
|
||||||
import org.x4o.xml.lang.X4OLanguage;
|
import org.x4o.xml.lang.X4OLanguage;
|
||||||
import org.x4o.xml.lang.task.AbstractX4OLanguageTask;
|
import org.x4o.xml.lang.task.AbstractX4OLanguageTask;
|
||||||
import org.x4o.xml.lang.task.X4OLanguageTaskException;
|
import org.x4o.xml.lang.task.X4OLanguageTaskException;
|
||||||
import org.x4o.xml.lang.task.X4OLanguageTaskExecutor;
|
import org.x4o.xml.lang.task.X4OLanguageTaskExecutor;
|
||||||
|
import org.x4o.xml.o2o.PropertyConfig;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* X4OWriteLanguageDoc is support class to write html documentation from the eld.
|
* X4OWriteLanguageDoc is support class to write html documentation from the eld.
|
||||||
|
|
|
@ -46,12 +46,12 @@ import org.x4o.xml.element.ElementConfiguratorGlobal;
|
||||||
import org.x4o.xml.element.ElementInterface;
|
import org.x4o.xml.element.ElementInterface;
|
||||||
import org.x4o.xml.element.ElementException;
|
import org.x4o.xml.element.ElementException;
|
||||||
import org.x4o.xml.element.ElementNamespace;
|
import org.x4o.xml.element.ElementNamespace;
|
||||||
import org.x4o.xml.io.sax.ext.ContentWriterXml;
|
|
||||||
import org.x4o.xml.io.sax.ext.PropertyConfig;
|
|
||||||
import org.x4o.xml.io.sax.ext.PropertyConfig.PropertyConfigItem;
|
|
||||||
import org.x4o.xml.lang.X4OLanguage;
|
import org.x4o.xml.lang.X4OLanguage;
|
||||||
import org.x4o.xml.lang.X4OLanguageModule;
|
import org.x4o.xml.lang.X4OLanguageModule;
|
||||||
import org.x4o.xml.lang.X4OLanguageSession;
|
import org.x4o.xml.lang.X4OLanguageSession;
|
||||||
|
import org.x4o.xml.o2o.PropertyConfig;
|
||||||
|
import org.x4o.xml.o2o.PropertyConfig.PropertyConfigItem;
|
||||||
|
import org.x4o.xml.o2o.io.sax3.ContentWriterXml;
|
||||||
import org.xml.sax.SAXException;
|
import org.xml.sax.SAXException;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -53,9 +53,9 @@ import org.x4o.xml.eld.doc.api.dom.ApiDocWriteEvent;
|
||||||
import org.x4o.xml.eld.doc.api.dom.ApiDocNodeWriter;
|
import org.x4o.xml.eld.doc.api.dom.ApiDocNodeWriter;
|
||||||
import org.x4o.xml.eld.doc.api.dom.ApiDocPage;
|
import org.x4o.xml.eld.doc.api.dom.ApiDocPage;
|
||||||
import org.x4o.xml.eld.doc.api.dom.ApiDocPageWriter;
|
import org.x4o.xml.eld.doc.api.dom.ApiDocPageWriter;
|
||||||
import org.x4o.xml.io.XMLConstants;
|
|
||||||
import org.x4o.xml.io.sax.ext.ContentWriterXml;
|
|
||||||
import org.x4o.xml.lang.X4OLanguageClassLoader;
|
import org.x4o.xml.lang.X4OLanguageClassLoader;
|
||||||
|
import org.x4o.xml.o2o.io.sax3.ContentWriterXml;
|
||||||
|
import org.x4o.xml.o2o.io.sax3.XMLConstants;
|
||||||
import org.xml.sax.SAXException;
|
import org.xml.sax.SAXException;
|
||||||
import org.xml.sax.helpers.AttributesImpl;
|
import org.xml.sax.helpers.AttributesImpl;
|
||||||
|
|
||||||
|
|
|
@ -46,12 +46,12 @@ import org.x4o.xml.element.ElementConfiguratorGlobal;
|
||||||
import org.x4o.xml.element.ElementInterface;
|
import org.x4o.xml.element.ElementInterface;
|
||||||
import org.x4o.xml.element.ElementException;
|
import org.x4o.xml.element.ElementException;
|
||||||
import org.x4o.xml.element.ElementNamespace;
|
import org.x4o.xml.element.ElementNamespace;
|
||||||
import org.x4o.xml.io.sax.ext.ContentWriterXml;
|
|
||||||
import org.x4o.xml.io.sax.ext.PropertyConfig;
|
|
||||||
import org.x4o.xml.io.sax.ext.PropertyConfig.PropertyConfigItem;
|
|
||||||
import org.x4o.xml.lang.X4OLanguage;
|
import org.x4o.xml.lang.X4OLanguage;
|
||||||
import org.x4o.xml.lang.X4OLanguageModule;
|
import org.x4o.xml.lang.X4OLanguageModule;
|
||||||
import org.x4o.xml.lang.X4OLanguageSession;
|
import org.x4o.xml.lang.X4OLanguageSession;
|
||||||
|
import org.x4o.xml.o2o.PropertyConfig;
|
||||||
|
import org.x4o.xml.o2o.PropertyConfig.PropertyConfigItem;
|
||||||
|
import org.x4o.xml.o2o.io.sax3.ContentWriterXml;
|
||||||
import org.xml.sax.SAXException;
|
import org.xml.sax.SAXException;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -30,8 +30,8 @@ import org.x4o.xml.X4ODriver;
|
||||||
import org.x4o.xml.X4ODriverManager;
|
import org.x4o.xml.X4ODriverManager;
|
||||||
import org.x4o.xml.eld.CelDriver;
|
import org.x4o.xml.eld.CelDriver;
|
||||||
import org.x4o.xml.eld.EldDriver;
|
import org.x4o.xml.eld.EldDriver;
|
||||||
import org.x4o.xml.io.sax.ext.PropertyConfig;
|
|
||||||
import org.x4o.xml.lang.task.X4OLanguageTask;
|
import org.x4o.xml.lang.task.X4OLanguageTask;
|
||||||
|
import org.x4o.xml.o2o.PropertyConfig;
|
||||||
import org.x4o.xml.test.TestDriver;
|
import org.x4o.xml.test.TestDriver;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -25,10 +25,10 @@ package org.x4o.html;
|
||||||
import java.io.Writer;
|
import java.io.Writer;
|
||||||
import java.util.Calendar;
|
import java.util.Calendar;
|
||||||
|
|
||||||
import org.x4o.xml.io.XMLConstants;
|
import org.x4o.xml.o2o.PropertyConfig;
|
||||||
import org.x4o.xml.io.sax.ext.ContentWriterTagWrapper;
|
import org.x4o.xml.o2o.io.sax3.ContentWriterTagWrapper;
|
||||||
import org.x4o.xml.io.sax.ext.ContentWriterXml;
|
import org.x4o.xml.o2o.io.sax3.ContentWriterXml;
|
||||||
import org.x4o.xml.io.sax.ext.PropertyConfig;
|
import org.x4o.xml.o2o.io.sax3.XMLConstants;
|
||||||
import org.xml.sax.SAXException;
|
import org.xml.sax.SAXException;
|
||||||
import org.xml.sax.helpers.AttributesImpl;
|
import org.xml.sax.helpers.AttributesImpl;
|
||||||
|
|
||||||
|
|
|
@ -20,7 +20,7 @@
|
||||||
* TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
|
* TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
|
||||||
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||||
*/
|
*/
|
||||||
package org.x4o.xml.io.sax.ext;
|
package org.x4o.xml.o2o;
|
||||||
|
|
||||||
import java.io.File;
|
import java.io.File;
|
||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
|
@ -20,11 +20,14 @@
|
||||||
* TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
|
* TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
|
||||||
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||||
*/
|
*/
|
||||||
package org.x4o.xml.io.sax.ext;
|
package org.x4o.xml.o2o.io;
|
||||||
|
|
||||||
import java.io.Writer;
|
import java.io.Writer;
|
||||||
|
|
||||||
import org.x4o.xml.io.XMLConstants;
|
import org.x4o.xml.o2o.PropertyConfig;
|
||||||
|
import org.x4o.xml.o2o.io.sax3.ContentWriterTagWrapper;
|
||||||
|
import org.x4o.xml.o2o.io.sax3.ContentWriterXml;
|
||||||
|
import org.x4o.xml.o2o.io.sax3.XMLConstants;
|
||||||
import org.xml.sax.SAXException;
|
import org.xml.sax.SAXException;
|
||||||
import org.xml.sax.helpers.AttributesImpl;
|
import org.xml.sax.helpers.AttributesImpl;
|
||||||
|
|
|
@ -20,11 +20,11 @@
|
||||||
* TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
|
* TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
|
||||||
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* October bits input and output interfaces.
|
* Object two object input output structure support.
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
* @since 1.0
|
* @since 1.0
|
||||||
*/
|
*/
|
||||||
|
|
||||||
package org.x4o.xml.o2o.io;
|
package org.x4o.xml.o2o.io;
|
||||||
|
|
|
@ -20,7 +20,7 @@
|
||||||
* TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
|
* TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
|
||||||
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||||
*/
|
*/
|
||||||
package org.x4o.xml.io.sax.ext;
|
package org.x4o.xml.o2o.io.sax3;
|
||||||
|
|
||||||
import java.io.Writer;
|
import java.io.Writer;
|
||||||
|
|
||||||
|
@ -45,7 +45,7 @@ public abstract class AbstractContentWriter extends AbstractContentWriterLexical
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Starts and end then element.
|
* Starts and end then element.
|
||||||
* @see org.x4o.xml.io.sax.ext.ContentWriter#startElementEnd(java.lang.String, java.lang.String, java.lang.String, org.xml.sax.Attributes)
|
* @see org.x4o.xml.o2o.io.sax3.ContentWriter#startElementEnd(java.lang.String, java.lang.String, java.lang.String, org.xml.sax.Attributes)
|
||||||
*/
|
*/
|
||||||
public void startElementEnd(String uri, String localName, String name, Attributes atts) throws SAXException {
|
public void startElementEnd(String uri, String localName, String name, Attributes atts) throws SAXException {
|
||||||
startElement(uri,localName,name, atts);
|
startElement(uri,localName,name, atts);
|
|
@ -20,7 +20,7 @@
|
||||||
* TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
|
* TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
|
||||||
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||||
*/
|
*/
|
||||||
package org.x4o.xml.io.sax.ext;
|
package org.x4o.xml.o2o.io.sax3;
|
||||||
|
|
||||||
import java.io.BufferedReader;
|
import java.io.BufferedReader;
|
||||||
import java.io.File;
|
import java.io.File;
|
||||||
|
@ -39,9 +39,8 @@ import java.util.PrimitiveIterator;
|
||||||
import java.util.Set;
|
import java.util.Set;
|
||||||
import java.util.Stack;
|
import java.util.Stack;
|
||||||
|
|
||||||
import org.x4o.xml.io.XMLConstants;
|
import org.x4o.xml.o2o.PropertyConfig;
|
||||||
import org.x4o.xml.io.sax.ext.PropertyConfig.PropertyConfigItem;
|
import org.x4o.xml.o2o.PropertyConfig.PropertyConfigItem;
|
||||||
import org.x4o.xml.lang.X4OLanguageClassLoader;
|
|
||||||
import org.xml.sax.Attributes;
|
import org.xml.sax.Attributes;
|
||||||
import org.xml.sax.ContentHandler;
|
import org.xml.sax.ContentHandler;
|
||||||
import org.xml.sax.Locator;
|
import org.xml.sax.Locator;
|
||||||
|
@ -158,7 +157,11 @@ public class AbstractContentWriterHandler implements ContentHandler {
|
||||||
String licenceEncoding = propertyConfig.getPropertyString(PROLOG_LICENCE_ENCODING);
|
String licenceEncoding = propertyConfig.getPropertyString(PROLOG_LICENCE_ENCODING);
|
||||||
String licenceResource = propertyConfig.getPropertyString(PROLOG_LICENCE_RESOURCE);
|
String licenceResource = propertyConfig.getPropertyString(PROLOG_LICENCE_RESOURCE);
|
||||||
if (licenceResource!=null) {
|
if (licenceResource!=null) {
|
||||||
licenceInput = X4OLanguageClassLoader.getResourceAsStream(licenceResource);
|
ClassLoader cl = Thread.currentThread().getContextClassLoader();
|
||||||
|
if (cl == null) {
|
||||||
|
cl = this.getClass().getClassLoader();
|
||||||
|
}
|
||||||
|
licenceInput = cl.getResourceAsStream(licenceResource);
|
||||||
if (licenceInput==null) {
|
if (licenceInput==null) {
|
||||||
throw new NullPointerException("Could not load licence resource from: "+licenceResource);
|
throw new NullPointerException("Could not load licence resource from: "+licenceResource);
|
||||||
}
|
}
|
||||||
|
@ -513,7 +516,7 @@ public class AbstractContentWriterHandler implements ContentHandler {
|
||||||
* Escape and prints xml characters.
|
* Escape and prints xml characters.
|
||||||
* @param text The text to write.
|
* @param text The text to write.
|
||||||
* @throws SAXException When IOException has happend while printing.
|
* @throws SAXException When IOException has happend while printing.
|
||||||
* @see org.x4o.xml.io.sax.ext.ContentWriter#characters(java.lang.String)
|
* @see org.x4o.xml.o2o.io.sax3.ContentWriter#characters(java.lang.String)
|
||||||
*/
|
*/
|
||||||
public void characters(String text) throws SAXException {
|
public void characters(String text) throws SAXException {
|
||||||
if (text==null) {
|
if (text==null) {
|
||||||
|
@ -554,7 +557,7 @@ public class AbstractContentWriterHandler implements ContentHandler {
|
||||||
*
|
*
|
||||||
* @param text The text to print.
|
* @param text The text to print.
|
||||||
* @throws SAXException When IOException has happend while printing.
|
* @throws SAXException When IOException has happend while printing.
|
||||||
* @see org.x4o.xml.io.sax.ext.ContentWriter#ignorableWhitespace(java.lang.String)
|
* @see org.x4o.xml.o2o.io.sax3.ContentWriter#ignorableWhitespace(java.lang.String)
|
||||||
*/
|
*/
|
||||||
public void ignorableWhitespace(String text) throws SAXException {
|
public void ignorableWhitespace(String text) throws SAXException {
|
||||||
if (text==null) {
|
if (text==null) {
|
||||||
|
@ -641,7 +644,7 @@ public class AbstractContentWriterHandler implements ContentHandler {
|
||||||
*
|
*
|
||||||
* @param text The text to write.
|
* @param text The text to write.
|
||||||
* @throws SAXException When IOException has happend while printing.
|
* @throws SAXException When IOException has happend while printing.
|
||||||
* @see org.x4o.xml.io.sax.ext.ContentWriter#comment(java.lang.String)
|
* @see org.x4o.xml.o2o.io.sax3.ContentWriter#comment(java.lang.String)
|
||||||
*/
|
*/
|
||||||
public void comment(String text) throws SAXException {
|
public void comment(String text) throws SAXException {
|
||||||
if (text==null) {
|
if (text==null) {
|
|
@ -20,11 +20,10 @@
|
||||||
* TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
|
* TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
|
||||||
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||||
*/
|
*/
|
||||||
package org.x4o.xml.io.sax.ext;
|
package org.x4o.xml.o2o.io.sax3;
|
||||||
|
|
||||||
import java.io.Writer;
|
import java.io.Writer;
|
||||||
|
|
||||||
import org.x4o.xml.io.XMLConstants;
|
|
||||||
import org.xml.sax.SAXException;
|
import org.xml.sax.SAXException;
|
||||||
import org.xml.sax.ext.LexicalHandler;
|
import org.xml.sax.ext.LexicalHandler;
|
||||||
|
|
||||||
|
@ -102,7 +101,7 @@ public abstract class AbstractContentWriterLexical extends AbstractContentWriter
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @see org.x4o.xml.io.sax.ext.AbstractContentWriterHandler#characters(char[], int, int)
|
* @see org.x4o.xml.o2o.io.sax3.AbstractContentWriterHandler#characters(char[], int, int)
|
||||||
*/
|
*/
|
||||||
@Override
|
@Override
|
||||||
public void characters(char[] ch, int start, int length) throws SAXException {
|
public void characters(char[] ch, int start, int length) throws SAXException {
|
||||||
|
@ -110,7 +109,7 @@ public abstract class AbstractContentWriterLexical extends AbstractContentWriter
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @see org.x4o.xml.io.sax.ext.AbstractContentWriterHandler#characters(java.lang.String)
|
* @see org.x4o.xml.o2o.io.sax3.AbstractContentWriterHandler#characters(java.lang.String)
|
||||||
*/
|
*/
|
||||||
@Override
|
@Override
|
||||||
public void characters(String text) throws SAXException {
|
public void characters(String text) throws SAXException {
|
|
@ -20,7 +20,7 @@
|
||||||
* TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
|
* TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
|
||||||
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||||
*/
|
*/
|
||||||
package org.x4o.xml.io.sax.ext;
|
package org.x4o.xml.o2o.io.sax3;
|
||||||
|
|
||||||
import org.xml.sax.Attributes;
|
import org.xml.sax.Attributes;
|
||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
|
@ -20,7 +20,7 @@
|
||||||
* TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
|
* TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
|
||||||
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||||
*/
|
*/
|
||||||
package org.x4o.xml.io.sax.ext;
|
package org.x4o.xml.o2o.io.sax3;
|
||||||
|
|
||||||
import org.xml.sax.Attributes;
|
import org.xml.sax.Attributes;
|
||||||
import org.xml.sax.ContentHandler;
|
import org.xml.sax.ContentHandler;
|
|
@ -20,7 +20,7 @@
|
||||||
* TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
|
* TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
|
||||||
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||||
*/
|
*/
|
||||||
package org.x4o.xml.io.sax.ext;
|
package org.x4o.xml.o2o.io.sax3;
|
||||||
|
|
||||||
import org.xml.sax.Attributes;
|
import org.xml.sax.Attributes;
|
||||||
import org.xml.sax.SAXException;
|
import org.xml.sax.SAXException;
|
|
@ -20,7 +20,7 @@
|
||||||
* TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
|
* TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
|
||||||
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||||
*/
|
*/
|
||||||
package org.x4o.xml.io.sax.ext;
|
package org.x4o.xml.o2o.io.sax3;
|
||||||
|
|
||||||
import org.xml.sax.Attributes;
|
import org.xml.sax.Attributes;
|
||||||
import org.xml.sax.SAXException;
|
import org.xml.sax.SAXException;
|
|
@ -20,15 +20,13 @@
|
||||||
* TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
|
* TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
|
||||||
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||||
*/
|
*/
|
||||||
package org.x4o.xml.io.sax.ext;
|
package org.x4o.xml.o2o.io.sax3;
|
||||||
|
|
||||||
import java.io.OutputStream;
|
import java.io.OutputStream;
|
||||||
import java.io.OutputStreamWriter;
|
import java.io.OutputStreamWriter;
|
||||||
import java.io.UnsupportedEncodingException;
|
import java.io.UnsupportedEncodingException;
|
||||||
import java.io.Writer;
|
import java.io.Writer;
|
||||||
|
|
||||||
import org.x4o.xml.io.XMLConstants;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* ContentWriterXml writes SAX content handler events to XML.
|
* ContentWriterXml writes SAX content handler events to XML.
|
||||||
*
|
*
|
|
@ -20,7 +20,7 @@
|
||||||
* TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
|
* TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
|
||||||
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||||
*/
|
*/
|
||||||
package org.x4o.xml.io;
|
package org.x4o.xml.o2o.io.sax3;
|
||||||
|
|
||||||
import java.util.PrimitiveIterator;
|
import java.util.PrimitiveIterator;
|
||||||
|
|
|
@ -26,4 +26,4 @@
|
||||||
* @since 1.0
|
* @since 1.0
|
||||||
*/
|
*/
|
||||||
|
|
||||||
package org.x4o.xml.io.sax.ext;
|
package org.x4o.xml.o2o.io.sax3;
|
|
@ -20,11 +20,11 @@
|
||||||
* TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
|
* TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
|
||||||
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||||
*/
|
*/
|
||||||
package org.x4o.xml.io.sax.xdbx;
|
package org.x4o.xml.o2o.io.sax3.xdbx;
|
||||||
|
|
||||||
import java.io.OutputStream;
|
import java.io.OutputStream;
|
||||||
|
|
||||||
import org.x4o.xml.io.sax.ext.ContentWriter;
|
import org.x4o.xml.o2o.io.sax3.ContentWriter;
|
||||||
import org.xml.sax.Attributes;
|
import org.xml.sax.Attributes;
|
||||||
import org.xml.sax.SAXException;
|
import org.xml.sax.SAXException;
|
||||||
|
|
||||||
|
@ -46,7 +46,7 @@ public abstract class AbstractXDBXWriter extends AbstractXDBXWriterLexical imple
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Starts and end then element.
|
* Starts and end then element.
|
||||||
* @see org.x4o.xml.io.sax.ext.ContentWriter#startElementEnd(java.lang.String, java.lang.String, java.lang.String, org.xml.sax.Attributes)
|
* @see org.x4o.xml.o2o.io.sax3.ContentWriter#startElementEnd(java.lang.String, java.lang.String, java.lang.String, org.xml.sax.Attributes)
|
||||||
*/
|
*/
|
||||||
public void startElementEnd(String uri, String localName, String name, Attributes atts) throws SAXException {
|
public void startElementEnd(String uri, String localName, String name, Attributes atts) throws SAXException {
|
||||||
startElement(uri,localName,name, atts);
|
startElement(uri,localName,name, atts);
|
|
@ -20,7 +20,7 @@
|
||||||
* TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
|
* TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
|
||||||
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||||
*/
|
*/
|
||||||
package org.x4o.xml.io.sax.xdbx;
|
package org.x4o.xml.o2o.io.sax3.xdbx;
|
||||||
|
|
||||||
import java.io.BufferedReader;
|
import java.io.BufferedReader;
|
||||||
import java.io.File;
|
import java.io.File;
|
||||||
|
@ -40,10 +40,9 @@ import java.util.PrimitiveIterator;
|
||||||
import java.util.Set;
|
import java.util.Set;
|
||||||
import java.util.Stack;
|
import java.util.Stack;
|
||||||
|
|
||||||
import org.x4o.xml.io.XMLConstants;
|
import org.x4o.xml.o2o.PropertyConfig;
|
||||||
import org.x4o.xml.io.sax.ext.PropertyConfig;
|
import org.x4o.xml.o2o.PropertyConfig.PropertyConfigItem;
|
||||||
import org.x4o.xml.io.sax.ext.PropertyConfig.PropertyConfigItem;
|
import org.x4o.xml.o2o.io.sax3.XMLConstants;
|
||||||
import org.x4o.xml.lang.X4OLanguageClassLoader;
|
|
||||||
import org.xml.sax.Attributes;
|
import org.xml.sax.Attributes;
|
||||||
import org.xml.sax.ContentHandler;
|
import org.xml.sax.ContentHandler;
|
||||||
import org.xml.sax.Locator;
|
import org.xml.sax.Locator;
|
||||||
|
@ -175,7 +174,11 @@ public class AbstractXDBXWriterHandler implements ContentHandler {
|
||||||
String licenceEncoding = propertyConfig.getPropertyString(PROLOG_LICENCE_ENCODING);
|
String licenceEncoding = propertyConfig.getPropertyString(PROLOG_LICENCE_ENCODING);
|
||||||
String licenceResource = propertyConfig.getPropertyString(PROLOG_LICENCE_RESOURCE);
|
String licenceResource = propertyConfig.getPropertyString(PROLOG_LICENCE_RESOURCE);
|
||||||
if (licenceResource!=null) {
|
if (licenceResource!=null) {
|
||||||
licenceInput = X4OLanguageClassLoader.getResourceAsStream(licenceResource);
|
ClassLoader cl = Thread.currentThread().getContextClassLoader();
|
||||||
|
if (cl == null) {
|
||||||
|
cl = this.getClass().getClassLoader();
|
||||||
|
}
|
||||||
|
licenceInput = cl.getResourceAsStream(licenceResource);
|
||||||
if (licenceInput==null) {
|
if (licenceInput==null) {
|
||||||
throw new NullPointerException("Could not load licence resource from: "+licenceResource);
|
throw new NullPointerException("Could not load licence resource from: "+licenceResource);
|
||||||
}
|
}
|
||||||
|
@ -491,7 +494,7 @@ public class AbstractXDBXWriterHandler implements ContentHandler {
|
||||||
* Escape and prints xml characters.
|
* Escape and prints xml characters.
|
||||||
* @param text The text to write.
|
* @param text The text to write.
|
||||||
* @throws SAXException When IOException has happend while printing.
|
* @throws SAXException When IOException has happend while printing.
|
||||||
* @see org.x4o.xml.io.sax.ext.ContentWriter#characters(java.lang.String)
|
* @see org.x4o.xml.o2o.io.sax3.ContentWriter#characters(java.lang.String)
|
||||||
*/
|
*/
|
||||||
public void characters(String text) throws SAXException {
|
public void characters(String text) throws SAXException {
|
||||||
if (text==null) {
|
if (text==null) {
|
||||||
|
@ -530,7 +533,7 @@ public class AbstractXDBXWriterHandler implements ContentHandler {
|
||||||
*
|
*
|
||||||
* @param text The text to print.
|
* @param text The text to print.
|
||||||
* @throws SAXException When IOException has happend while printing.
|
* @throws SAXException When IOException has happend while printing.
|
||||||
* @see org.x4o.xml.io.sax.ext.ContentWriter#ignorableWhitespace(java.lang.String)
|
* @see org.x4o.xml.o2o.io.sax3.ContentWriter#ignorableWhitespace(java.lang.String)
|
||||||
*/
|
*/
|
||||||
public void ignorableWhitespace(String text) throws SAXException {
|
public void ignorableWhitespace(String text) throws SAXException {
|
||||||
if (text==null) {
|
if (text==null) {
|
||||||
|
@ -618,7 +621,7 @@ public class AbstractXDBXWriterHandler implements ContentHandler {
|
||||||
*
|
*
|
||||||
* @param text The text to write.
|
* @param text The text to write.
|
||||||
* @throws SAXException When IOException has happend while printing.
|
* @throws SAXException When IOException has happend while printing.
|
||||||
* @see org.x4o.xml.io.sax.ext.ContentWriter#comment(java.lang.String)
|
* @see org.x4o.xml.o2o.io.sax3.ContentWriter#comment(java.lang.String)
|
||||||
*/
|
*/
|
||||||
public void comment(String text) throws SAXException {
|
public void comment(String text) throws SAXException {
|
||||||
if (text==null) {
|
if (text==null) {
|
|
@ -20,11 +20,11 @@
|
||||||
* TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
|
* TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
|
||||||
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||||
*/
|
*/
|
||||||
package org.x4o.xml.io.sax.xdbx;
|
package org.x4o.xml.o2o.io.sax3.xdbx;
|
||||||
|
|
||||||
import java.io.OutputStream;
|
import java.io.OutputStream;
|
||||||
|
|
||||||
import org.x4o.xml.io.XMLConstants;
|
import org.x4o.xml.o2o.io.sax3.XMLConstants;
|
||||||
import org.xml.sax.SAXException;
|
import org.xml.sax.SAXException;
|
||||||
import org.xml.sax.ext.LexicalHandler;
|
import org.xml.sax.ext.LexicalHandler;
|
||||||
|
|
||||||
|
@ -86,7 +86,7 @@ public abstract class AbstractXDBXWriterLexical extends AbstractXDBXWriterHandle
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @see org.x4o.xml.io.sax.ext.AbstractContentWriterHandler#characters(char[], int, int)
|
* @see org.x4o.xml.o2o.io.sax3.AbstractContentWriterHandler#characters(char[], int, int)
|
||||||
*/
|
*/
|
||||||
@Override
|
@Override
|
||||||
public void characters(char[] ch, int start, int length) throws SAXException {
|
public void characters(char[] ch, int start, int length) throws SAXException {
|
||||||
|
@ -94,7 +94,7 @@ public abstract class AbstractXDBXWriterLexical extends AbstractXDBXWriterHandle
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @see org.x4o.xml.io.sax.ext.AbstractContentWriterHandler#characters(java.lang.String)
|
* @see org.x4o.xml.o2o.io.sax3.AbstractContentWriterHandler#characters(java.lang.String)
|
||||||
*/
|
*/
|
||||||
@Override
|
@Override
|
||||||
public void characters(String text) throws SAXException {
|
public void characters(String text) throws SAXException {
|
|
@ -20,7 +20,7 @@
|
||||||
* TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
|
* TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
|
||||||
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||||
*/
|
*/
|
||||||
package org.x4o.xml.io.sax.xdbx;
|
package org.x4o.xml.o2o.io.sax3.xdbx;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* XDBXConstants for writing binary XML.
|
* XDBXConstants for writing binary XML.
|
|
@ -20,7 +20,7 @@
|
||||||
* TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
|
* TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
|
||||||
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||||
*/
|
*/
|
||||||
package org.x4o.xml.io.sax.xdbx;
|
package org.x4o.xml.o2o.io.sax3.xdbx;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* XDBXContentTag indicate the binary tag of the XDBX stream.
|
* XDBXContentTag indicate the binary tag of the XDBX stream.
|
|
@ -20,7 +20,7 @@
|
||||||
* TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
|
* TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
|
||||||
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||||
*/
|
*/
|
||||||
package org.x4o.xml.io.sax.xdbx;
|
package org.x4o.xml.o2o.io.sax3.xdbx;
|
||||||
|
|
||||||
import java.io.IOException;
|
import java.io.IOException;
|
||||||
import java.io.InputStream;
|
import java.io.InputStream;
|
||||||
|
@ -29,7 +29,7 @@ import java.util.HashMap;
|
||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
import java.util.Stack;
|
import java.util.Stack;
|
||||||
|
|
||||||
import org.x4o.xml.io.sax.ext.ContentWriter;
|
import org.x4o.xml.o2o.io.sax3.ContentWriter;
|
||||||
import org.xml.sax.SAXException;
|
import org.xml.sax.SAXException;
|
||||||
import org.xml.sax.helpers.AttributesImpl;
|
import org.xml.sax.helpers.AttributesImpl;
|
||||||
|
|
|
@ -20,7 +20,7 @@
|
||||||
* TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
|
* TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
|
||||||
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||||
*/
|
*/
|
||||||
package org.x4o.xml.io.sax.xdbx;
|
package org.x4o.xml.o2o.io.sax3.xdbx;
|
||||||
|
|
||||||
import java.io.OutputStream;
|
import java.io.OutputStream;
|
||||||
|
|
|
@ -26,4 +26,4 @@
|
||||||
* @since 1.0
|
* @since 1.0
|
||||||
*/
|
*/
|
||||||
|
|
||||||
package org.x4o.xml.io.sax.xdbx;
|
package org.x4o.xml.o2o.io.sax3.xdbx;
|
|
@ -20,11 +20,11 @@
|
||||||
* TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
|
* TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
|
||||||
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* October bits TLV chain.
|
* October bits TLV chain.
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
* @since 1.0
|
* @since 1.0
|
||||||
*/
|
*/
|
||||||
|
|
||||||
package org.x4o.xml.o2o.io.tlv;
|
package org.x4o.xml.o2o.io.tlv;
|
||||||
|
|
|
@ -20,11 +20,11 @@
|
||||||
* TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
|
* TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
|
||||||
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The octa four octal binary support for X4O.
|
* Object two object SAX and binary and octal support classes.
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
* @since 1.0
|
* @since 1.0
|
||||||
*/
|
*/
|
||||||
|
|
||||||
package org.x4o.xml.o2o;
|
package org.x4o.xml.o2o;
|
||||||
|
|
|
@ -20,7 +20,7 @@
|
||||||
* TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
|
* TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
|
||||||
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||||
*/
|
*/
|
||||||
package org.x4o.xml.io.sax;
|
package org.x4o.xml.o2o.io.sax3;
|
||||||
|
|
||||||
import java.io.ByteArrayInputStream;
|
import java.io.ByteArrayInputStream;
|
||||||
import java.io.StringWriter;
|
import java.io.StringWriter;
|
||||||
|
@ -33,7 +33,7 @@ import javax.xml.parsers.SAXParserFactory;
|
||||||
|
|
||||||
import org.junit.jupiter.api.Assertions;
|
import org.junit.jupiter.api.Assertions;
|
||||||
import org.junit.jupiter.api.Test;
|
import org.junit.jupiter.api.Test;
|
||||||
import org.x4o.xml.io.sax.ext.ContentWriterXml;
|
import org.x4o.xml.o2o.io.sax3.ContentWriterXml;
|
||||||
import org.xml.sax.InputSource;
|
import org.xml.sax.InputSource;
|
||||||
import org.xml.sax.SAXException;
|
import org.xml.sax.SAXException;
|
||||||
import org.xml.sax.XMLReader;
|
import org.xml.sax.XMLReader;
|
|
@ -20,13 +20,13 @@
|
||||||
* TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
|
* TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
|
||||||
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||||
*/
|
*/
|
||||||
package org.x4o.xml.io.sax;
|
package org.x4o.xml.o2o.io.sax3;
|
||||||
|
|
||||||
import java.io.StringWriter;
|
import java.io.StringWriter;
|
||||||
|
|
||||||
import org.junit.jupiter.api.Assertions;
|
import org.junit.jupiter.api.Assertions;
|
||||||
import org.junit.jupiter.api.Test;
|
import org.junit.jupiter.api.Test;
|
||||||
import org.x4o.xml.io.sax.ext.ContentWriterXml;
|
import org.x4o.xml.o2o.io.sax3.ContentWriterXml;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* ContentWriterXmlCDataTest tests cdata xml escaping.
|
* ContentWriterXmlCDataTest tests cdata xml escaping.
|
|
@ -20,13 +20,13 @@
|
||||||
* TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
|
* TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
|
||||||
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||||
*/
|
*/
|
||||||
package org.x4o.xml.io.sax;
|
package org.x4o.xml.o2o.io.sax3;
|
||||||
|
|
||||||
import java.io.StringWriter;
|
import java.io.StringWriter;
|
||||||
|
|
||||||
import org.junit.jupiter.api.Assertions;
|
import org.junit.jupiter.api.Assertions;
|
||||||
import org.junit.jupiter.api.Test;
|
import org.junit.jupiter.api.Test;
|
||||||
import org.x4o.xml.io.sax.ext.ContentWriterXml;
|
import org.x4o.xml.o2o.io.sax3.ContentWriterXml;
|
||||||
import org.xml.sax.SAXException;
|
import org.xml.sax.SAXException;
|
||||||
import org.xml.sax.helpers.AttributesImpl;
|
import org.xml.sax.helpers.AttributesImpl;
|
||||||
|
|
|
@ -20,7 +20,7 @@
|
||||||
* TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
|
* TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
|
||||||
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||||
*/
|
*/
|
||||||
package org.x4o.xml.io.sax.xdbx;
|
package org.x4o.xml.o2o.io.sax3.xdbx;
|
||||||
|
|
||||||
import java.io.ByteArrayInputStream;
|
import java.io.ByteArrayInputStream;
|
||||||
import java.io.ByteArrayOutputStream;
|
import java.io.ByteArrayOutputStream;
|
||||||
|
@ -33,7 +33,9 @@ import javax.xml.parsers.SAXParserFactory;
|
||||||
|
|
||||||
import org.junit.jupiter.api.Assertions;
|
import org.junit.jupiter.api.Assertions;
|
||||||
import org.junit.jupiter.api.Test;
|
import org.junit.jupiter.api.Test;
|
||||||
import org.x4o.xml.io.sax.ext.ContentWriterXml;
|
import org.x4o.xml.o2o.io.sax3.ContentWriterXml;
|
||||||
|
import org.x4o.xml.o2o.io.sax3.xdbx.XDBXReaderXml;
|
||||||
|
import org.x4o.xml.o2o.io.sax3.xdbx.XDBXWriterXml;
|
||||||
import org.xml.sax.InputSource;
|
import org.xml.sax.InputSource;
|
||||||
import org.xml.sax.XMLReader;
|
import org.xml.sax.XMLReader;
|
||||||
import org.xml.sax.helpers.AttributesImpl;
|
import org.xml.sax.helpers.AttributesImpl;
|
|
@ -20,7 +20,7 @@
|
||||||
* TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
|
* TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
|
||||||
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||||
*/
|
*/
|
||||||
package org.x4o.xml.io.sax.xdbx;
|
package org.x4o.xml.o2o.io.sax3.xdbx;
|
||||||
|
|
||||||
import java.io.ByteArrayInputStream;
|
import java.io.ByteArrayInputStream;
|
||||||
import java.io.ByteArrayOutputStream;
|
import java.io.ByteArrayOutputStream;
|
||||||
|
@ -28,7 +28,9 @@ import java.io.StringWriter;
|
||||||
|
|
||||||
import org.junit.jupiter.api.Assertions;
|
import org.junit.jupiter.api.Assertions;
|
||||||
import org.junit.jupiter.api.Test;
|
import org.junit.jupiter.api.Test;
|
||||||
import org.x4o.xml.io.sax.ext.ContentWriterXml;
|
import org.x4o.xml.o2o.io.sax3.ContentWriterXml;
|
||||||
|
import org.x4o.xml.o2o.io.sax3.xdbx.XDBXReaderXml;
|
||||||
|
import org.x4o.xml.o2o.io.sax3.xdbx.XDBXWriterXml;
|
||||||
import org.xml.sax.helpers.AttributesImpl;
|
import org.xml.sax.helpers.AttributesImpl;
|
||||||
|
|
||||||
/**
|
/**
|
|
@ -31,11 +31,11 @@ import java.io.BufferedWriter;
|
||||||
import java.io.IOException;
|
import java.io.IOException;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
import org.x4o.xml.io.XMLConstants;
|
import org.x4o.xml.o2o.io.sax3.ContentWriter;
|
||||||
import org.x4o.xml.io.sax.ext.ContentWriter;
|
import org.x4o.xml.o2o.io.sax3.ContentWriterTagWrapper;
|
||||||
import org.x4o.xml.io.sax.ext.ContentWriterTagWrapper;
|
import org.x4o.xml.o2o.io.sax3.ContentWriterXml;
|
||||||
import org.x4o.xml.io.sax.ext.ContentWriterXml;
|
import org.x4o.xml.o2o.io.sax3.XMLConstants;
|
||||||
import org.x4o.xml.io.sax.xdbx.XDBXWriterXml;
|
import org.x4o.xml.o2o.io.sax3.xdbx.XDBXWriterXml;
|
||||||
import org.xml.sax.SAXException;
|
import org.xml.sax.SAXException;
|
||||||
import org.xml.sax.helpers.AttributesImpl;
|
import org.xml.sax.helpers.AttributesImpl;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue