public class XNode extends XObject
.NET documentation at https://learn.microsoft.com/dotnet/api/System.Xml.Linq.XNode
Powered by JCOBridge: more info at https://www.jcobridge.com
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
assemblyFullName
Fully assembly qualified name: System.Private.Xml.Linq, Version=8.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51
|
static java.lang.String |
assemblyShortName
Assembly name: System.Private.Xml.Linq
|
static java.lang.String |
className
Qualified class name: System.Xml.Linq.XNode
|
static JCType |
classType
The type managed from JCOBridge.
|
| Constructor and Description |
|---|
XNode() |
XNode(java.lang.Object instance)
Internal constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
AddAfterSelf(NetObject... content)
Invokes the .NET member AddAfterSelf.
|
void |
AddAfterSelf(NetObject content)
Invokes the .NET member AddAfterSelf.
|
void |
AddBeforeSelf(NetObject... content)
Invokes the .NET member AddBeforeSelf.
|
void |
AddBeforeSelf(NetObject content)
Invokes the .NET member AddBeforeSelf.
|
IEnumerable_1 |
Ancestors()
Invokes the .NET member Ancestors.
|
IEnumerable_1 |
Ancestors(XName name)
Invokes the .NET member Ancestors.
|
static XNode |
cast(IJCOBridgeReflected from)
Try to cast the
IJCOBridgeReflected instance into XNode, a cast assert is made to check if types are compatible. |
static int |
CompareDocumentOrder(XNode n1,
XNode n2)
Invokes the .NET member CompareDocumentOrder.
|
XmlReader |
CreateReader()
Invokes the .NET member CreateReader.
|
XmlReader |
CreateReader(ReaderOptions readerOptions)
Invokes the .NET member CreateReader.
|
static boolean |
DeepEquals(XNode n1,
XNode n2)
Invokes the .NET member DeepEquals.
|
IEnumerable_1 |
ElementsAfterSelf()
Invokes the .NET member ElementsAfterSelf.
|
IEnumerable_1 |
ElementsAfterSelf(XName name)
Invokes the .NET member ElementsAfterSelf.
|
IEnumerable_1 |
ElementsBeforeSelf()
Invokes the .NET member ElementsBeforeSelf.
|
IEnumerable_1 |
ElementsBeforeSelf(XName name)
Invokes the .NET member ElementsBeforeSelf.
|
static XNodeDocumentOrderComparer |
getDocumentOrderComparer()
Gets the value of the .NET property DocumentOrderComparer.
|
static XNodeEqualityComparer |
getEqualityComparer()
Gets the value of the .NET property EqualityComparer.
|
java.lang.String |
getJCOAssemblyName()
Returns the full name of the assembly of the .NET type.
|
java.lang.String |
getJCOClassName()
Returns the full name of the .NET type.
|
java.lang.Object |
getJCOInstance()
Returns the underlying object managed by the bridge.
|
java.lang.String |
getJCOObjectName()
Returns the name of the .NET type qualified with its assembly.
|
JCType |
getJCOType()
Returns the
JCType of the .NET type. |
XNode |
getNextNode()
Gets the value of the .NET property NextNode.
|
XNode |
getPreviousNode()
Gets the value of the .NET property PreviousNode.
|
boolean |
IsAfter(XNode node)
Invokes the .NET member IsAfter.
|
boolean |
IsBefore(XNode node)
Invokes the .NET member IsBefore.
|
IEnumerable_1 |
NodesAfterSelf()
Invokes the .NET member NodesAfterSelf.
|
IEnumerable_1 |
NodesBeforeSelf()
Invokes the .NET member NodesBeforeSelf.
|
static XNode |
ReadFrom(XmlReader reader)
Invokes the .NET member ReadFrom.
|
static Task_1 |
ReadFromAsync(XmlReader reader,
CancellationToken cancellationToken)
Invokes the .NET member ReadFromAsync.
|
void |
Remove()
Invokes the .NET member Remove.
|
void |
ReplaceWith(NetObject... content)
Invokes the .NET member ReplaceWith.
|
void |
ReplaceWith(NetObject content)
Invokes the .NET member ReplaceWith.
|
void |
setJCOInstance(JCObject instance)
Sets the underlying object managed by the bridge.
|
java.lang.String |
ToString(SaveOptions options)
Invokes the .NET member ToString.
|
void |
WriteTo(XmlWriter writer)
Invokes the .NET member WriteTo.
|
Task |
WriteToAsync(XmlWriter writer,
CancellationToken cancellationToken)
Invokes the .NET member WriteToAsync.
|
AddAnnotation, Annotation, Annotations, Annotations, getBaseUri, getDocument, getNodeType, getParent, RemoveAnnotations, RemoveAnnotationspublic static final java.lang.String assemblyFullName
public static final java.lang.String assemblyShortName
public static final java.lang.String className
public XNode()
throws java.lang.Throwable
java.lang.Throwablepublic XNode(java.lang.Object instance)
throws java.lang.Throwable
instance - the underlying bridge object: it must be a JCObjectjava.lang.Throwable - if instance is not a JCObjectpublic void AddAfterSelf(NetObject... content) throws java.lang.Throwable, ArgumentNullException, ArgumentException, PlatformNotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, CultureNotFoundException, ObjectDisposedException, OutOfMemoryException
content - the argument of type NetObject...java.lang.Throwable - if the call fails in the bridge or in the CLRArgumentNullException - if the .NET member raises itArgumentException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itInvalidOperationException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itCultureNotFoundException - if the .NET member raises itObjectDisposedException - if the .NET member raises itOutOfMemoryException - if the .NET member raises itpublic void AddAfterSelf(NetObject content) throws java.lang.Throwable, ArgumentNullException, ArgumentException, PlatformNotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, CultureNotFoundException, ObjectDisposedException, OverflowException
content - the argument of type NetObjectjava.lang.Throwable - if the call fails in the bridge or in the CLRArgumentNullException - if the .NET member raises itArgumentException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itInvalidOperationException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itCultureNotFoundException - if the .NET member raises itObjectDisposedException - if the .NET member raises itOverflowException - if the .NET member raises itpublic void AddBeforeSelf(NetObject... content) throws java.lang.Throwable, ArgumentNullException, ArgumentException, PlatformNotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, CultureNotFoundException, ObjectDisposedException, OutOfMemoryException
content - the argument of type NetObject...java.lang.Throwable - if the call fails in the bridge or in the CLRArgumentNullException - if the .NET member raises itArgumentException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itInvalidOperationException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itCultureNotFoundException - if the .NET member raises itObjectDisposedException - if the .NET member raises itOutOfMemoryException - if the .NET member raises itpublic void AddBeforeSelf(NetObject content) throws java.lang.Throwable, ArgumentNullException, ArgumentException, PlatformNotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, CultureNotFoundException, ObjectDisposedException, OverflowException
content - the argument of type NetObjectjava.lang.Throwable - if the call fails in the bridge or in the CLRArgumentNullException - if the .NET member raises itArgumentException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itInvalidOperationException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itCultureNotFoundException - if the .NET member raises itObjectDisposedException - if the .NET member raises itOverflowException - if the .NET member raises itpublic IEnumerable_1 Ancestors() throws java.lang.Throwable
java.lang.Throwable - if the call fails in the bridge or in the CLRpublic IEnumerable_1 Ancestors(XName name) throws java.lang.Throwable
name - the argument of type XNamejava.lang.Throwable - if the call fails in the bridge or in the CLRpublic static XNode cast(IJCOBridgeReflected from) throws java.lang.Throwable
IJCOBridgeReflected instance into XNode, a cast assert is made to check if types are compatible.from - IJCOBridgeReflected instance to be castedXNode instancejava.lang.Throwable - in case of error during cast operationpublic static int CompareDocumentOrder(XNode n1, XNode n2) throws java.lang.Throwable, ArgumentNullException, ArgumentException, PlatformNotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, CultureNotFoundException, ObjectDisposedException
n1 - the argument of type XNoden2 - the argument of type XNodejava.lang.Throwable - if the call fails in the bridge or in the CLRArgumentNullException - if the .NET member raises itArgumentException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itInvalidOperationException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itCultureNotFoundException - if the .NET member raises itObjectDisposedException - if the .NET member raises itpublic XmlReader CreateReader() throws java.lang.Throwable
java.lang.Throwable - if the call fails in the bridge or in the CLRpublic XmlReader CreateReader(ReaderOptions readerOptions) throws java.lang.Throwable
readerOptions - the argument of type ReaderOptionsjava.lang.Throwable - if the call fails in the bridge or in the CLRpublic static boolean DeepEquals(XNode n1, XNode n2) throws java.lang.Throwable
n1 - the argument of type XNoden2 - the argument of type XNodejava.lang.Throwable - if the call fails in the bridge or in the CLRpublic IEnumerable_1 ElementsAfterSelf() throws java.lang.Throwable
java.lang.Throwable - if the call fails in the bridge or in the CLRpublic IEnumerable_1 ElementsAfterSelf(XName name) throws java.lang.Throwable
name - the argument of type XNamejava.lang.Throwable - if the call fails in the bridge or in the CLRpublic IEnumerable_1 ElementsBeforeSelf() throws java.lang.Throwable
java.lang.Throwable - if the call fails in the bridge or in the CLRpublic IEnumerable_1 ElementsBeforeSelf(XName name) throws java.lang.Throwable
name - the argument of type XNamejava.lang.Throwable - if the call fails in the bridge or in the CLRpublic static XNodeDocumentOrderComparer getDocumentOrderComparer() throws java.lang.Throwable
java.lang.Throwable - if the call fails in the bridge or in the CLRpublic static XNodeEqualityComparer getEqualityComparer() throws java.lang.Throwable
java.lang.Throwable - if the call fails in the bridge or in the CLRpublic java.lang.String getJCOAssemblyName()
NetObjectgetJCOAssemblyName in interface IJCOBridgeReflectedgetJCOAssemblyName in class XObjectpublic java.lang.String getJCOClassName()
NetObjectgetJCOClassName in interface IJCOBridgeReflectedgetJCOClassName in class XObjectpublic java.lang.Object getJCOInstance()
NetObjectgetJCOInstance in interface IJCOBridgeReflectedgetJCOInstance in class XObjectnull if there is nonepublic java.lang.String getJCOObjectName()
NetObjectgetJCOObjectName in interface IJCOBridgeReflectedgetJCOObjectName in class XObjectpublic JCType getJCOType()
NetObjectJCType of the .NET type.getJCOType in interface IJCOBridgeReflectedgetJCOType in class XObjectpublic XNode getNextNode() throws java.lang.Throwable
java.lang.Throwable - if the call fails in the bridge or in the CLRpublic XNode getPreviousNode() throws java.lang.Throwable
java.lang.Throwable - if the call fails in the bridge or in the CLRpublic boolean IsAfter(XNode node) throws java.lang.Throwable, ArgumentNullException, ArgumentException, PlatformNotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, CultureNotFoundException, ObjectDisposedException
node - the argument of type XNodejava.lang.Throwable - if the call fails in the bridge or in the CLRArgumentNullException - if the .NET member raises itArgumentException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itInvalidOperationException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itCultureNotFoundException - if the .NET member raises itObjectDisposedException - if the .NET member raises itpublic boolean IsBefore(XNode node) throws java.lang.Throwable, ArgumentNullException, ArgumentException, PlatformNotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, CultureNotFoundException, ObjectDisposedException
node - the argument of type XNodejava.lang.Throwable - if the call fails in the bridge or in the CLRArgumentNullException - if the .NET member raises itArgumentException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itInvalidOperationException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itCultureNotFoundException - if the .NET member raises itObjectDisposedException - if the .NET member raises itpublic IEnumerable_1 NodesAfterSelf() throws java.lang.Throwable
java.lang.Throwable - if the call fails in the bridge or in the CLRpublic IEnumerable_1 NodesBeforeSelf() throws java.lang.Throwable
java.lang.Throwable - if the call fails in the bridge or in the CLRpublic static XNode ReadFrom(XmlReader reader) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, ArgumentNullException, OutOfMemoryException, OverflowException
reader - the argument of type XmlReaderjava.lang.Throwable - if the call fails in the bridge or in the CLRArgumentException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itNotSupportedException - if the .NET member raises itObjectDisposedException - if the .NET member raises itInvalidOperationException - if the .NET member raises itRankException - if the .NET member raises itArrayTypeMismatchException - if the .NET member raises itArgumentNullException - if the .NET member raises itOutOfMemoryException - if the .NET member raises itOverflowException - if the .NET member raises itpublic static Task_1 ReadFromAsync(XmlReader reader, CancellationToken cancellationToken) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, ArgumentNullException
reader - the argument of type XmlReadercancellationToken - the argument of type CancellationTokenjava.lang.Throwable - if the call fails in the bridge or in the CLRArgumentException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itNotSupportedException - if the .NET member raises itObjectDisposedException - if the .NET member raises itInvalidOperationException - if the .NET member raises itRankException - if the .NET member raises itArrayTypeMismatchException - if the .NET member raises itArgumentNullException - if the .NET member raises itpublic void Remove()
throws java.lang.Throwable,
ArgumentNullException,
ArgumentException,
PlatformNotSupportedException,
InvalidOperationException,
ArgumentOutOfRangeException,
CultureNotFoundException,
ObjectDisposedException
java.lang.Throwable - if the call fails in the bridge or in the CLRArgumentNullException - if the .NET member raises itArgumentException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itInvalidOperationException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itCultureNotFoundException - if the .NET member raises itObjectDisposedException - if the .NET member raises itpublic void ReplaceWith(NetObject... content) throws java.lang.Throwable, ArgumentNullException, ArgumentException, PlatformNotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, CultureNotFoundException, ObjectDisposedException, OutOfMemoryException
content - the argument of type NetObject...java.lang.Throwable - if the call fails in the bridge or in the CLRArgumentNullException - if the .NET member raises itArgumentException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itInvalidOperationException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itCultureNotFoundException - if the .NET member raises itObjectDisposedException - if the .NET member raises itOutOfMemoryException - if the .NET member raises itpublic void ReplaceWith(NetObject content) throws java.lang.Throwable, ArgumentNullException, ArgumentException, PlatformNotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, CultureNotFoundException, ObjectDisposedException, OverflowException
content - the argument of type NetObjectjava.lang.Throwable - if the call fails in the bridge or in the CLRArgumentNullException - if the .NET member raises itArgumentException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itInvalidOperationException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itCultureNotFoundException - if the .NET member raises itObjectDisposedException - if the .NET member raises itOverflowException - if the .NET member raises itpublic void setJCOInstance(JCObject instance)
NetObjectsetJCOInstance in class XObjectinstance - the new underlying objectpublic java.lang.String ToString(SaveOptions options) throws java.lang.Throwable, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, IndexOutOfRangeException, ArgumentException, OutOfMemoryException, XmlException, ArgumentOutOfRangeException
options - the argument of type SaveOptionsjava.lang.Throwable - if the call fails in the bridge or in the CLRArgumentNullException - if the .NET member raises itInvalidOperationException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itIndexOutOfRangeException - if the .NET member raises itArgumentException - if the .NET member raises itOutOfMemoryException - if the .NET member raises itXmlException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itpublic void WriteTo(XmlWriter writer) throws java.lang.Throwable
writer - the argument of type XmlWriterjava.lang.Throwable - if the call fails in the bridge or in the CLRpublic Task WriteToAsync(XmlWriter writer, CancellationToken cancellationToken) throws java.lang.Throwable
writer - the argument of type XmlWritercancellationToken - the argument of type CancellationTokenjava.lang.Throwable - if the call fails in the bridge or in the CLR