All Downloads are FREE. Search and download functionalities are using the official Maven repository.

system.xml.XmlWriterSettings Maven / Gradle / Ivy

/*
 *  MIT License
 *
 *  Copyright (c) 2022 MASES s.r.l.
 *
 *  Permission is hereby granted, free of charge, to any person obtaining a copy
 *  of this software and associated documentation files (the "Software"), to deal
 *  in the Software without restriction, including without limitation the rights
 *  to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
 *  copies of the Software, and to permit persons to whom the Software is
 *  furnished to do so, subject to the following conditions:
 *
 *  The above copyright notice and this permission notice shall be included in all
 *  copies or substantial portions of the Software.
 *
 *  THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
 *  IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
 *  FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
 *  AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
 *  LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
 *  OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
 *  SOFTWARE.
 */

/**************************************************************************************
 * 
 *      This code was generated from a template using JCOReflector
 * 
 *      Manual changes to this file may cause unexpected behavior in your application.
 *      Manual changes to this file will be overwritten if the code is regenerated.
 * 
 *************************************************************************************/

package system.xml;

import org.mases.jcobridge.*;
import org.mases.jcobridge.netreflection.*;
import java.util.ArrayList;

// Import section
import system.xml.XmlWriterSettings;
import system.text.Encoding;
import system.xml.ConformanceLevel;
import system.xml.NamespaceHandling;
import system.xml.NewLineHandling;
import system.xml.XmlOutputMethod;


