Package system.xml.linq
Class XDocument
- java.lang.Object
-
- org.mases.jcobridge.netreflection.NetObject
-
- system.xml.linq.XObject
-
- system.xml.linq.XNode
-
- system.xml.linq.XContainer
-
- system.xml.linq.XDocument
-
- All Implemented Interfaces:
IJCOBridgeReflected
public class XDocument extends XContainer
The base .NET class managing System.Xml.Linq.XDocument, System.Xml.Linq, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089..NET documentation at https://docs.microsoft.com/en-us/dotnet/api/System.Xml.Linq.XDocument
Powered by JCOBridge: more info at https://www.jcobridge.com
- Author:
- MASES s.r.l https://masesgroup.com
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringassemblyFullNameFully assembly qualified name: System.Xml.Linq, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089static java.lang.StringassemblyShortNameAssembly name: System.Xml.Linqstatic java.lang.StringclassNameQualified class name: System.Xml.Linq.XDocumentstatic JCTypeclassTypeThe type managed from JCOBridge.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static XDocumentcast(IJCOBridgeReflected from)Try to cast theIJCOBridgeReflectedinstance intoXDocument, a cast assert is made to check if types are compatible.XDeclarationgetDeclaration()XDocumentTypegetDocumentType()java.lang.StringgetJCOAssemblyName()Returns the reflected Assembly namejava.lang.StringgetJCOClassName()Returns the reflected Class namejava.lang.ObjectgetJCOInstance()Returns the instantiated classjava.lang.StringgetJCOObjectName()Returns the reflected Class name used to build the objectJCTypegetJCOType()Returns the instantiated class TypeXElementgetRoot()static XDocumentLoad(java.lang.String uri)static XDocumentLoad(java.lang.String uri, LoadOptions options)static XDocumentLoad(Stream stream)static XDocumentLoad(Stream stream, LoadOptions options)static XDocumentLoad(TextReader textReader)static XDocumentLoad(TextReader textReader, LoadOptions options)static XDocumentLoad(XmlReader reader)static XDocumentLoad(XmlReader reader, LoadOptions options)static XDocumentParse(java.lang.String text)static XDocumentParse(java.lang.String text, LoadOptions options)voidSave(java.lang.String fileName)voidSave(java.lang.String fileName, SaveOptions options)voidSave(Stream stream)voidSave(Stream stream, SaveOptions options)voidSave(TextWriter textWriter)voidSave(TextWriter textWriter, SaveOptions options)voidSave(XmlWriter writer)voidsetDeclaration(XDeclaration Declaration)voidsetJCOInstance(JCObject instance)voidWriteTo(XmlWriter writer)-
Methods inherited from class system.xml.linq.XContainer
Add, Add, AddFirst, AddFirst, CreateWriter, Element, getFirstNode, getLastNode, RemoveNodes, ReplaceNodes, ReplaceNodes
-
Methods inherited from class system.xml.linq.XNode
AddAfterSelf, AddAfterSelf, AddBeforeSelf, AddBeforeSelf, CompareDocumentOrder, CreateReader, CreateReader, DeepEquals, getDocumentOrderComparer, getEqualityComparer, getNextNode, getPreviousNode, IsAfter, IsBefore, ReadFrom, Remove, ReplaceWith, ReplaceWith, ToString
-
Methods inherited from class system.xml.linq.XObject
AddAnnotation, Annotation, getBaseUri, getDocument, getNodeType, getParent, RemoveAnnotations
-
-
-
-
Field Detail
-
assemblyFullName
public static final java.lang.String assemblyFullName
Fully assembly qualified name: System.Xml.Linq, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089- See Also:
- Constant Field Values
-
assemblyShortName
public static final java.lang.String assemblyShortName
Assembly name: System.Xml.Linq- See Also:
- Constant Field Values
-
className
public static final java.lang.String className
Qualified class name: System.Xml.Linq.XDocument- See Also:
- Constant Field Values
-
-
Constructor Detail
-
XDocument
public XDocument(java.lang.Object instance) throws java.lang.ThrowableInternal constructor. Use with caution- Throws:
java.lang.Throwable
-
XDocument
public XDocument() throws java.lang.Throwable- Throws:
java.lang.Throwable
-
XDocument
public XDocument(NetObject... content) throws java.lang.Throwable, ArgumentNullException, IndexOutOfRangeException, ArgumentOutOfRangeException, ArgumentException, MissingManifestResourceException, NotImplementedException, ObjectDisposedException, InvalidOperationException, OverflowException
-
XDocument
public XDocument(XDeclaration declaration, NetObject... content) throws java.lang.Throwable, ArgumentNullException, IndexOutOfRangeException, ArgumentOutOfRangeException, ArgumentException, MissingManifestResourceException, ObjectDisposedException, InvalidOperationException, OverflowException
-
XDocument
public XDocument(XDocument other) throws java.lang.Throwable, ArgumentNullException
- Throws:
java.lang.ThrowableArgumentNullException
-
-
Method Detail
-
getJCOAssemblyName
public java.lang.String getJCOAssemblyName()
Description copied from interface:IJCOBridgeReflectedReturns the reflected Assembly name- Specified by:
getJCOAssemblyNamein interfaceIJCOBridgeReflected- Overrides:
getJCOAssemblyNamein classXContainer- Returns:
- A
Stringrepresenting the Fullname of reflected Assembly
-
getJCOClassName
public java.lang.String getJCOClassName()
Description copied from interface:IJCOBridgeReflectedReturns the reflected Class name- Specified by:
getJCOClassNamein interfaceIJCOBridgeReflected- Overrides:
getJCOClassNamein classXContainer- Returns:
- A
Stringrepresenting the Fullname of reflected Class
-
getJCOObjectName
public java.lang.String getJCOObjectName()
Description copied from interface:IJCOBridgeReflectedReturns the reflected Class name used to build the object- Specified by:
getJCOObjectNamein interfaceIJCOBridgeReflected- Overrides:
getJCOObjectNamein classXContainer- Returns:
- A
Stringrepresenting the name used to allocated the object in CLR context
-
getJCOInstance
public java.lang.Object getJCOInstance()
Description copied from interface:IJCOBridgeReflectedReturns the instantiated class- Specified by:
getJCOInstancein interfaceIJCOBridgeReflected- Overrides:
getJCOInstancein classXContainer- Returns:
- An
Objectrepresenting the CLR instance of the instantiated Class
-
setJCOInstance
public void setJCOInstance(JCObject instance)
- Overrides:
setJCOInstancein classXContainer
-
getJCOType
public JCType getJCOType()
Description copied from interface:IJCOBridgeReflectedReturns the instantiated class Type- Specified by:
getJCOTypein interfaceIJCOBridgeReflected- Overrides:
getJCOTypein classXContainer- Returns:
- A
JCTyperepresenting the CLR Type of the instantiated Class
-
cast
public static XDocument cast(IJCOBridgeReflected from) throws java.lang.Throwable
Try to cast theIJCOBridgeReflectedinstance intoXDocument, a cast assert is made to check if types are compatible.- Parameters:
from-IJCOBridgeReflectedinstance to be casted- Returns:
XDocumentinstance- Throws:
java.lang.Throwable- in case of error during cast operation
-
Load
public static XDocument Load(Stream stream) throws java.lang.Throwable, InvalidOperationException, SecurityException, UnauthorizedAccessException, IOException, ArgumentNullException, MissingManifestResourceException, ArgumentOutOfRangeException, XmlException, NotImplementedException, NotSupportedException, IndexOutOfRangeException, ArgumentException, FormatException, OverflowException, CultureNotFoundException
- Throws:
java.lang.ThrowableInvalidOperationExceptionSecurityExceptionUnauthorizedAccessExceptionIOExceptionArgumentNullExceptionMissingManifestResourceExceptionArgumentOutOfRangeExceptionXmlExceptionNotImplementedExceptionNotSupportedExceptionIndexOutOfRangeExceptionArgumentExceptionFormatExceptionOverflowExceptionCultureNotFoundException
-
Load
public static XDocument Load(Stream stream, LoadOptions options) throws java.lang.Throwable, InvalidOperationException, ArgumentNullException, ArgumentException, ObjectDisposedException, SecurityException, UnauthorizedAccessException, IOException, MissingManifestResourceException, ArgumentOutOfRangeException, XmlException, NotImplementedException, NotSupportedException, IndexOutOfRangeException, FormatException, XmlSchemaException, OverflowException, CultureNotFoundException
- Throws:
java.lang.ThrowableInvalidOperationExceptionArgumentNullExceptionArgumentExceptionObjectDisposedExceptionSecurityExceptionUnauthorizedAccessExceptionIOExceptionMissingManifestResourceExceptionArgumentOutOfRangeExceptionXmlExceptionNotImplementedExceptionNotSupportedExceptionIndexOutOfRangeExceptionFormatExceptionXmlSchemaExceptionOverflowExceptionCultureNotFoundException
-
Load
public static XDocument Load(TextReader textReader) throws java.lang.Throwable, InvalidOperationException, SecurityException, UnauthorizedAccessException, IOException, ArgumentNullException, MissingManifestResourceException, ArgumentOutOfRangeException, XmlException, NotImplementedException, NotSupportedException, IndexOutOfRangeException, FormatException, ArgumentException, OverflowException, CultureNotFoundException
- Throws:
java.lang.ThrowableInvalidOperationExceptionSecurityExceptionUnauthorizedAccessExceptionIOExceptionArgumentNullExceptionMissingManifestResourceExceptionArgumentOutOfRangeExceptionXmlExceptionNotImplementedExceptionNotSupportedExceptionIndexOutOfRangeExceptionFormatExceptionArgumentExceptionOverflowExceptionCultureNotFoundException
-
Load
public static XDocument Load(TextReader textReader, LoadOptions options) throws java.lang.Throwable, InvalidOperationException, ArgumentNullException, ArgumentException, ObjectDisposedException, SecurityException, UnauthorizedAccessException, IOException, MissingManifestResourceException, ArgumentOutOfRangeException, XmlException, NotImplementedException, NotSupportedException, IndexOutOfRangeException, FormatException, XmlSchemaException, OverflowException, CultureNotFoundException
- Throws:
java.lang.ThrowableInvalidOperationExceptionArgumentNullExceptionArgumentExceptionObjectDisposedExceptionSecurityExceptionUnauthorizedAccessExceptionIOExceptionMissingManifestResourceExceptionArgumentOutOfRangeExceptionXmlExceptionNotImplementedExceptionNotSupportedExceptionIndexOutOfRangeExceptionFormatExceptionXmlSchemaExceptionOverflowExceptionCultureNotFoundException
-
Load
public static XDocument Load(java.lang.String uri) throws java.lang.Throwable, InvalidOperationException, SecurityException, UnauthorizedAccessException, IOException, ArgumentNullException, MissingManifestResourceException, ArgumentOutOfRangeException, XmlException, ArgumentException, NotImplementedException, NotSupportedException, IndexOutOfRangeException, AggregateException, FormatException, OverflowException, CultureNotFoundException
- Throws:
java.lang.ThrowableInvalidOperationExceptionSecurityExceptionUnauthorizedAccessExceptionIOExceptionArgumentNullExceptionMissingManifestResourceExceptionArgumentOutOfRangeExceptionXmlExceptionArgumentExceptionNotImplementedExceptionNotSupportedExceptionIndexOutOfRangeExceptionAggregateExceptionFormatExceptionOverflowExceptionCultureNotFoundException
-
Load
public static XDocument Load(java.lang.String uri, LoadOptions options) throws java.lang.Throwable, InvalidOperationException, ArgumentNullException, ArgumentException, ObjectDisposedException, SecurityException, UnauthorizedAccessException, IOException, MissingManifestResourceException, ArgumentOutOfRangeException, XmlException, NotImplementedException, NotSupportedException, IndexOutOfRangeException, TaskSchedulerException, OperationCanceledException, AggregateException, FormatException, XmlSchemaException, OverflowException, CultureNotFoundException
- Throws:
java.lang.ThrowableInvalidOperationExceptionArgumentNullExceptionArgumentExceptionObjectDisposedExceptionSecurityExceptionUnauthorizedAccessExceptionIOExceptionMissingManifestResourceExceptionArgumentOutOfRangeExceptionXmlExceptionNotImplementedExceptionNotSupportedExceptionIndexOutOfRangeExceptionTaskSchedulerExceptionOperationCanceledExceptionAggregateExceptionFormatExceptionXmlSchemaExceptionOverflowExceptionCultureNotFoundException
-
Load
public static XDocument Load(XmlReader reader) throws java.lang.Throwable, ArgumentNullException, ArgumentOutOfRangeException, ArgumentException, NotImplementedException, MissingManifestResourceException, ObjectDisposedException, InvalidOperationException, OverflowException, NotSupportedException
-
Load
public static XDocument Load(XmlReader reader, LoadOptions options) throws java.lang.Throwable, ArgumentNullException, ArgumentOutOfRangeException, ArgumentException, NotImplementedException, CultureNotFoundException, IndexOutOfRangeException, MissingManifestResourceException, ObjectDisposedException, InvalidOperationException, OverflowException, NotSupportedException
-
Parse
public static XDocument Parse(java.lang.String text) throws java.lang.Throwable, ArgumentNullException, InvalidOperationException, SecurityException, UnauthorizedAccessException, IOException, MissingManifestResourceException, ArgumentOutOfRangeException, XmlException, NotImplementedException, NotSupportedException, IndexOutOfRangeException, FormatException, ArgumentException, OverflowException, CultureNotFoundException
- Throws:
java.lang.ThrowableArgumentNullExceptionInvalidOperationExceptionSecurityExceptionUnauthorizedAccessExceptionIOExceptionMissingManifestResourceExceptionArgumentOutOfRangeExceptionXmlExceptionNotImplementedExceptionNotSupportedExceptionIndexOutOfRangeExceptionFormatExceptionArgumentExceptionOverflowExceptionCultureNotFoundException
-
Parse
public static XDocument Parse(java.lang.String text, LoadOptions options) throws java.lang.Throwable, ArgumentNullException, InvalidOperationException, ArgumentException, ObjectDisposedException, SecurityException, UnauthorizedAccessException, IOException, MissingManifestResourceException, ArgumentOutOfRangeException, XmlException, NotImplementedException, NotSupportedException, IndexOutOfRangeException, FormatException, XmlSchemaException, OverflowException, CultureNotFoundException
- Throws:
java.lang.ThrowableArgumentNullExceptionInvalidOperationExceptionArgumentExceptionObjectDisposedExceptionSecurityExceptionUnauthorizedAccessExceptionIOExceptionMissingManifestResourceExceptionArgumentOutOfRangeExceptionXmlExceptionNotImplementedExceptionNotSupportedExceptionIndexOutOfRangeExceptionFormatExceptionXmlSchemaExceptionOverflowExceptionCultureNotFoundException
-
Save
public void Save(Stream stream) throws java.lang.Throwable, ArgumentNullException, InvalidOperationException, ArgumentOutOfRangeException, IndexOutOfRangeException, MissingManifestResourceException, XmlException, ObjectDisposedException, AbandonedMutexException, ArgumentException, NotSupportedException, NotImplementedException
-
Save
public void Save(Stream stream, SaveOptions options) throws java.lang.Throwable, ArgumentOutOfRangeException, IndexOutOfRangeException, ArgumentNullException, MissingManifestResourceException, InvalidOperationException, XmlException, ObjectDisposedException, AbandonedMutexException, FormatException, ArgumentException, NotSupportedException, NotImplementedException
- Throws:
java.lang.ThrowableArgumentOutOfRangeExceptionIndexOutOfRangeExceptionArgumentNullExceptionMissingManifestResourceExceptionInvalidOperationExceptionXmlExceptionObjectDisposedExceptionAbandonedMutexExceptionFormatExceptionArgumentExceptionNotSupportedExceptionNotImplementedException
-
Save
public void Save(TextWriter textWriter) throws java.lang.Throwable, ArgumentNullException, InvalidOperationException, ArgumentOutOfRangeException, IndexOutOfRangeException, MissingManifestResourceException, XmlException, NotImplementedException, NotSupportedException, ArgumentException
-
Save
public void Save(TextWriter textWriter, SaveOptions options) throws java.lang.Throwable, ArgumentOutOfRangeException, IndexOutOfRangeException, ArgumentNullException, MissingManifestResourceException, InvalidOperationException, XmlException, NotImplementedException, NotSupportedException, ObjectDisposedException, ArgumentException
-
Save
public void Save(java.lang.String fileName) throws java.lang.Throwable, ArgumentNullException, InvalidOperationException, ArgumentOutOfRangeException, IndexOutOfRangeException, MissingManifestResourceException, XmlException, ObjectDisposedException, AbandonedMutexException, ArgumentException, NotSupportedException, PathTooLongException, CultureNotFoundException, NullReferenceException, SecurityException, IOException- Throws:
java.lang.ThrowableArgumentNullExceptionInvalidOperationExceptionArgumentOutOfRangeExceptionIndexOutOfRangeExceptionMissingManifestResourceExceptionXmlExceptionObjectDisposedExceptionAbandonedMutexExceptionArgumentExceptionNotSupportedExceptionPathTooLongExceptionCultureNotFoundExceptionNullReferenceExceptionSecurityExceptionIOException
-
Save
public void Save(java.lang.String fileName, SaveOptions options) throws java.lang.Throwable, ArgumentOutOfRangeException, IndexOutOfRangeException, ArgumentNullException, MissingManifestResourceException, InvalidOperationException, XmlException, ObjectDisposedException, AbandonedMutexException, FormatException, ArgumentException, NotSupportedException, PathTooLongException, FileNotFoundException, DirectoryNotFoundException, UnauthorizedAccessException, IOException, DriveNotFoundException, OperationCanceledException, NullReferenceException, SecurityException, NotImplementedException- Throws:
java.lang.ThrowableArgumentOutOfRangeExceptionIndexOutOfRangeExceptionArgumentNullExceptionMissingManifestResourceExceptionInvalidOperationExceptionXmlExceptionObjectDisposedExceptionAbandonedMutexExceptionFormatExceptionArgumentExceptionNotSupportedExceptionPathTooLongExceptionFileNotFoundExceptionDirectoryNotFoundExceptionUnauthorizedAccessExceptionIOExceptionDriveNotFoundExceptionOperationCanceledExceptionNullReferenceExceptionSecurityExceptionNotImplementedException
-
Save
public void Save(XmlWriter writer) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
WriteTo
public void WriteTo(XmlWriter writer) throws java.lang.Throwable, ArgumentNullException
- Overrides:
WriteToin classXNode- Throws:
java.lang.ThrowableArgumentNullException
-
getDeclaration
public XDeclaration getDeclaration() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
setDeclaration
public void setDeclaration(XDeclaration Declaration) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
getDocumentType
public XDocumentType getDocumentType() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
getRoot
public XElement getRoot() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
-