// Path: src/main/java/org/fintx/lang/Encoding.java
// public enum Encoding implements Codeable<String> {
//     UTF_8("UTF-8"), GBK("GBK"), GB18030("GB18030");
//     private String code;
// 
//     private Encoding(String code) {
//         this.code = code;
//     }
// 
//     @Override
//     public String getCode() {
//         // TODO Auto-generated method stub
//         return code;
//     }
// }
// 
// Path: src/main/java/org/fintx/util/convertor/ObjectStringConvertor.java
// public interface ObjectStringConvertor {
//     public <T> String toString(T obj) throws Exception;
// 
//     public <T> T toObject(String text, Class<T> clazz) throws Exception;
// 
//     // public <T> String toString(T obj, Properties prop) throws Exception;
// 
//     // public <T> T toObject(String text, Class<T> clazz, Properties prop) throws
//     // Exception;
// }


import java.io.StringReader;
import java.io.StringWriter;
import java.util.HashMap;
import java.util.Map;
import javax.xml.XMLConstants;
import javax.xml.bind.*;
import org.fintx.lang.Encoding;
import org.fintx.util.convertor.ObjectStringConvertor;
import com.sun.xml.bind.marshaller.NamespacePrefixMapper;
import com.sun.xml.bind.v2.WellKnownNamespace;
import lombok.AllArgsConstructor;
import lombok.AccessLevel;

/**
 *  Copyright 2017 FinTx
 *
 * 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.fintx.util;





/**
 * @author bluecreator(qiang.x.wang@gmail.com)
 *
 */
@SuppressWarnings("restriction")
@AllArgsConstructor(access = AccessLevel.PACKAGE)
public final class ObjectXmls implements ObjectStringConvertor {

    private Map<String, String> namespacePrefixMapper;
    private boolean formatted;

// Path: src/main/java/org/fintx/lang/Encoding.java
// public enum Encoding implements Codeable<String> {
//     UTF_8("UTF-8"), GBK("GBK"), GB18030("GB18030");
//     private String code;
// 
//     private Encoding(String code) {
//         this.code = code;
//     }
// 
//     @Override
//     public String getCode() {
//         // TODO Auto-generated method stub
//         return code;
//     }
// }
// 
// Path: src/main/java/org/fintx/util/convertor/ObjectStringConvertor.java
// public interface ObjectStringConvertor {
//     public <T> String toString(T obj) throws Exception;
// 
//     public <T> T toObject(String text, Class<T> clazz) throws Exception;
// 
//     // public <T> String toString(T obj, Properties prop) throws Exception;
// 
//     // public <T> T toObject(String text, Class<T> clazz, Properties prop) throws
//     // Exception;
// }


// Path: src/main/java/org/fintx/util/ObjectXmls.java
import java.io.StringReader;
import java.io.StringWriter;
import java.util.HashMap;
import java.util.Map;
import javax.xml.XMLConstants;
import javax.xml.bind.*;
import org.fintx.lang.Encoding;
import org.fintx.util.convertor.ObjectStringConvertor;
import com.sun.xml.bind.marshaller.NamespacePrefixMapper;
import com.sun.xml.bind.v2.WellKnownNamespace;
import lombok.AllArgsConstructor;
import lombok.AccessLevel;

/**
 *  Copyright 2017 FinTx
 *
 * 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.fintx.util;





/**
 * @author bluecreator(qiang.x.wang@gmail.com)
 *
 */
@SuppressWarnings("restriction")
@AllArgsConstructor(access = AccessLevel.PACKAGE)
public final class ObjectXmls implements ObjectStringConvertor {

    private Map<String, String> namespacePrefixMapper;
    private boolean formatted;

    private Encoding encoding;
