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.Private.Xml.Linq, Version=6.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51..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
- Version:
- 1.14.3.0
- Author:
- MASES s.r.l https://masesgroup.com
-
-
Field Summary
Fields Modifier and Type Field Description static String
assemblyFullName
Fully assembly qualified name: System.Private.Xml.Linq, Version=6.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51static String
assemblyShortName
Assembly name: System.Private.Xml.Linqstatic String
className
Qualified class name: System.Xml.Linq.XDocumentstatic JCType
classType
The type managed from JCOBridge.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static XDocument
cast(IJCOBridgeReflected from)
Try to cast theIJCOBridgeReflected
instance intoXDocument
, a cast assert is made to check if types are compatible.XDeclaration
getDeclaration()
XDocumentType
getDocumentType()
String
getJCOAssemblyName()
Returns the reflected Assembly nameString
getJCOClassName()
Returns the reflected Class nameObject
getJCOInstance()
Returns the instantiated classString
getJCOObjectName()
Returns the reflected Class name used to build the objectJCType
getJCOType()
Returns the instantiated class TypeXElement
getRoot()
static XDocument
Load(String uri)
static XDocument
Load(String uri, LoadOptions options)
static XDocument
Load(Stream stream)
static XDocument
Load(Stream stream, LoadOptions options)
static XDocument
Load(TextReader textReader)
static XDocument
Load(TextReader textReader, LoadOptions options)
static XDocument
Load(XmlReader reader)
static XDocument
Load(XmlReader reader, LoadOptions options)
static XDocument
Parse(String text)
static XDocument
Parse(String text, LoadOptions options)
void
Save(String fileName)
void
Save(String fileName, SaveOptions options)
void
Save(Stream stream)
void
Save(Stream stream, SaveOptions options)
void
Save(TextWriter textWriter)
void
Save(TextWriter textWriter, SaveOptions options)
void
Save(XmlWriter writer)
Task
SaveAsync(Stream stream, SaveOptions options, CancellationToken cancellationToken)
Task
SaveAsync(TextWriter textWriter, SaveOptions options, CancellationToken cancellationToken)
Task
SaveAsync(XmlWriter writer, CancellationToken cancellationToken)
void
setDeclaration(XDeclaration Declaration)
void
setJCOInstance(JCObject instance)
void
WriteTo(XmlWriter writer)
Task
WriteToAsync(XmlWriter writer, CancellationToken cancellationToken)
-
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, HasLineInfo, RemoveAnnotations
-
Methods inherited from class org.mases.jcobridge.netreflection.NetObject
Equals, Equals, GetHashCode, GetType, hashCode, toObjectFromArray, toObjectFromArray, toString, ToString, translateException
-
-
-
-
Field Detail
-
assemblyFullName
public static final String assemblyFullName
Fully assembly qualified name: System.Private.Xml.Linq, Version=6.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51- See Also:
- Constant Field Values
-
assemblyShortName
public static final String assemblyShortName
Assembly name: System.Private.Xml.Linq- See Also:
- Constant Field Values
-
className
public static final String className
Qualified class name: System.Xml.Linq.XDocument- See Also:
- Constant Field Values
-
-
Constructor Detail
-
XDocument
public XDocument(Object instance) throws Throwable
Internal constructor. Use with caution- Throws:
Throwable
-
XDocument
public XDocument(NetObject... content) throws Throwable, NotSupportedException, ArgumentException, ArgumentNullException, IndexOutOfRangeException, InvalidOperationException, PlatformNotSupportedException, FormatException, ArgumentOutOfRangeException, OverflowException
-
XDocument
public XDocument(XDeclaration declaration, NetObject... content) throws Throwable, ArgumentNullException, IndexOutOfRangeException, PlatformNotSupportedException, InvalidOperationException, FormatException, ArgumentOutOfRangeException, ArgumentException, OverflowException
-
XDocument
public XDocument(XDocument other) throws Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, IndexOutOfRangeException, NotSupportedException, ObjectDisposedException, RankException
-
-
Method Detail
-
getJCOAssemblyName
public String getJCOAssemblyName()
Description copied from interface:IJCOBridgeReflected
Returns the reflected Assembly name- Specified by:
getJCOAssemblyName
in interfaceIJCOBridgeReflected
- Overrides:
getJCOAssemblyName
in classXContainer
- Returns:
- A
String
representing the Fullname of reflected Assembly
-
getJCOClassName
public String getJCOClassName()
Description copied from interface:IJCOBridgeReflected
Returns the reflected Class name- Specified by:
getJCOClassName
in interfaceIJCOBridgeReflected
- Overrides:
getJCOClassName
in classXContainer
- Returns:
- A
String
representing the Fullname of reflected Class
-
getJCOObjectName
public String getJCOObjectName()
Description copied from interface:IJCOBridgeReflected
Returns the reflected Class name used to build the object- Specified by:
getJCOObjectName
in interfaceIJCOBridgeReflected
- Overrides:
getJCOObjectName
in classXContainer
- Returns:
- A
String
representing the name used to allocated the object in CLR context
-
getJCOInstance
public Object getJCOInstance()
Description copied from interface:IJCOBridgeReflected
Returns the instantiated class- Specified by:
getJCOInstance
in interfaceIJCOBridgeReflected
- Overrides:
getJCOInstance
in classXContainer
- Returns:
- An
Object
representing the CLR instance of the instantiated Class
-
setJCOInstance
public void setJCOInstance(JCObject instance)
- Overrides:
setJCOInstance
in classXContainer
-
getJCOType
public JCType getJCOType()
Description copied from interface:IJCOBridgeReflected
Returns the instantiated class Type- Specified by:
getJCOType
in interfaceIJCOBridgeReflected
- Overrides:
getJCOType
in classXContainer
- Returns:
- A
JCType
representing the CLR Type of the instantiated Class
-
cast
public static XDocument cast(IJCOBridgeReflected from) throws Throwable
Try to cast theIJCOBridgeReflected
instance intoXDocument
, a cast assert is made to check if types are compatible.- Parameters:
from
-IJCOBridgeReflected
instance to be casted- Returns:
XDocument
instance- Throws:
Throwable
- in case of error during cast operation
-
SaveAsync
public Task SaveAsync(Stream stream, SaveOptions options, CancellationToken cancellationToken) throws Throwable, ArgumentException, PlatformNotSupportedException, NotSupportedException, ArgumentNullException, InvalidOperationException, ArgumentOutOfRangeException
-
SaveAsync
public Task SaveAsync(TextWriter textWriter, SaveOptions options, CancellationToken cancellationToken) throws Throwable, ArgumentException, PlatformNotSupportedException, NotSupportedException, ArgumentNullException, InvalidOperationException, ArgumentOutOfRangeException
-
SaveAsync
public Task SaveAsync(XmlWriter writer, CancellationToken cancellationToken) throws Throwable
- Throws:
Throwable
-
WriteToAsync
public Task WriteToAsync(XmlWriter writer, CancellationToken cancellationToken) throws Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, IndexOutOfRangeException, NotSupportedException, CultureNotFoundException, ObjectDisposedException
- Overrides:
WriteToAsync
in classXNode
- Throws:
Throwable
ArgumentException
ArgumentOutOfRangeException
ArgumentNullException
InvalidOperationException
PlatformNotSupportedException
ArrayTypeMismatchException
IndexOutOfRangeException
NotSupportedException
CultureNotFoundException
ObjectDisposedException
-
Load
public static XDocument Load(Stream stream, LoadOptions options) throws Throwable, ArgumentNullException, ArgumentException, ObjectDisposedException, InvalidOperationException, IndexOutOfRangeException, PlatformNotSupportedException, FormatException, XmlException, ArgumentOutOfRangeException, NotSupportedException, OverflowException
-
Load
public static XDocument Load(Stream stream) throws Throwable, ArgumentNullException, ArgumentException, InvalidOperationException, IndexOutOfRangeException, PlatformNotSupportedException, XmlException, ArgumentOutOfRangeException, NotSupportedException, OverflowException
-
Load
public static XDocument Load(TextReader textReader, LoadOptions options) throws Throwable, ArgumentNullException, ArgumentException, ObjectDisposedException, InvalidOperationException, IndexOutOfRangeException, PlatformNotSupportedException, FormatException, XmlException, ArgumentOutOfRangeException, OverflowException
-
Load
public static XDocument Load(TextReader textReader) throws Throwable, ArgumentNullException, ArgumentException, InvalidOperationException, IndexOutOfRangeException, PlatformNotSupportedException, XmlException, ArgumentOutOfRangeException, OverflowException
-
Load
public static XDocument Load(String uri, LoadOptions options) throws Throwable, ArgumentNullException, ArgumentException, ObjectDisposedException, InvalidOperationException, IndexOutOfRangeException, PlatformNotSupportedException, FormatException, XmlException, ArgumentOutOfRangeException, NotSupportedException, NotImplementedException, TaskCanceledException, AggregateException, OverflowException
- Throws:
Throwable
ArgumentNullException
ArgumentException
ObjectDisposedException
InvalidOperationException
IndexOutOfRangeException
PlatformNotSupportedException
FormatException
XmlException
ArgumentOutOfRangeException
NotSupportedException
NotImplementedException
TaskCanceledException
AggregateException
OverflowException
-
Load
public static XDocument Load(String uri) throws Throwable, ArgumentNullException, ArgumentException, InvalidOperationException, IndexOutOfRangeException, PlatformNotSupportedException, XmlException, ArgumentOutOfRangeException, NotSupportedException, NotImplementedException, OverflowException
-
Load
public static XDocument Load(XmlReader reader, LoadOptions options) throws Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, IndexOutOfRangeException, NotSupportedException, CultureNotFoundException, ObjectDisposedException, OverflowException
-
Load
public static XDocument Load(XmlReader reader) throws Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, IndexOutOfRangeException, NotSupportedException, ObjectDisposedException, RankException, OverflowException
-
Parse
public static XDocument Parse(String text, LoadOptions options) throws Throwable, ArgumentException, ArgumentOutOfRangeException, IndexOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ArgumentNullException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, FormatException, XmlException, OverflowException, CultureNotFoundException
- Throws:
Throwable
ArgumentException
ArgumentOutOfRangeException
IndexOutOfRangeException
PlatformNotSupportedException
NotSupportedException
ArgumentNullException
ObjectDisposedException
InvalidOperationException
RankException
ArrayTypeMismatchException
FormatException
XmlException
OverflowException
CultureNotFoundException
-
Parse
public static XDocument Parse(String text) throws Throwable, ArgumentException, PlatformNotSupportedException, NotSupportedException, ArgumentNullException, InvalidOperationException, ArgumentOutOfRangeException, IndexOutOfRangeException, XmlException, OverflowException
-
Save
public void Save(Stream stream, SaveOptions options) throws Throwable, InvalidOperationException, ArgumentNullException, PlatformNotSupportedException, IndexOutOfRangeException, ArgumentException, FormatException, XmlException, ArgumentOutOfRangeException, NotSupportedException, ArrayTypeMismatchException, RankException
-
Save
public void Save(Stream stream) throws Throwable, InvalidOperationException, ArgumentNullException, PlatformNotSupportedException, IndexOutOfRangeException, ArgumentException, XmlException, ArgumentOutOfRangeException, NotSupportedException, ArrayTypeMismatchException
-
Save
public void Save(TextWriter textWriter, SaveOptions options) throws Throwable, InvalidOperationException, ArgumentNullException, PlatformNotSupportedException, IndexOutOfRangeException, ArgumentException, FormatException, XmlException, ArgumentOutOfRangeException, RankException, ArrayTypeMismatchException
-
Save
public void Save(TextWriter textWriter) throws Throwable, InvalidOperationException, ArgumentNullException, PlatformNotSupportedException, IndexOutOfRangeException, ArgumentException, XmlException, ArgumentOutOfRangeException
-
Save
public void Save(String fileName, SaveOptions options) throws Throwable, InvalidOperationException, ArgumentNullException, PlatformNotSupportedException, IndexOutOfRangeException, ArgumentException, FormatException, XmlException, ArgumentOutOfRangeException, NotSupportedException, SerializationException, ArrayTypeMismatchException
-
Save
public void Save(String fileName) throws Throwable, InvalidOperationException, ArgumentNullException, PlatformNotSupportedException, IndexOutOfRangeException, ArgumentException, XmlException, ArgumentOutOfRangeException, NotSupportedException, SerializationException, ArrayTypeMismatchException
-
WriteTo
public void WriteTo(XmlWriter writer) throws Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, IndexOutOfRangeException, NotSupportedException, CultureNotFoundException, ObjectDisposedException
-
getDeclaration
public XDeclaration getDeclaration() throws Throwable
- Throws:
Throwable
-
setDeclaration
public void setDeclaration(XDeclaration Declaration) throws Throwable
- Throws:
Throwable
-
getDocumentType
public XDocumentType getDocumentType() throws Throwable
- Throws:
Throwable
-
-