/**
 * The base .NET class managing System.Xml.XmlWriterSettings, System.Private.Xml, Version=5.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51.
 * 

* * See: https://docs.microsoft.com/en-us/dotnet/api/System.Xml.XmlWriterSettings */ public class XmlWriterSettings extends NetObject { /** * Fully assembly qualified name: System.Private.Xml, Version=5.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51 */ public static final String assemblyFullName = "System.Private.Xml, Version=5.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51"; /** * Assembly name: System.Private.Xml */ public static final String assemblyShortName = "System.Private.Xml"; /** * Qualified class name: System.Xml.XmlWriterSettings */ public static final String className = "System.Xml.XmlWriterSettings"; static JCOBridge bridge = JCOBridgeInstance.getInstance(assemblyFullName); /** * The type managed from JCOBridge. See {@link JCType} */ public static JCType classType = createType(); static JCEnum enumInstance = null; JCObject classInstance = null; static JCType createType() { try { String classToCreate = className + ", " + (JCOReflector.getUseFullAssemblyName() ? assemblyFullName : assemblyShortName); if (JCOReflector.getDebug()) JCOReflector.writeLog("Creating %s", classToCreate); JCType typeCreated = bridge.GetType(classToCreate); if (JCOReflector.getDebug()) JCOReflector.writeLog("Created: %s", (typeCreated != null) ? typeCreated.toString() : "Returned null value"); return typeCreated; } catch (JCException e) { JCOReflector.writeLog(e); return null; } } void addReference(String ref) throws Throwable { try { bridge.AddReference(ref); } catch (JCNativeException jcne) { throw translateException(jcne); } } /** * Internal constructor. Use with caution */ public XmlWriterSettings(java.lang.Object instance) throws Throwable { super(instance); if (instance instanceof JCObject) { classInstance = (JCObject) instance; } else throw new Exception("Cannot manage object, it is not a JCObject"); } public String getJCOAssemblyName() { return assemblyFullName; } public String getJCOClassName() { return className; } public String getJCOObjectName() { return className + ", " + (JCOReflector.getUseFullAssemblyName() ? assemblyFullName : assemblyShortName); } public java.lang.Object getJCOInstance() { return classInstance; } public void setJCOInstance(JCObject instance) { classInstance = instance; super.setJCOInstance(classInstance); } public JCType getJCOType() { return classType; } /** * Try to cast the {@link IJCOBridgeReflected} instance into {@link XmlWriterSettings}, a cast assert is made to check if types are compatible. * @param from {@link IJCOBridgeReflected} instance to be casted * @return {@link XmlWriterSettings} instance * @throws java.lang.Throwable in case of error during cast operation */ public static XmlWriterSettings cast(IJCOBridgeReflected from) throws Throwable { NetType.AssertCast(classType, from); return new XmlWriterSettings(from.getJCOInstance()); } // Constructors section public XmlWriterSettings() throws Throwable, system.NotSupportedException, system.ArgumentNullException, system.InvalidOperationException, system.PlatformNotSupportedException, system.IndexOutOfRangeException { try { // add reference to assemblyName.dll file addReference(JCOReflector.getUseFullAssemblyName() ? assemblyFullName : assemblyShortName); setJCOInstance((JCObject)classType.NewObject()); } catch (JCNativeException jcne) { throw translateException(jcne); } } // Methods section public XmlWriterSettings Clone() throws Throwable, system.PlatformNotSupportedException, system.InvalidOperationException, system.ArgumentNullException, system.ArgumentOutOfRangeException, system.IndexOutOfRangeException, system.RankException, system.ArgumentException, system.ArrayTypeMismatchException { if (classInstance == null) throw new UnsupportedOperationException("classInstance is null."); try { JCObject objClone = (JCObject)classInstance.Invoke("Clone"); return new XmlWriterSettings(objClone); } catch (JCNativeException jcne) { throw translateException(jcne); } } public void Reset() throws Throwable, system.ArgumentNullException, system.ArgumentException, system.ArgumentOutOfRangeException, system.globalization.CultureNotFoundException, system.InvalidOperationException, system.PlatformNotSupportedException, system.ObjectDisposedException, system.IndexOutOfRangeException, system.FormatException, system.xml.XmlException { if (classInstance == null) throw new UnsupportedOperationException("classInstance is null."); try { classInstance.Invoke("Reset"); } catch (JCNativeException jcne) { throw translateException(jcne); } } // Properties section public boolean getAsync() throws Throwable { if (classInstance == null) throw new UnsupportedOperationException("classInstance is null."); try { return (boolean)classInstance.Get("Async"); } catch (JCNativeException jcne) { throw translateException(jcne); } } public void setAsync(boolean Async) throws Throwable, system.ArgumentNullException, system.ArgumentException, system.ArgumentOutOfRangeException, system.globalization.CultureNotFoundException, system.InvalidOperationException, system.PlatformNotSupportedException, system.ObjectDisposedException, system.IndexOutOfRangeException, system.FormatException, system.xml.XmlException { if (classInstance == null) throw new UnsupportedOperationException("classInstance is null."); try { classInstance.Set("Async", Async); } catch (JCNativeException jcne) { throw translateException(jcne); } } public boolean getCheckCharacters() throws Throwable { if (classInstance == null) throw new UnsupportedOperationException("classInstance is null."); try { return (boolean)classInstance.Get("CheckCharacters"); } catch (JCNativeException jcne) { throw translateException(jcne); } } public void setCheckCharacters(boolean CheckCharacters) throws Throwable, system.ArgumentNullException, system.ArgumentException, system.ArgumentOutOfRangeException, system.globalization.CultureNotFoundException, system.InvalidOperationException, system.PlatformNotSupportedException, system.ObjectDisposedException, system.IndexOutOfRangeException, system.FormatException, system.xml.XmlException { if (classInstance == null) throw new UnsupportedOperationException("classInstance is null."); try { classInstance.Set("CheckCharacters", CheckCharacters); } catch (JCNativeException jcne) { throw translateException(jcne); } } public boolean getCloseOutput() throws Throwable { if (classInstance == null) throw new UnsupportedOperationException("classInstance is null."); try { return (boolean)classInstance.Get("CloseOutput"); } catch (JCNativeException jcne) { throw translateException(jcne); } } public void setCloseOutput(boolean CloseOutput) throws Throwable, system.ArgumentNullException, system.ArgumentException, system.ArgumentOutOfRangeException, system.globalization.CultureNotFoundException, system.InvalidOperationException, system.PlatformNotSupportedException, system.ObjectDisposedException, system.IndexOutOfRangeException, system.FormatException, system.xml.XmlException { if (classInstance == null) throw new UnsupportedOperationException("classInstance is null."); try { classInstance.Set("CloseOutput", CloseOutput); } catch (JCNativeException jcne) { throw translateException(jcne); } } public boolean getDoNotEscapeUriAttributes() throws Throwable { if (classInstance == null) throw new UnsupportedOperationException("classInstance is null."); try { return (boolean)classInstance.Get("DoNotEscapeUriAttributes"); } catch (JCNativeException jcne) { throw translateException(jcne); } } public void setDoNotEscapeUriAttributes(boolean DoNotEscapeUriAttributes) throws Throwable, system.ArgumentNullException, system.ArgumentException, system.ArgumentOutOfRangeException, system.globalization.CultureNotFoundException, system.InvalidOperationException, system.PlatformNotSupportedException, system.ObjectDisposedException, system.IndexOutOfRangeException, system.FormatException, system.xml.XmlException { if (classInstance == null) throw new UnsupportedOperationException("classInstance is null."); try { classInstance.Set("DoNotEscapeUriAttributes", DoNotEscapeUriAttributes); } catch (JCNativeException jcne) { throw translateException(jcne); } } public boolean getIndent() throws Throwable { if (classInstance == null) throw new UnsupportedOperationException("classInstance is null."); try { return (boolean)classInstance.Get("Indent"); } catch (JCNativeException jcne) { throw translateException(jcne); } } public void setIndent(boolean Indent) throws Throwable, system.ArgumentNullException, system.ArgumentException, system.ArgumentOutOfRangeException, system.globalization.CultureNotFoundException, system.InvalidOperationException, system.PlatformNotSupportedException, system.ObjectDisposedException, system.IndexOutOfRangeException, system.FormatException, system.xml.XmlException { if (classInstance == null) throw new UnsupportedOperationException("classInstance is null."); try { classInstance.Set("Indent", Indent); } catch (JCNativeException jcne) { throw translateException(jcne); } } public boolean getNewLineOnAttributes() throws Throwable { if (classInstance == null) throw new UnsupportedOperationException("classInstance is null."); try { return (boolean)classInstance.Get("NewLineOnAttributes"); } catch (JCNativeException jcne) { throw translateException(jcne); } } public void setNewLineOnAttributes(boolean NewLineOnAttributes) throws Throwable, system.ArgumentNullException, system.ArgumentException, system.ArgumentOutOfRangeException, system.globalization.CultureNotFoundException, system.InvalidOperationException, system.PlatformNotSupportedException, system.ObjectDisposedException, system.IndexOutOfRangeException, system.FormatException, system.xml.XmlException { if (classInstance == null) throw new UnsupportedOperationException("classInstance is null."); try { classInstance.Set("NewLineOnAttributes", NewLineOnAttributes); } catch (JCNativeException jcne) { throw translateException(jcne); } } public boolean getOmitXmlDeclaration() throws Throwable { if (classInstance == null) throw new UnsupportedOperationException("classInstance is null."); try { return (boolean)classInstance.Get("OmitXmlDeclaration"); } catch (JCNativeException jcne) { throw translateException(jcne); } } public void setOmitXmlDeclaration(boolean OmitXmlDeclaration) throws Throwable, system.ArgumentNullException, system.ArgumentException, system.ArgumentOutOfRangeException, system.globalization.CultureNotFoundException, system.InvalidOperationException, system.PlatformNotSupportedException, system.ObjectDisposedException, system.IndexOutOfRangeException, system.FormatException, system.xml.XmlException { if (classInstance == null) throw new UnsupportedOperationException("classInstance is null."); try { classInstance.Set("OmitXmlDeclaration", OmitXmlDeclaration); } catch (JCNativeException jcne) { throw translateException(jcne); } } public boolean getWriteEndDocumentOnClose() throws Throwable { if (classInstance == null) throw new UnsupportedOperationException("classInstance is null."); try { return (boolean)classInstance.Get("WriteEndDocumentOnClose"); } catch (JCNativeException jcne) { throw translateException(jcne); } } public void setWriteEndDocumentOnClose(boolean WriteEndDocumentOnClose) throws Throwable, system.ArgumentNullException, system.ArgumentException, system.ArgumentOutOfRangeException, system.globalization.CultureNotFoundException, system.InvalidOperationException, system.PlatformNotSupportedException, system.ObjectDisposedException, system.IndexOutOfRangeException, system.FormatException, system.xml.XmlException { if (classInstance == null) throw new UnsupportedOperationException("classInstance is null."); try { classInstance.Set("WriteEndDocumentOnClose", WriteEndDocumentOnClose); } catch (JCNativeException jcne) { throw translateException(jcne); } } public java.lang.String getIndentChars() throws Throwable { if (classInstance == null) throw new UnsupportedOperationException("classInstance is null."); try { return (java.lang.String)classInstance.Get("IndentChars"); } catch (JCNativeException jcne) { throw translateException(jcne); } } public void setIndentChars(java.lang.String IndentChars) throws Throwable, system.ArgumentNullException, system.ArgumentException, system.ArgumentOutOfRangeException, system.globalization.CultureNotFoundException, system.InvalidOperationException, system.PlatformNotSupportedException, system.ObjectDisposedException, system.IndexOutOfRangeException, system.FormatException, system.xml.XmlException { if (classInstance == null) throw new UnsupportedOperationException("classInstance is null."); try { classInstance.Set("IndentChars", IndentChars); } catch (JCNativeException jcne) { throw translateException(jcne); } } public java.lang.String getNewLineChars() throws Throwable { if (classInstance == null) throw new UnsupportedOperationException("classInstance is null."); try { return (java.lang.String)classInstance.Get("NewLineChars"); } catch (JCNativeException jcne) { throw translateException(jcne); } } public void setNewLineChars(java.lang.String NewLineChars) throws Throwable, system.ArgumentNullException, system.ArgumentException, system.ArgumentOutOfRangeException, system.globalization.CultureNotFoundException, system.InvalidOperationException, system.PlatformNotSupportedException, system.ObjectDisposedException, system.IndexOutOfRangeException, system.FormatException, system.xml.XmlException { if (classInstance == null) throw new UnsupportedOperationException("classInstance is null."); try { classInstance.Set("NewLineChars", NewLineChars); } catch (JCNativeException jcne) { throw translateException(jcne); } } public Encoding getEncoding() throws Throwable { if (classInstance == null) throw new UnsupportedOperationException("classInstance is null."); try { JCObject val = (JCObject)classInstance.Get("Encoding"); return new Encoding(val); } catch (JCNativeException jcne) { throw translateException(jcne); } } public void setEncoding(Encoding Encoding) throws Throwable, system.ArgumentNullException, system.ArgumentException, system.ArgumentOutOfRangeException, system.globalization.CultureNotFoundException, system.InvalidOperationException, system.PlatformNotSupportedException, system.ObjectDisposedException, system.IndexOutOfRangeException, system.FormatException, system.xml.XmlException { if (classInstance == null) throw new UnsupportedOperationException("classInstance is null."); try { classInstance.Set("Encoding", Encoding == null ? null : Encoding.getJCOInstance()); } catch (JCNativeException jcne) { throw translateException(jcne); } } public ConformanceLevel getConformanceLevel() throws Throwable { if (classInstance == null) throw new UnsupportedOperationException("classInstance is null."); try { JCObject val = (JCObject)classInstance.Get("ConformanceLevel"); return new ConformanceLevel(val); } catch (JCNativeException jcne) { throw translateException(jcne); } } public void setConformanceLevel(ConformanceLevel ConformanceLevel) throws Throwable, system.ArgumentNullException, system.ArgumentException, system.ArgumentOutOfRangeException, system.globalization.CultureNotFoundException, system.InvalidOperationException, system.PlatformNotSupportedException, system.ObjectDisposedException, system.IndexOutOfRangeException, system.FormatException, system.xml.XmlException { if (classInstance == null) throw new UnsupportedOperationException("classInstance is null."); try { classInstance.Set("ConformanceLevel", ConformanceLevel == null ? null : ConformanceLevel.getJCOInstance()); } catch (JCNativeException jcne) { throw translateException(jcne); } } public NamespaceHandling getNamespaceHandling() throws Throwable { if (classInstance == null) throw new UnsupportedOperationException("classInstance is null."); try { JCObject val = (JCObject)classInstance.Get("NamespaceHandling"); return new NamespaceHandling(val); } catch (JCNativeException jcne) { throw translateException(jcne); } } public void setNamespaceHandling(NamespaceHandling NamespaceHandling) throws Throwable, system.ArgumentNullException, system.ArgumentException, system.ArgumentOutOfRangeException, system.globalization.CultureNotFoundException, system.InvalidOperationException, system.PlatformNotSupportedException, system.ObjectDisposedException, system.IndexOutOfRangeException, system.FormatException, system.xml.XmlException { if (classInstance == null) throw new UnsupportedOperationException("classInstance is null."); try { classInstance.Set("NamespaceHandling", NamespaceHandling == null ? null : NamespaceHandling.getJCOInstance()); } catch (JCNativeException jcne) { throw translateException(jcne); } } public NewLineHandling getNewLineHandling() throws Throwable { if (classInstance == null) throw new UnsupportedOperationException("classInstance is null."); try { JCObject val = (JCObject)classInstance.Get("NewLineHandling"); return new NewLineHandling(val); } catch (JCNativeException jcne) { throw translateException(jcne); } } public void setNewLineHandling(NewLineHandling NewLineHandling) throws Throwable, system.ArgumentNullException, system.ArgumentException, system.ArgumentOutOfRangeException, system.globalization.CultureNotFoundException, system.InvalidOperationException, system.PlatformNotSupportedException, system.ObjectDisposedException, system.IndexOutOfRangeException, system.FormatException, system.xml.XmlException { if (classInstance == null) throw new UnsupportedOperationException("classInstance is null."); try { classInstance.Set("NewLineHandling", NewLineHandling == null ? null : NewLineHandling.getJCOInstance()); } catch (JCNativeException jcne) { throw translateException(jcne); } } public XmlOutputMethod getOutputMethod() throws Throwable { if (classInstance == null) throw new UnsupportedOperationException("classInstance is null."); try { JCObject val = (JCObject)classInstance.Get("OutputMethod"); return new XmlOutputMethod(val); } catch (JCNativeException jcne) { throw translateException(jcne); } } public void setOutputMethod(XmlOutputMethod OutputMethod) throws Throwable { if (classInstance == null) throw new UnsupportedOperationException("classInstance is null."); try { classInstance.Set("OutputMethod", OutputMethod == null ? null : OutputMethod.getJCOInstance()); } catch (JCNativeException jcne) { throw translateException(jcne); } } // Instance Events section }





© 2015 - 2025 Weber Informatics LLC | Privacy Policy