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.String
assemblyFullName
Fully assembly qualified name: System.Xml.Linq, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089static java.lang.String
assemblyShortName
Assembly name: System.Xml.Linqstatic java.lang.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()
java.lang.String
getJCOAssemblyName()
Returns the reflected Assembly namejava.lang.String
getJCOClassName()
Returns the reflected Class namejava.lang.Object
getJCOInstance()
Returns the instantiated classjava.lang.String
getJCOObjectName()
Returns the reflected Class name used to build the objectJCType
getJCOType()
Returns the instantiated class TypeXElement
getRoot()
static XDocument
Load(java.lang.String uri)
static XDocument
Load(java.lang.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(java.lang.String text)
static XDocument
Parse(java.lang.String text, LoadOptions options)
void
Save(java.lang.String fileName)
void
Save(java.lang.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)
void
setDeclaration(XDeclaration Declaration)
void
setJCOInstance(JCObject instance)
void
WriteTo(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.Throwable
Internal 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.Throwable
ArgumentNullException
-
-
Method Detail
-
getJCOAssemblyName
public java.lang.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 java.lang.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 java.lang.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 java.lang.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 java.lang.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:
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.Throwable
InvalidOperationException
SecurityException
UnauthorizedAccessException
IOException
ArgumentNullException
MissingManifestResourceException
ArgumentOutOfRangeException
XmlException
NotImplementedException
NotSupportedException
IndexOutOfRangeException
ArgumentException
FormatException
OverflowException
CultureNotFoundException
-
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.Throwable
InvalidOperationException
ArgumentNullException
ArgumentException
ObjectDisposedException
SecurityException
UnauthorizedAccessException
IOException
MissingManifestResourceException
ArgumentOutOfRangeException
XmlException
NotImplementedException
NotSupportedException
IndexOutOfRangeException
FormatException
XmlSchemaException
OverflowException
CultureNotFoundException
-
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.Throwable
InvalidOperationException
SecurityException
UnauthorizedAccessException
IOException
ArgumentNullException
MissingManifestResourceException
ArgumentOutOfRangeException
XmlException
NotImplementedException
NotSupportedException
IndexOutOfRangeException
FormatException
ArgumentException
OverflowException
CultureNotFoundException
-
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.Throwable
InvalidOperationException
ArgumentNullException
ArgumentException
ObjectDisposedException
SecurityException
UnauthorizedAccessException
IOException
MissingManifestResourceException
ArgumentOutOfRangeException
XmlException
NotImplementedException
NotSupportedException
IndexOutOfRangeException
FormatException
XmlSchemaException
OverflowException
CultureNotFoundException
-
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.Throwable
InvalidOperationException
SecurityException
UnauthorizedAccessException
IOException
ArgumentNullException
MissingManifestResourceException
ArgumentOutOfRangeException
XmlException
ArgumentException
NotImplementedException
NotSupportedException
IndexOutOfRangeException
AggregateException
FormatException
OverflowException
CultureNotFoundException
-
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.Throwable
InvalidOperationException
ArgumentNullException
ArgumentException
ObjectDisposedException
SecurityException
UnauthorizedAccessException
IOException
MissingManifestResourceException
ArgumentOutOfRangeException
XmlException
NotImplementedException
NotSupportedException
IndexOutOfRangeException
TaskSchedulerException
OperationCanceledException
AggregateException
FormatException
XmlSchemaException
OverflowException
CultureNotFoundException
-
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.Throwable
ArgumentNullException
InvalidOperationException
SecurityException
UnauthorizedAccessException
IOException
MissingManifestResourceException
ArgumentOutOfRangeException
XmlException
NotImplementedException
NotSupportedException
IndexOutOfRangeException
FormatException
ArgumentException
OverflowException
CultureNotFoundException
-
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.Throwable
ArgumentNullException
InvalidOperationException
ArgumentException
ObjectDisposedException
SecurityException
UnauthorizedAccessException
IOException
MissingManifestResourceException
ArgumentOutOfRangeException
XmlException
NotImplementedException
NotSupportedException
IndexOutOfRangeException
FormatException
XmlSchemaException
OverflowException
CultureNotFoundException
-
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.Throwable
ArgumentOutOfRangeException
IndexOutOfRangeException
ArgumentNullException
MissingManifestResourceException
InvalidOperationException
XmlException
ObjectDisposedException
AbandonedMutexException
FormatException
ArgumentException
NotSupportedException
NotImplementedException
-
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.Throwable
ArgumentNullException
InvalidOperationException
ArgumentOutOfRangeException
IndexOutOfRangeException
MissingManifestResourceException
XmlException
ObjectDisposedException
AbandonedMutexException
ArgumentException
NotSupportedException
PathTooLongException
CultureNotFoundException
NullReferenceException
SecurityException
IOException
-
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.Throwable
ArgumentOutOfRangeException
IndexOutOfRangeException
ArgumentNullException
MissingManifestResourceException
InvalidOperationException
XmlException
ObjectDisposedException
AbandonedMutexException
FormatException
ArgumentException
NotSupportedException
PathTooLongException
FileNotFoundException
DirectoryNotFoundException
UnauthorizedAccessException
IOException
DriveNotFoundException
OperationCanceledException
NullReferenceException
SecurityException
NotImplementedException
-
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:
WriteTo
in classXNode
- Throws:
java.lang.Throwable
ArgumentNullException
-
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
-
-