Package system.xml.linq
Class XNode
- java.lang.Object
-
- org.mases.jcobridge.netreflection.NetObject
-
- system.xml.linq.XObject
-
- system.xml.linq.XNode
-
- All Implemented Interfaces:
IJCOBridgeReflected
- Direct Known Subclasses:
XComment
,XContainer
,XDocumentType
,XProcessingInstruction
,XText
public class XNode extends XObject
The base .NET class managing System.Xml.Linq.XNode, 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.XNode
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.XNodestatic JCType
classType
The type managed from JCOBridge.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
AddAfterSelf(NetObject content)
void
AddAfterSelf(NetObject... content)
void
AddBeforeSelf(NetObject content)
void
AddBeforeSelf(NetObject... content)
static XNode
cast(IJCOBridgeReflected from)
Try to cast theIJCOBridgeReflected
instance intoXNode
, a cast assert is made to check if types are compatible.static int
CompareDocumentOrder(XNode n1, XNode n2)
XmlReader
CreateReader()
XmlReader
CreateReader(ReaderOptions readerOptions)
static boolean
DeepEquals(XNode n1, XNode n2)
static XNodeDocumentOrderComparer
getDocumentOrderComparer()
static XNodeEqualityComparer
getEqualityComparer()
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 TypeXNode
getNextNode()
XNode
getPreviousNode()
boolean
IsAfter(XNode node)
boolean
IsBefore(XNode node)
static XNode
ReadFrom(XmlReader reader)
void
Remove()
void
ReplaceWith(NetObject content)
void
ReplaceWith(NetObject... content)
void
setJCOInstance(JCObject instance)
java.lang.String
ToString(SaveOptions options)
void
WriteTo(XmlWriter writer)
-
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.XNode- See Also:
- Constant Field Values
-
-
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 classXObject
- 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 classXObject
- 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 classXObject
- 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 classXObject
- Returns:
- An
Object
representing the CLR instance of the instantiated Class
-
setJCOInstance
public void setJCOInstance(JCObject instance)
- Overrides:
setJCOInstance
in classXObject
-
getJCOType
public JCType getJCOType()
Description copied from interface:IJCOBridgeReflected
Returns the instantiated class Type- Specified by:
getJCOType
in interfaceIJCOBridgeReflected
- Overrides:
getJCOType
in classXObject
- Returns:
- A
JCType
representing the CLR Type of the instantiated Class
-
cast
public static XNode cast(IJCOBridgeReflected from) throws java.lang.Throwable
Try to cast theIJCOBridgeReflected
instance intoXNode
, a cast assert is made to check if types are compatible.- Parameters:
from
-IJCOBridgeReflected
instance to be casted- Returns:
XNode
instance- Throws:
java.lang.Throwable
- in case of error during cast operation
-
DeepEquals
public static boolean DeepEquals(XNode n1, XNode n2) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
IsAfter
public boolean IsAfter(XNode node) throws java.lang.Throwable, ArgumentNullException, ArgumentException, InvalidOperationException, MissingMethodException, TargetInvocationException, NotImplementedException, ArgumentOutOfRangeException, CultureNotFoundException, MissingManifestResourceException, ObjectDisposedException
-
IsBefore
public boolean IsBefore(XNode node) throws java.lang.Throwable, ArgumentNullException, ArgumentException, InvalidOperationException, MissingMethodException, TargetInvocationException, NotImplementedException, ArgumentOutOfRangeException, CultureNotFoundException, MissingManifestResourceException, ObjectDisposedException
-
CompareDocumentOrder
public static int CompareDocumentOrder(XNode n1, XNode n2) throws java.lang.Throwable, ArgumentNullException, ArgumentException, InvalidOperationException, MissingMethodException, TargetInvocationException, NotImplementedException, NotSupportedException, ArgumentOutOfRangeException, CultureNotFoundException, MissingManifestResourceException, ObjectDisposedException
-
ToString
public java.lang.String ToString(SaveOptions options) throws java.lang.Throwable, ArgumentNullException, ArgumentOutOfRangeException, IndexOutOfRangeException, MissingManifestResourceException, InvalidOperationException, XmlException, NotImplementedException, NotSupportedException, ArgumentException
-
ReadFrom
public static XNode ReadFrom(XmlReader reader) throws java.lang.Throwable, ArgumentNullException, ArgumentException, InvalidOperationException, MissingMethodException, TargetInvocationException, NotImplementedException, NotSupportedException, ArgumentOutOfRangeException, CultureNotFoundException, MissingManifestResourceException, ObjectDisposedException, OverflowException
- Throws:
java.lang.Throwable
ArgumentNullException
ArgumentException
InvalidOperationException
MissingMethodException
TargetInvocationException
NotImplementedException
NotSupportedException
ArgumentOutOfRangeException
CultureNotFoundException
MissingManifestResourceException
ObjectDisposedException
OverflowException
-
CreateReader
public XmlReader CreateReader() throws java.lang.Throwable, ArgumentNullException, InvalidOperationException
- Throws:
java.lang.Throwable
ArgumentNullException
InvalidOperationException
-
CreateReader
public XmlReader CreateReader(ReaderOptions readerOptions) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
AddAfterSelf
public void AddAfterSelf(NetObject content) throws java.lang.Throwable, ArgumentNullException, ArgumentException, InvalidOperationException, MissingMethodException, TargetInvocationException, NotImplementedException, NotSupportedException, ArgumentOutOfRangeException, CultureNotFoundException, MissingManifestResourceException, ObjectDisposedException, OverflowException
- Throws:
java.lang.Throwable
ArgumentNullException
ArgumentException
InvalidOperationException
MissingMethodException
TargetInvocationException
NotImplementedException
NotSupportedException
ArgumentOutOfRangeException
CultureNotFoundException
MissingManifestResourceException
ObjectDisposedException
OverflowException
-
AddAfterSelf
public void AddAfterSelf(NetObject... content) throws java.lang.Throwable, ArgumentNullException, ArgumentException, InvalidOperationException, MissingMethodException, TargetInvocationException, NotImplementedException, ArgumentOutOfRangeException, CultureNotFoundException, MissingManifestResourceException, ObjectDisposedException, IndexOutOfRangeException
- Throws:
java.lang.Throwable
ArgumentNullException
ArgumentException
InvalidOperationException
MissingMethodException
TargetInvocationException
NotImplementedException
ArgumentOutOfRangeException
CultureNotFoundException
MissingManifestResourceException
ObjectDisposedException
IndexOutOfRangeException
-
AddBeforeSelf
public void AddBeforeSelf(NetObject content) throws java.lang.Throwable, ArgumentNullException, ArgumentException, InvalidOperationException, MissingMethodException, TargetInvocationException, NotImplementedException, NotSupportedException, ArgumentOutOfRangeException, CultureNotFoundException, MissingManifestResourceException, ObjectDisposedException, OverflowException
- Throws:
java.lang.Throwable
ArgumentNullException
ArgumentException
InvalidOperationException
MissingMethodException
TargetInvocationException
NotImplementedException
NotSupportedException
ArgumentOutOfRangeException
CultureNotFoundException
MissingManifestResourceException
ObjectDisposedException
OverflowException
-
AddBeforeSelf
public void AddBeforeSelf(NetObject... content) throws java.lang.Throwable, ArgumentNullException, ArgumentException, InvalidOperationException, MissingMethodException, TargetInvocationException, NotImplementedException, ArgumentOutOfRangeException, CultureNotFoundException, MissingManifestResourceException, ObjectDisposedException, IndexOutOfRangeException
- Throws:
java.lang.Throwable
ArgumentNullException
ArgumentException
InvalidOperationException
MissingMethodException
TargetInvocationException
NotImplementedException
ArgumentOutOfRangeException
CultureNotFoundException
MissingManifestResourceException
ObjectDisposedException
IndexOutOfRangeException
-
Remove
public void Remove() throws java.lang.Throwable, ArgumentNullException, ArgumentException, InvalidOperationException, MissingMethodException, TargetInvocationException, NotImplementedException, NotSupportedException, ArgumentOutOfRangeException, CultureNotFoundException, MissingManifestResourceException, ObjectDisposedException
-
ReplaceWith
public void ReplaceWith(NetObject content) throws java.lang.Throwable, ArgumentNullException, ArgumentException, InvalidOperationException, MissingMethodException, TargetInvocationException, NotImplementedException, NotSupportedException, ArgumentOutOfRangeException, CultureNotFoundException, MissingManifestResourceException, ObjectDisposedException, OverflowException
- Throws:
java.lang.Throwable
ArgumentNullException
ArgumentException
InvalidOperationException
MissingMethodException
TargetInvocationException
NotImplementedException
NotSupportedException
ArgumentOutOfRangeException
CultureNotFoundException
MissingManifestResourceException
ObjectDisposedException
OverflowException
-
ReplaceWith
public void ReplaceWith(NetObject... content) throws java.lang.Throwable, ArgumentNullException, ArgumentException, InvalidOperationException, MissingMethodException, TargetInvocationException, NotImplementedException, ArgumentOutOfRangeException, CultureNotFoundException, MissingManifestResourceException, ObjectDisposedException, IndexOutOfRangeException
- Throws:
java.lang.Throwable
ArgumentNullException
ArgumentException
InvalidOperationException
MissingMethodException
TargetInvocationException
NotImplementedException
ArgumentOutOfRangeException
CultureNotFoundException
MissingManifestResourceException
ObjectDisposedException
IndexOutOfRangeException
-
WriteTo
public void WriteTo(XmlWriter writer) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
getNextNode
public XNode getNextNode() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
getPreviousNode
public XNode getPreviousNode() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
getDocumentOrderComparer
public static XNodeDocumentOrderComparer getDocumentOrderComparer() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
getEqualityComparer
public static XNodeEqualityComparer getEqualityComparer() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
-