mirror of
https://github.com/moparisthebest/sxf4j
synced 2024-12-21 22:18:49 -05:00
Refactor into new package
This commit is contained in:
parent
0f3578ade9
commit
a73ee4da1f
@ -1,8 +1,8 @@
|
||||
package org.moparscape.xml;
|
||||
package com.moparisthebest.sxf4j;
|
||||
|
||||
import org.moparscape.xml.impl.AbstractXmlElement;
|
||||
import org.moparscape.xml.impl.XmlElement;
|
||||
import org.moparscape.xml.impl.XmlElementFactory;
|
||||
import com.moparisthebest.sxf4j.impl.AbstractXmlElement;
|
||||
import com.moparisthebest.sxf4j.impl.XmlElement;
|
||||
import com.moparisthebest.sxf4j.impl.XmlElementFactory;
|
||||
|
||||
import java.lang.annotation.*;
|
||||
import java.lang.reflect.AccessibleObject;
|
@ -1,4 +1,4 @@
|
||||
package org.moparscape.xml.impl;
|
||||
package com.moparisthebest.sxf4j.impl;
|
||||
|
||||
import java.io.*;
|
||||
import java.lang.reflect.Constructor;
|
||||
@ -17,11 +17,11 @@ public abstract class AbstractXmlElement implements XmlElement, XmlElementFactor
|
||||
public static XmlElementFactory getFactory() {
|
||||
XmlElementFactory ret = null;
|
||||
|
||||
//ret = new org.moparscape.xml.impl.W3CXmlElement();
|
||||
//ret = new org.moparscape.xml.impl.XppXmlElement();
|
||||
//ret = new org.moparscape.xml.impl.Xpp3XmlElement();
|
||||
//ret = new org.moparscape.xml.impl.Dom4jXmlElement();
|
||||
//ret = new org.moparscape.xml.impl.XomXmlElement();
|
||||
//ret = new W3CXmlElement();
|
||||
//ret = new XppXmlElement();
|
||||
//ret = new Xpp3XmlElement();
|
||||
//ret = new Dom4jXmlElement();
|
||||
//ret = new XomXmlElement();
|
||||
final String xmlDocType = System.getProperty(implProperty);
|
||||
//System.out.println("xmlDocType: "+xmlDocType);
|
||||
String implPkgClass = AbstractXmlElement.class.getPackage().getName() + "." + xmlDocType;
|
@ -1,4 +1,4 @@
|
||||
package org.moparscape.xml.impl;
|
||||
package com.moparisthebest.sxf4j.impl;
|
||||
|
||||
import org.dom4j.*;
|
||||
import org.dom4j.Document;
|
@ -1,4 +1,4 @@
|
||||
package org.moparscape.xml.impl;
|
||||
package com.moparisthebest.sxf4j.impl;
|
||||
|
||||
import org.w3c.dom.*;
|
||||
|
@ -1,4 +1,4 @@
|
||||
package org.moparscape.xml.impl;
|
||||
package com.moparisthebest.sxf4j.impl;
|
||||
|
||||
import java.io.File;
|
||||
import java.io.OutputStream;
|
@ -1,4 +1,4 @@
|
||||
package org.moparscape.xml.impl;
|
||||
package com.moparisthebest.sxf4j.impl;
|
||||
|
||||
import java.io.File;
|
||||
import java.io.InputStream;
|
@ -1,4 +1,4 @@
|
||||
package org.moparscape.xml.impl;
|
||||
package com.moparisthebest.sxf4j.impl;
|
||||
|
||||
import nu.xom.*;
|
||||
|
@ -1,4 +1,4 @@
|
||||
package org.moparscape.xml.impl;
|
||||
package com.moparisthebest.sxf4j.impl;
|
||||
|
||||
import org.codehaus.plexus.util.xml.XmlStreamReader;
|
||||
import org.codehaus.plexus.util.xml.Xpp3Dom;
|
@ -1,4 +1,4 @@
|
||||
package org.moparscape.xml.impl;
|
||||
package com.moparisthebest.sxf4j.impl;
|
||||
|
||||
import com.thoughtworks.xstream.io.copy.HierarchicalStreamCopier;
|
||||
import com.thoughtworks.xstream.io.xml.PrettyPrintWriter;
|
@ -1,9 +1,9 @@
|
||||
package org.moparscape;
|
||||
package com.moparisthebest;
|
||||
|
||||
import org.moparscape.xml.ClassXmlElement;
|
||||
import com.moparisthebest.sxf4j.ClassXmlElement;
|
||||
|
||||
import org.moparscape.xml.ClassXmlElement.Root;
|
||||
import org.moparscape.xml.impl.*;
|
||||
import com.moparisthebest.sxf4j.ClassXmlElement.Root;
|
||||
import com.moparisthebest.sxf4j.impl.*;
|
||||
|
||||
import java.util.*;
|
||||
|
Loading…
Reference in New Issue
Block a user