system.xml.XmlDocument Maven / Gradle / Ivy
Show all versions of jcoreflector_net462 Show documentation
/*
* MIT License
*
* Copyright (c) 2024 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 v. 1.14.0.0
*
* 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.XmlNode;
import system.xml.XmlNameTable;
import system.xml.XmlAttribute;
import system.xml.XmlCDataSection;
import system.xml.XmlComment;
import system.xml.XmlDeclaration;
import system.xml.XmlDocumentFragment;
import system.xml.XmlDocumentType;
import system.xml.XmlElement;
import system.xml.XmlEntityReference;
import system.xml.XmlNodeType;
import system.xml.XmlReader;
import system.xml.XmlNodeList;
import system.xml.XmlProcessingInstruction;
import system.xml.XmlSignificantWhitespace;
import system.xml.XmlText;
import system.xml.XmlWhitespace;
import system.xml.xpath.XPathNavigator;
import system.io.Stream;
import system.io.TextReader;
import system.io.TextWriter;
import system.xml.XmlWriter;
import system.xml.schema.ValidationEventHandler;
import system.xml.schema.IXmlSchemaInfo;
import system.xml.schema.IXmlSchemaInfoImplementation;
import system.xml.schema.XmlSchemaSet;
import system.xml.XmlDocument;
import system.xml.XmlImplementation;
import system.xml.XmlResolver;
import system.xml.XmlNodeChangedEventHandler;
/**
* The base .NET class managing System.Xml.XmlDocument, System.Xml, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089.
*
*
* .NET documentation at https://docs.microsoft.com/en-us/dotnet/api/System.Xml.XmlDocument
*
*
* Powered by JCOBridge: more info at https://www.jcobridge.com
*
* @author MASES s.r.l https://masesgroup.com
* @version 1.14.0.0
*/
public class XmlDocument extends XmlNode {
/**
* Fully assembly qualified name: System.Xml, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
*/
public static final String assemblyFullName = "System.Xml, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089";
/**
* Assembly name: System.Xml
*/
public static final String assemblyShortName = "System.Xml";
/**
* Qualified class name: System.Xml.XmlDocument
*/
public static final String className = "System.Xml.XmlDocument";
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 XmlDocument(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 XmlDocument}, a cast assert is made to check if types are compatible.
* @param from {@link IJCOBridgeReflected} instance to be casted
* @return {@link XmlDocument} instance
* @throws java.lang.Throwable in case of error during cast operation
*/
public static XmlDocument cast(IJCOBridgeReflected from) throws Throwable {
NetType.AssertCast(classType, from);
return new XmlDocument(from.getJCOInstance());
}
// Constructors section
public XmlDocument() throws Throwable {
try {
// add reference to assemblyName.dll file
addReference(JCOReflector.getUseFullAssemblyName() ? assemblyFullName : assemblyShortName);
setJCOInstance((JCObject)classType.NewObject());
} catch (JCNativeException jcne) {
throw translateException(jcne);
}
}
public XmlDocument(XmlNameTable nt) throws Throwable {
try {
// add reference to assemblyName.dll file
addReference(JCOReflector.getUseFullAssemblyName() ? assemblyFullName : assemblyShortName);
setJCOInstance((JCObject)classType.NewObject(nt == null ? null : nt.getJCOInstance()));
} catch (JCNativeException jcne) {
throw translateException(jcne);
}
}
// Methods section
public XmlAttribute CreateAttribute(java.lang.String name) throws Throwable, system.ArgumentOutOfRangeException, system.NullReferenceException, system.ArgumentNullException, system.ArgumentException, system.NotImplementedException, system.globalization.CultureNotFoundException, system.IndexOutOfRangeException, system.resources.MissingManifestResourceException, system.ObjectDisposedException, system.InvalidOperationException, system.xml.XmlException {
if (classInstance == null)
throw new UnsupportedOperationException("classInstance is null.");
try {
JCObject objCreateAttribute = (JCObject)classInstance.Invoke("CreateAttribute", name);
return new XmlAttribute(objCreateAttribute);
} catch (JCNativeException jcne) {
throw translateException(jcne);
}
}
public XmlAttribute CreateAttribute(java.lang.String qualifiedName, java.lang.String namespaceURI) throws Throwable, system.ArgumentOutOfRangeException, system.NullReferenceException, system.ArgumentNullException, system.ArgumentException, system.NotImplementedException, system.globalization.CultureNotFoundException, system.IndexOutOfRangeException, system.resources.MissingManifestResourceException, system.ObjectDisposedException, system.InvalidOperationException, system.xml.XmlException {
if (classInstance == null)
throw new UnsupportedOperationException("classInstance is null.");
try {
JCObject objCreateAttribute = (JCObject)classInstance.Invoke("CreateAttribute", qualifiedName, namespaceURI);
return new XmlAttribute(objCreateAttribute);
} catch (JCNativeException jcne) {
throw translateException(jcne);
}
}
public XmlAttribute CreateAttribute(java.lang.String prefix, java.lang.String localName, java.lang.String namespaceURI) throws Throwable, system.NullReferenceException, system.ArgumentNullException, system.ArgumentException, system.InvalidOperationException, system.MissingMethodException, system.reflection.TargetInvocationException, system.NotImplementedException, system.ArgumentOutOfRangeException, system.globalization.CultureNotFoundException, system.resources.MissingManifestResourceException, system.ObjectDisposedException, system.IndexOutOfRangeException, system.xml.XmlException {
if (classInstance == null)
throw new UnsupportedOperationException("classInstance is null.");
try {
JCObject objCreateAttribute = (JCObject)classInstance.Invoke("CreateAttribute", prefix, localName, namespaceURI);
return new XmlAttribute(objCreateAttribute);
} catch (JCNativeException jcne) {
throw translateException(jcne);
}
}
public XmlCDataSection CreateCDataSection(java.lang.String data) throws Throwable, system.ArgumentNullException, system.ArgumentException, system.resources.MissingManifestResourceException, system.NotImplementedException, system.ObjectDisposedException, system.InvalidOperationException {
if (classInstance == null)
throw new UnsupportedOperationException("classInstance is null.");
try {
JCObject objCreateCDataSection = (JCObject)classInstance.Invoke("CreateCDataSection", data);
return new XmlCDataSection(objCreateCDataSection);
} catch (JCNativeException jcne) {
throw translateException(jcne);
}
}
public XmlComment CreateComment(java.lang.String data) throws Throwable, system.ArgumentNullException, system.ArgumentException, system.resources.MissingManifestResourceException, system.NotImplementedException, system.ObjectDisposedException, system.InvalidOperationException {
if (classInstance == null)
throw new UnsupportedOperationException("classInstance is null.");
try {
JCObject objCreateComment = (JCObject)classInstance.Invoke("CreateComment", data);
return new XmlComment(objCreateComment);
} catch (JCNativeException jcne) {
throw translateException(jcne);
}
}
public XmlDeclaration CreateXmlDeclaration(java.lang.String version, java.lang.String encoding, java.lang.String standalone) throws Throwable, system.ArgumentNullException, system.ArgumentException, system.NotImplementedException, system.resources.MissingManifestResourceException, system.ObjectDisposedException, system.InvalidOperationException, system.ArgumentOutOfRangeException, system.OutOfMemoryException, system.FormatException {
if (classInstance == null)
throw new UnsupportedOperationException("classInstance is null.");
try {
JCObject objCreateXmlDeclaration = (JCObject)classInstance.Invoke("CreateXmlDeclaration", version, encoding, standalone);
return new XmlDeclaration(objCreateXmlDeclaration);
} catch (JCNativeException jcne) {
throw translateException(jcne);
}
}
public XmlDocumentFragment CreateDocumentFragment() throws Throwable, system.ArgumentNullException, system.ArgumentException, system.InvalidOperationException, system.MissingMethodException, system.reflection.TargetInvocationException, system.NotImplementedException, system.ArgumentOutOfRangeException, system.globalization.CultureNotFoundException, system.resources.MissingManifestResourceException, system.ObjectDisposedException {
if (classInstance == null)
throw new UnsupportedOperationException("classInstance is null.");
try {
JCObject objCreateDocumentFragment = (JCObject)classInstance.Invoke("CreateDocumentFragment");
return new XmlDocumentFragment(objCreateDocumentFragment);
} catch (JCNativeException jcne) {
throw translateException(jcne);
}
}
public XmlDocumentType CreateDocumentType(java.lang.String name, java.lang.String publicId, java.lang.String systemId, java.lang.String internalSubset) throws Throwable, system.ArgumentNullException, system.ArgumentException, system.NotImplementedException, system.resources.MissingManifestResourceException, system.ObjectDisposedException, system.InvalidOperationException, system.ArgumentOutOfRangeException, system.xml.XmlException, system.NotSupportedException, system.IndexOutOfRangeException, system.security.SecurityException, system.UnauthorizedAccessException, system.io.IOException, system.NullReferenceException {
if (classInstance == null)
throw new UnsupportedOperationException("classInstance is null.");
try {
JCObject objCreateDocumentType = (JCObject)classInstance.Invoke("CreateDocumentType", name, publicId, systemId, internalSubset);
return new XmlDocumentType(objCreateDocumentType);
} catch (JCNativeException jcne) {
throw translateException(jcne);
}
}
public XmlElement CreateElement(java.lang.String name) throws Throwable, system.ArgumentOutOfRangeException, system.NullReferenceException, system.ArgumentNullException, system.ArgumentException, system.resources.MissingManifestResourceException, system.NotImplementedException, system.ObjectDisposedException, system.InvalidOperationException, system.IndexOutOfRangeException, system.xml.XmlException {
if (classInstance == null)
throw new UnsupportedOperationException("classInstance is null.");
try {
JCObject objCreateElement = (JCObject)classInstance.Invoke("CreateElement", name);
return new XmlElement(objCreateElement);
} catch (JCNativeException jcne) {
throw translateException(jcne);
}
}
public XmlElement CreateElement(java.lang.String qualifiedName, java.lang.String namespaceURI) throws Throwable, system.ArgumentOutOfRangeException, system.NullReferenceException, system.ArgumentNullException, system.ArgumentException, system.resources.MissingManifestResourceException, system.NotImplementedException, system.ObjectDisposedException, system.InvalidOperationException, system.IndexOutOfRangeException, system.xml.XmlException {
if (classInstance == null)
throw new UnsupportedOperationException("classInstance is null.");
try {
JCObject objCreateElement = (JCObject)classInstance.Invoke("CreateElement", qualifiedName, namespaceURI);
return new XmlElement(objCreateElement);
} catch (JCNativeException jcne) {
throw translateException(jcne);
}
}
public XmlElement CreateElement(java.lang.String prefix, java.lang.String localName, java.lang.String namespaceURI) throws Throwable, system.NullReferenceException, system.ArgumentNullException, system.ArgumentException, system.NotImplementedException, system.resources.MissingManifestResourceException, system.ObjectDisposedException, system.InvalidOperationException, system.ArgumentOutOfRangeException, system.FormatException, system.xml.XmlException {
if (classInstance == null)
throw new UnsupportedOperationException("classInstance is null.");
try {
JCObject objCreateElement = (JCObject)classInstance.Invoke("CreateElement", prefix, localName, namespaceURI);
return new XmlElement(objCreateElement);
} catch (JCNativeException jcne) {
throw translateException(jcne);
}
}
public XmlElement GetElementById(java.lang.String elementId) throws Throwable, system.ArgumentNullException, system.ObjectDisposedException, system.threading.AbandonedMutexException {
if (classInstance == null)
throw new UnsupportedOperationException("classInstance is null.");
try {
JCObject objGetElementById = (JCObject)classInstance.Invoke("GetElementById", elementId);
return new XmlElement(objGetElementById);
} catch (JCNativeException jcne) {
throw translateException(jcne);
}
}
public XmlEntityReference CreateEntityReference(java.lang.String name) throws Throwable, system.ArgumentNullException, system.ArgumentException, system.NotImplementedException, system.resources.MissingManifestResourceException, system.ObjectDisposedException, system.InvalidOperationException {
if (classInstance == null)
throw new UnsupportedOperationException("classInstance is null.");
try {
JCObject objCreateEntityReference = (JCObject)classInstance.Invoke("CreateEntityReference", name);
return new XmlEntityReference(objCreateEntityReference);
} catch (JCNativeException jcne) {
throw translateException(jcne);
}
}
public XmlNode CloneNode(boolean deep) throws Throwable, system.ArgumentNullException, system.ArgumentException, system.NotImplementedException, system.globalization.CultureNotFoundException, system.IndexOutOfRangeException, system.ArgumentOutOfRangeException, system.resources.MissingManifestResourceException, system.ObjectDisposedException, system.InvalidOperationException, system.NullReferenceException, system.xml.XmlException {
if (classInstance == null)
throw new UnsupportedOperationException("classInstance is null.");
try {
JCObject objCloneNode = (JCObject)classInstance.Invoke("CloneNode", deep);
return new XmlNode(objCloneNode);
} catch (JCNativeException jcne) {
throw translateException(jcne);
}
}
public XmlNode CreateNode(java.lang.String nodeTypeString, java.lang.String name, java.lang.String namespaceURI) throws Throwable, system.ArgumentNullException, system.ArgumentException, system.InvalidOperationException, system.MissingMethodException, system.reflection.TargetInvocationException, system.NotImplementedException, system.ArgumentOutOfRangeException, system.globalization.CultureNotFoundException, system.resources.MissingManifestResourceException, system.ObjectDisposedException, system.IndexOutOfRangeException, system.NullReferenceException, system.xml.XmlException {
if (classInstance == null)
throw new UnsupportedOperationException("classInstance is null.");
try {
JCObject objCreateNode = (JCObject)classInstance.Invoke("CreateNode", nodeTypeString, name, namespaceURI);
return new XmlNode(objCreateNode);
} catch (JCNativeException jcne) {
throw translateException(jcne);
}
}
public XmlNode CreateNode(XmlNodeType type, java.lang.String name, java.lang.String namespaceURI) throws Throwable, system.NullReferenceException, system.ArgumentNullException, system.ArgumentException, system.resources.MissingManifestResourceException, system.ObjectDisposedException, system.InvalidOperationException, system.ArgumentOutOfRangeException, system.xml.XmlException {
if (classInstance == null)
throw new UnsupportedOperationException("classInstance is null.");
try {
JCObject objCreateNode = (JCObject)classInstance.Invoke("CreateNode", type == null ? null : type.getJCOInstance(), name, namespaceURI);
return new XmlNode(objCreateNode);
} catch (JCNativeException jcne) {
throw translateException(jcne);
}
}
public XmlNode CreateNode(XmlNodeType type, java.lang.String prefix, java.lang.String name, java.lang.String namespaceURI) throws Throwable, system.NullReferenceException, system.ArgumentNullException, system.ArgumentException, system.resources.MissingManifestResourceException, system.NotImplementedException, system.ObjectDisposedException, system.InvalidOperationException, system.ArgumentOutOfRangeException, system.IndexOutOfRangeException, system.xml.XmlException, system.NotSupportedException {
if (classInstance == null)
throw new UnsupportedOperationException("classInstance is null.");
try {
JCObject objCreateNode = (JCObject)classInstance.Invoke("CreateNode", type == null ? null : type.getJCOInstance(), prefix, name, namespaceURI);
return new XmlNode(objCreateNode);
} catch (JCNativeException jcne) {
throw translateException(jcne);
}
}
public XmlNode ImportNode(XmlNode node, boolean deep) throws Throwable, system.ArgumentNullException, system.ArgumentException, system.InvalidOperationException, system.MissingMethodException, system.reflection.TargetInvocationException, system.NotImplementedException, system.ArgumentOutOfRangeException, system.globalization.CultureNotFoundException, system.resources.MissingManifestResourceException, system.ObjectDisposedException, system.NullReferenceException, system.xml.XmlException, system.IndexOutOfRangeException {
if (classInstance == null)
throw new UnsupportedOperationException("classInstance is null.");
try {
JCObject objImportNode = (JCObject)classInstance.Invoke("ImportNode", node == null ? null : node.getJCOInstance(), deep);
return new XmlNode(objImportNode);
} catch (JCNativeException jcne) {
throw translateException(jcne);
}
}
public XmlNode ReadNode(XmlReader reader) throws Throwable, system.ArgumentNullException, system.ArgumentException, system.InvalidOperationException, system.MissingMethodException, system.reflection.TargetInvocationException, system.NotImplementedException, system.ArgumentOutOfRangeException, system.globalization.CultureNotFoundException, system.resources.MissingManifestResourceException, system.ObjectDisposedException, system.NullReferenceException, system.xml.XmlException, system.RankException, system.NotSupportedException, system.IndexOutOfRangeException {
if (classInstance == null)
throw new UnsupportedOperationException("classInstance is null.");
try {
JCObject objReadNode = (JCObject)classInstance.Invoke("ReadNode", reader == null ? null : reader.getJCOInstance());
return new XmlNode(objReadNode);
} catch (JCNativeException jcne) {
throw translateException(jcne);
}
}
public XmlNodeList GetElementsByTagName(java.lang.String name) throws Throwable, system.ArgumentException, system.MulticastNotSupportedException {
if (classInstance == null)
throw new UnsupportedOperationException("classInstance is null.");
try {
JCObject objGetElementsByTagName = (JCObject)classInstance.Invoke("GetElementsByTagName", name);
return new XmlNodeList(objGetElementsByTagName);
} catch (JCNativeException jcne) {
throw translateException(jcne);
}
}
public XmlNodeList GetElementsByTagName(java.lang.String localName, java.lang.String namespaceURI) throws Throwable, system.ArgumentException, system.MulticastNotSupportedException {
if (classInstance == null)
throw new UnsupportedOperationException("classInstance is null.");
try {
JCObject objGetElementsByTagName = (JCObject)classInstance.Invoke("GetElementsByTagName", localName, namespaceURI);
return new XmlNodeList(objGetElementsByTagName);
} catch (JCNativeException jcne) {
throw translateException(jcne);
}
}
public XmlProcessingInstruction CreateProcessingInstruction(java.lang.String target, java.lang.String data) throws Throwable, system.ArgumentNullException, system.ArgumentException, system.NotImplementedException, system.resources.MissingManifestResourceException, system.ObjectDisposedException, system.InvalidOperationException {
if (classInstance == null)
throw new UnsupportedOperationException("classInstance is null.");
try {
JCObject objCreateProcessingInstruction = (JCObject)classInstance.Invoke("CreateProcessingInstruction", target, data);
return new XmlProcessingInstruction(objCreateProcessingInstruction);
} catch (JCNativeException jcne) {
throw translateException(jcne);
}
}
public XmlSignificantWhitespace CreateSignificantWhitespace(java.lang.String text) throws Throwable, system.ArgumentNullException, system.ArgumentException, system.resources.MissingManifestResourceException, system.NotImplementedException, system.ObjectDisposedException, system.InvalidOperationException, system.NotSupportedException, system.IndexOutOfRangeException {
if (classInstance == null)
throw new UnsupportedOperationException("classInstance is null.");
try {
JCObject objCreateSignificantWhitespace = (JCObject)classInstance.Invoke("CreateSignificantWhitespace", text);
return new XmlSignificantWhitespace(objCreateSignificantWhitespace);
} catch (JCNativeException jcne) {
throw translateException(jcne);
}
}
public XmlText CreateTextNode(java.lang.String text) throws Throwable, system.ArgumentNullException, system.ArgumentException, system.resources.MissingManifestResourceException, system.NotImplementedException, system.ObjectDisposedException, system.InvalidOperationException {
if (classInstance == null)
throw new UnsupportedOperationException("classInstance is null.");
try {
JCObject objCreateTextNode = (JCObject)classInstance.Invoke("CreateTextNode", text);
return new XmlText(objCreateTextNode);
} catch (JCNativeException jcne) {
throw translateException(jcne);
}
}
public XmlWhitespace CreateWhitespace(java.lang.String text) throws Throwable, system.ArgumentNullException, system.ArgumentException, system.resources.MissingManifestResourceException, system.NotImplementedException, system.ObjectDisposedException, system.InvalidOperationException, system.NotSupportedException, system.IndexOutOfRangeException {
if (classInstance == null)
throw new UnsupportedOperationException("classInstance is null.");
try {
JCObject objCreateWhitespace = (JCObject)classInstance.Invoke("CreateWhitespace", text);
return new XmlWhitespace(objCreateWhitespace);
} catch (JCNativeException jcne) {
throw translateException(jcne);
}
}
public XPathNavigator CreateNavigator() throws Throwable, system.ArgumentOutOfRangeException, system.ArgumentNullException, system.ArgumentException, system.resources.MissingManifestResourceException, system.ObjectDisposedException, system.InvalidOperationException, system.IndexOutOfRangeException {
if (classInstance == null)
throw new UnsupportedOperationException("classInstance is null.");
try {
JCObject objCreateNavigator = (JCObject)classInstance.Invoke("CreateNavigator");
return new XPathNavigator(objCreateNavigator);
} catch (JCNativeException jcne) {
throw translateException(jcne);
}
}
public void Load(Stream inStream) throws Throwable, system.ArgumentException, system.NotImplementedException, system.NotSupportedException, system.IndexOutOfRangeException, system.ObjectDisposedException, system.InvalidOperationException, system.ArgumentNullException, system.security.SecurityException, system.UnauthorizedAccessException, system.io.IOException, system.ArgumentOutOfRangeException, system.xml.XmlException, system.resources.MissingManifestResourceException, system.xml.schema.XmlSchemaException, system.NullReferenceException {
if (classInstance == null)
throw new UnsupportedOperationException("classInstance is null.");
try {
classInstance.Invoke("Load", inStream == null ? null : inStream.getJCOInstance());
} catch (JCNativeException jcne) {
throw translateException(jcne);
}
}
public void Load(TextReader txtReader) throws Throwable, system.ArgumentException, system.NotImplementedException, system.NotSupportedException, system.IndexOutOfRangeException, system.ObjectDisposedException, system.InvalidOperationException, system.ArgumentNullException, system.security.SecurityException, system.UnauthorizedAccessException, system.io.IOException, system.ArgumentOutOfRangeException, system.xml.XmlException, system.resources.MissingManifestResourceException, system.xml.schema.XmlSchemaException, system.NullReferenceException {
if (classInstance == null)
throw new UnsupportedOperationException("classInstance is null.");
try {
classInstance.Invoke("Load", txtReader == null ? null : txtReader.getJCOInstance());
} catch (JCNativeException jcne) {
throw translateException(jcne);
}
}
public void Load(java.lang.String filename) throws Throwable, system.ArgumentException, system.InvalidOperationException, system.NotImplementedException, system.NotSupportedException, system.IndexOutOfRangeException, system.ObjectDisposedException, system.ArgumentNullException, system.ArgumentOutOfRangeException, system.security.SecurityException, system.UnauthorizedAccessException, system.io.IOException, system.globalization.CultureNotFoundException, system.resources.MissingManifestResourceException, system.UriFormatException, system.io.PathTooLongException, system.OutOfMemoryException, system.xml.XmlException, system.xml.schema.XmlSchemaException, system.NullReferenceException {
if (classInstance == null)
throw new UnsupportedOperationException("classInstance is null.");
try {
classInstance.Invoke("Load", filename);
} catch (JCNativeException jcne) {
throw translateException(jcne);
}
}
public void Load(XmlReader reader) throws Throwable, system.ArgumentNullException, system.ArgumentException, system.NotImplementedException, system.globalization.CultureNotFoundException, system.IndexOutOfRangeException, system.ArgumentOutOfRangeException, system.resources.MissingManifestResourceException, system.ObjectDisposedException, system.InvalidOperationException, system.xml.schema.XmlSchemaException, system.xml.XmlException, system.NullReferenceException {
if (classInstance == null)
throw new UnsupportedOperationException("classInstance is null.");
try {
classInstance.Invoke("Load", reader == null ? null : reader.getJCOInstance());
} catch (JCNativeException jcne) {
throw translateException(jcne);
}
}
public void LoadXml(java.lang.String xml) throws Throwable, system.ArgumentNullException, system.ArgumentException, system.NotImplementedException, system.NotSupportedException, system.IndexOutOfRangeException, system.ObjectDisposedException, system.InvalidOperationException, system.security.SecurityException, system.UnauthorizedAccessException, system.io.IOException, system.ArgumentOutOfRangeException, system.xml.XmlException, system.resources.MissingManifestResourceException, system.xml.schema.XmlSchemaException, system.NullReferenceException {
if (classInstance == null)
throw new UnsupportedOperationException("classInstance is null.");
try {
classInstance.Invoke("LoadXml", xml);
} catch (JCNativeException jcne) {
throw translateException(jcne);
}
}
public void Save(Stream outStream) throws Throwable, system.ArgumentNullException, system.ObjectDisposedException, system.threading.AbandonedMutexException, system.ArgumentException, system.ArgumentOutOfRangeException, system.FormatException, system.InvalidOperationException, system.NotSupportedException, system.NotImplementedException, system.IndexOutOfRangeException {
if (classInstance == null)
throw new UnsupportedOperationException("classInstance is null.");
try {
classInstance.Invoke("Save", outStream == null ? null : outStream.getJCOInstance());
} catch (JCNativeException jcne) {
throw translateException(jcne);
}
}
public void Save(TextWriter writer) throws Throwable, system.ArgumentException, system.InvalidOperationException, system.NotImplementedException, system.NotSupportedException, system.IndexOutOfRangeException, system.ObjectDisposedException {
if (classInstance == null)
throw new UnsupportedOperationException("classInstance is null.");
try {
classInstance.Invoke("Save", writer == null ? null : writer.getJCOInstance());
} catch (JCNativeException jcne) {
throw translateException(jcne);
}
}
public void Save(java.lang.String filename) throws Throwable, system.ArgumentNullException, system.ArgumentException, system.InvalidOperationException, system.MissingMethodException, system.reflection.TargetInvocationException, system.NotImplementedException, system.NotSupportedException, system.ArgumentOutOfRangeException, system.globalization.CultureNotFoundException, system.resources.MissingManifestResourceException, system.ObjectDisposedException, system.FormatException, system.xml.XmlException, system.io.PathTooLongException, system.io.FileNotFoundException, system.io.DirectoryNotFoundException, system.UnauthorizedAccessException, system.io.IOException, system.io.DriveNotFoundException, system.OperationCanceledException, system.NullReferenceException, system.security.SecurityException, system.IndexOutOfRangeException {
if (classInstance == null)
throw new UnsupportedOperationException("classInstance is null.");
try {
classInstance.Invoke("Save", filename);
} catch (JCNativeException jcne) {
throw translateException(jcne);
}
}
public void Save(XmlWriter w) throws Throwable {
if (classInstance == null)
throw new UnsupportedOperationException("classInstance is null.");
try {
classInstance.Invoke("Save", w == null ? null : w.getJCOInstance());
} catch (JCNativeException jcne) {
throw translateException(jcne);
}
}
public void Validate(ValidationEventHandler validationEventHandler) throws Throwable, system.ArgumentNullException, system.ArgumentException, system.InvalidOperationException, system.MissingMethodException, system.reflection.TargetInvocationException, system.NotImplementedException, system.ArgumentOutOfRangeException, system.globalization.CultureNotFoundException, system.resources.MissingManifestResourceException, system.ObjectDisposedException, system.IndexOutOfRangeException, system.xml.schema.XmlSchemaException, system.xml.XmlException, system.NotSupportedException, system.MulticastNotSupportedException, system.NullReferenceException, system.FormatException, system.xml.schema.XmlSchemaValidationException {
if (classInstance == null)
throw new UnsupportedOperationException("classInstance is null.");
try {
classInstance.Invoke("Validate", validationEventHandler);
} catch (JCNativeException jcne) {
throw translateException(jcne);
}
}
public void Validate(ValidationEventHandler validationEventHandler, XmlNode nodeToValidate) throws Throwable, system.ArgumentNullException, system.ArgumentException, system.InvalidOperationException, system.MissingMethodException, system.reflection.TargetInvocationException, system.NotImplementedException, system.NotSupportedException, system.ArgumentOutOfRangeException, system.globalization.CultureNotFoundException, system.resources.MissingManifestResourceException, system.ObjectDisposedException, system.FormatException, system.xml.schema.XmlSchemaException, system.xml.XmlException, system.IndexOutOfRangeException, system.MulticastNotSupportedException, system.NullReferenceException, system.xml.schema.XmlSchemaValidationException, system.UriFormatException {
if (classInstance == null)
throw new UnsupportedOperationException("classInstance is null.");
try {
classInstance.Invoke("Validate", validationEventHandler, nodeToValidate == null ? null : nodeToValidate.getJCOInstance());
} catch (JCNativeException jcne) {
throw translateException(jcne);
}
}
public void WriteContentTo(XmlWriter xw) throws Throwable {
if (classInstance == null)
throw new UnsupportedOperationException("classInstance is null.");
try {
classInstance.Invoke("WriteContentTo", xw == null ? null : xw.getJCOInstance());
} catch (JCNativeException jcne) {
throw translateException(jcne);
}
}
public void WriteTo(XmlWriter w) throws Throwable {
if (classInstance == null)
throw new UnsupportedOperationException("classInstance is null.");
try {
classInstance.Invoke("WriteTo", w == null ? null : w.getJCOInstance());
} catch (JCNativeException jcne) {
throw translateException(jcne);
}
}
// Properties section
public boolean getPreserveWhitespace() throws Throwable {
if (classInstance == null)
throw new UnsupportedOperationException("classInstance is null.");
try {
return (boolean)classInstance.Get("PreserveWhitespace");
} catch (JCNativeException jcne) {
throw translateException(jcne);
}
}
public void setPreserveWhitespace(boolean PreserveWhitespace) throws Throwable {
if (classInstance == null)
throw new UnsupportedOperationException("classInstance is null.");
try {
classInstance.Set("PreserveWhitespace", PreserveWhitespace);
} catch (JCNativeException jcne) {
throw translateException(jcne);
}
}
public XmlSchemaSet getSchemas() throws Throwable, system.ArgumentNullException, system.ArgumentException, system.InvalidOperationException, system.MissingMethodException, system.reflection.TargetInvocationException, system.ArgumentOutOfRangeException, system.FormatException, system.xml.schema.XmlSchemaException, system.ObjectDisposedException, system.security.SecurityException, system.UnauthorizedAccessException, system.io.IOException, system.resources.MissingManifestResourceException, system.xml.XmlException {
if (classInstance == null)
throw new UnsupportedOperationException("classInstance is null.");
try {
JCObject val = (JCObject)classInstance.Get("Schemas");
return new XmlSchemaSet(val);
} catch (JCNativeException jcne) {
throw translateException(jcne);
}
}
public void setSchemas(XmlSchemaSet Schemas) throws Throwable {
if (classInstance == null)
throw new UnsupportedOperationException("classInstance is null.");
try {
classInstance.Set("Schemas", Schemas == null ? null : Schemas.getJCOInstance());
} catch (JCNativeException jcne) {
throw translateException(jcne);
}
}
public XmlDocumentType getDocumentType() throws Throwable {
if (classInstance == null)
throw new UnsupportedOperationException("classInstance is null.");
try {
JCObject val = (JCObject)classInstance.Get("DocumentType");
return new XmlDocumentType(val);
} catch (JCNativeException jcne) {
throw translateException(jcne);
}
}
public XmlElement getDocumentElement() throws Throwable {
if (classInstance == null)
throw new UnsupportedOperationException("classInstance is null.");
try {
JCObject val = (JCObject)classInstance.Get("DocumentElement");
return new XmlElement(val);
} catch (JCNativeException jcne) {
throw translateException(jcne);
}
}
public XmlImplementation getImplementation() throws Throwable {
if (classInstance == null)
throw new UnsupportedOperationException("classInstance is null.");
try {
JCObject val = (JCObject)classInstance.Get("Implementation");
return new XmlImplementation(val);
} catch (JCNativeException jcne) {
throw translateException(jcne);
}
}
public XmlNameTable getNameTable() throws Throwable {
if (classInstance == null)
throw new UnsupportedOperationException("classInstance is null.");
try {
JCObject val = (JCObject)classInstance.Get("NameTable");
return new XmlNameTable(val);
} catch (JCNativeException jcne) {
throw translateException(jcne);
}
}
public void setXmlResolver(XmlResolver XmlResolver) throws Throwable, system.NullReferenceException, system.ArgumentException, system.ArgumentOutOfRangeException, system.NotSupportedException, system.ArgumentNullException, system.security.SecurityException, system.InvalidOperationException, system.MissingMethodException, system.reflection.TargetInvocationException, system.NotImplementedException, system.globalization.CultureNotFoundException, system.resources.MissingManifestResourceException, system.ObjectDisposedException {
if (classInstance == null)
throw new UnsupportedOperationException("classInstance is null.");
try {
classInstance.Set("XmlResolver", XmlResolver == null ? null : XmlResolver.getJCOInstance());
} catch (JCNativeException jcne) {
throw translateException(jcne);
}
}
// Instance Events section
public void addNodeChanged(XmlNodeChangedEventHandler handler) throws Throwable {
if (classInstance == null)
throw new UnsupportedOperationException("classInstance is null.");
try {
classInstance.RegisterEventListener("NodeChanged", handler);
} catch (JCNativeException jcne) {
throw translateException(jcne);
}
}
public void removeNodeChanged(XmlNodeChangedEventHandler handler) throws Throwable {
if (classInstance == null)
throw new UnsupportedOperationException("classInstance is null.");
try {
classInstance.UnregisterEventListener("NodeChanged", handler);
} catch (JCNativeException jcne) {
throw translateException(jcne);
}
}
public void addNodeChanging(XmlNodeChangedEventHandler handler) throws Throwable {
if (classInstance == null)
throw new UnsupportedOperationException("classInstance is null.");
try {
classInstance.RegisterEventListener("NodeChanging", handler);
} catch (JCNativeException jcne) {
throw translateException(jcne);
}
}
public void removeNodeChanging(XmlNodeChangedEventHandler handler) throws Throwable {
if (classInstance == null)
throw new UnsupportedOperationException("classInstance is null.");
try {
classInstance.UnregisterEventListener("NodeChanging", handler);
} catch (JCNativeException jcne) {
throw translateException(jcne);
}
}
public void addNodeInserted(XmlNodeChangedEventHandler handler) throws Throwable {
if (classInstance == null)
throw new UnsupportedOperationException("classInstance is null.");
try {
classInstance.RegisterEventListener("NodeInserted", handler);
} catch (JCNativeException jcne) {
throw translateException(jcne);
}
}
public void removeNodeInserted(XmlNodeChangedEventHandler handler) throws Throwable {
if (classInstance == null)
throw new UnsupportedOperationException("classInstance is null.");
try {
classInstance.UnregisterEventListener("NodeInserted", handler);
} catch (JCNativeException jcne) {
throw translateException(jcne);
}
}
public void addNodeInserting(XmlNodeChangedEventHandler handler) throws Throwable {
if (classInstance == null)
throw new UnsupportedOperationException("classInstance is null.");
try {
classInstance.RegisterEventListener("NodeInserting", handler);
} catch (JCNativeException jcne) {
throw translateException(jcne);
}
}
public void removeNodeInserting(XmlNodeChangedEventHandler handler) throws Throwable {
if (classInstance == null)
throw new UnsupportedOperationException("classInstance is null.");
try {
classInstance.UnregisterEventListener("NodeInserting", handler);
} catch (JCNativeException jcne) {
throw translateException(jcne);
}
}
public void addNodeRemoved(XmlNodeChangedEventHandler handler) throws Throwable {
if (classInstance == null)
throw new UnsupportedOperationException("classInstance is null.");
try {
classInstance.RegisterEventListener("NodeRemoved", handler);
} catch (JCNativeException jcne) {
throw translateException(jcne);
}
}
public void removeNodeRemoved(XmlNodeChangedEventHandler handler) throws Throwable {
if (classInstance == null)
throw new UnsupportedOperationException("classInstance is null.");
try {
classInstance.UnregisterEventListener("NodeRemoved", handler);
} catch (JCNativeException jcne) {
throw translateException(jcne);
}
}
public void addNodeRemoving(XmlNodeChangedEventHandler handler) throws Throwable {
if (classInstance == null)
throw new UnsupportedOperationException("classInstance is null.");
try {
classInstance.RegisterEventListener("NodeRemoving", handler);
} catch (JCNativeException jcne) {
throw translateException(jcne);
}
}
public void removeNodeRemoving(XmlNodeChangedEventHandler handler) throws Throwable {
if (classInstance == null)
throw new UnsupportedOperationException("classInstance is null.");
try {
classInstance.UnregisterEventListener("NodeRemoving", handler);
} catch (JCNativeException jcne) {
throw translateException(jcne);
}
}
}