Package system.xaml
Class XamlObjectWriter
- java.lang.Object
-
- org.mases.jcobridge.netreflection.NetObject
-
- system.xaml.XamlWriter
-
- system.xaml.XamlObjectWriter
-
- All Implemented Interfaces:
java.lang.AutoCloseable
,IJCOBridgeReflected
,IDisposable
public class XamlObjectWriter extends XamlWriter
The base .NET class managing System.Xaml.XamlObjectWriter, System.Xaml, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089..NET documentation at https://docs.microsoft.com/en-us/dotnet/api/System.Xaml.XamlObjectWriter
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.Xaml, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089static java.lang.String
assemblyShortName
Assembly name: System.Xamlstatic java.lang.String
className
Qualified class name: System.Xaml.XamlObjectWriterstatic JCType
classType
The type managed from JCOBridge.
-
Constructor Summary
Constructors Constructor Description XamlObjectWriter()
XamlObjectWriter(java.lang.Object instance)
Internal constructor.XamlObjectWriter(XamlSchemaContext schemaContext)
XamlObjectWriter(XamlSchemaContext schemaContext, XamlObjectWriterSettings settings)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static XamlObjectWriter
cast(IJCOBridgeReflected from)
Try to cast theIJCOBridgeReflected
instance intoXamlObjectWriter
, a cast assert is made to check if types are compatible.void
Clear()
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 TypeNetObject
getResult()
INameScope
getRootNameScope()
boolean
getShouldProvideLineInfo()
void
setJCOInstance(JCObject instance)
void
SetLineInfo(int lineNumber, int linePosition)
void
WriteEndMember()
void
WriteEndObject()
void
WriteGetObject()
void
WriteNamespace(NamespaceDeclaration namespaceDeclaration)
void
WriteStartMember(XamlMember property)
void
WriteStartObject(XamlType xamlType)
void
WriteValue(NetObject value)
-
Methods inherited from class system.xaml.XamlWriter
close, Close, getSchemaContext
-
Methods inherited from class org.mases.jcobridge.netreflection.NetObject
Equals, Equals, GetHashCode, GetType, hashCode, toString, ToString
-
Methods inherited from interface system.IDisposable
Dispose
-
-
-
-
Field Detail
-
assemblyFullName
public static final java.lang.String assemblyFullName
Fully assembly qualified name: System.Xaml, 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.Xaml- See Also:
- Constant Field Values
-
className
public static final java.lang.String className
Qualified class name: System.Xaml.XamlObjectWriter- See Also:
- Constant Field Values
-
-
Constructor Detail
-
XamlObjectWriter
public XamlObjectWriter(java.lang.Object instance) throws java.lang.Throwable
Internal constructor. Use with caution- Throws:
java.lang.Throwable
-
XamlObjectWriter
public XamlObjectWriter() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
XamlObjectWriter
public XamlObjectWriter(XamlSchemaContext schemaContext) throws java.lang.Throwable, ArgumentNullException, ArgumentException, FormatException, MissingManifestResourceException, NotImplementedException, ObjectDisposedException, InvalidOperationException, ArgumentOutOfRangeException, XamlException
-
XamlObjectWriter
public XamlObjectWriter(XamlSchemaContext schemaContext, XamlObjectWriterSettings settings) throws java.lang.Throwable, ArgumentNullException, ArgumentException, FormatException, MissingManifestResourceException, NotImplementedException, ObjectDisposedException, InvalidOperationException, ArgumentOutOfRangeException, XamlException
-
-
Method Detail
-
getJCOAssemblyName
public java.lang.String getJCOAssemblyName()
Description copied from interface:IJCOBridgeReflected
Returns the reflected Assembly name- Specified by:
getJCOAssemblyName
in interfaceIDisposable
- Specified by:
getJCOAssemblyName
in interfaceIJCOBridgeReflected
- Overrides:
getJCOAssemblyName
in classXamlWriter
- 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 interfaceIDisposable
- Specified by:
getJCOClassName
in interfaceIJCOBridgeReflected
- Overrides:
getJCOClassName
in classXamlWriter
- 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 interfaceIDisposable
- Specified by:
getJCOObjectName
in interfaceIJCOBridgeReflected
- Overrides:
getJCOObjectName
in classXamlWriter
- 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 interfaceIDisposable
- Specified by:
getJCOInstance
in interfaceIJCOBridgeReflected
- Overrides:
getJCOInstance
in classXamlWriter
- Returns:
- An
Object
representing the CLR instance of the instantiated Class
-
setJCOInstance
public void setJCOInstance(JCObject instance)
- Overrides:
setJCOInstance
in classXamlWriter
-
getJCOType
public JCType getJCOType()
Description copied from interface:IJCOBridgeReflected
Returns the instantiated class Type- Specified by:
getJCOType
in interfaceIDisposable
- Specified by:
getJCOType
in interfaceIJCOBridgeReflected
- Overrides:
getJCOType
in classXamlWriter
- Returns:
- A
JCType
representing the CLR Type of the instantiated Class
-
cast
public static XamlObjectWriter cast(IJCOBridgeReflected from) throws java.lang.Throwable
Try to cast theIJCOBridgeReflected
instance intoXamlObjectWriter
, a cast assert is made to check if types are compatible.- Parameters:
from
-IJCOBridgeReflected
instance to be casted- Returns:
XamlObjectWriter
instance- Throws:
java.lang.Throwable
- in case of error during cast operation
-
Clear
public void Clear() throws java.lang.Throwable, ObjectDisposedException
- Throws:
java.lang.Throwable
ObjectDisposedException
-
SetLineInfo
public void SetLineInfo(int lineNumber, int linePosition) throws java.lang.Throwable, ObjectDisposedException, ArgumentNullException, ArgumentException, FormatException, MissingManifestResourceException, NotImplementedException, InvalidOperationException, ArgumentOutOfRangeException, IndexOutOfRangeException, XamlInternalException, XamlException
-
WriteEndMember
public void WriteEndMember() throws java.lang.Throwable, ObjectDisposedException, ArgumentException, ArgumentNullException, InvalidOperationException, MissingMethodException, TargetInvocationException, ArgumentOutOfRangeException, FormatException, MissingManifestResourceException, NotImplementedException, AbandonedMutexException, XamlException, NotSupportedException, XamlSchemaException, IndexOutOfRangeException, KeyNotFoundException, OutOfMemoryException, XamlObjectWriterException, XamlInternalException, AmbiguousMatchException
- Overrides:
WriteEndMember
in classXamlWriter
- Throws:
java.lang.Throwable
ObjectDisposedException
ArgumentException
ArgumentNullException
InvalidOperationException
MissingMethodException
TargetInvocationException
ArgumentOutOfRangeException
FormatException
MissingManifestResourceException
NotImplementedException
AbandonedMutexException
XamlException
NotSupportedException
XamlSchemaException
IndexOutOfRangeException
KeyNotFoundException
OutOfMemoryException
XamlObjectWriterException
XamlInternalException
AmbiguousMatchException
-
WriteEndObject
public void WriteEndObject() throws java.lang.Throwable, ObjectDisposedException, ArgumentNullException, ArgumentException, FormatException, MissingManifestResourceException, NotImplementedException, InvalidOperationException, ArgumentOutOfRangeException, XamlException, IndexOutOfRangeException, NotSupportedException, XamlSchemaException, OutOfMemoryException, XamlObjectWriterException, XamlInternalException, XamlParseException, KeyNotFoundException
- Overrides:
WriteEndObject
in classXamlWriter
- Throws:
java.lang.Throwable
ObjectDisposedException
ArgumentNullException
ArgumentException
FormatException
MissingManifestResourceException
NotImplementedException
InvalidOperationException
ArgumentOutOfRangeException
XamlException
IndexOutOfRangeException
NotSupportedException
XamlSchemaException
OutOfMemoryException
XamlObjectWriterException
XamlInternalException
XamlParseException
KeyNotFoundException
-
WriteGetObject
public void WriteGetObject() throws java.lang.Throwable, ObjectDisposedException, ArgumentNullException, ArgumentException, InvalidOperationException, MissingMethodException, TargetInvocationException, ArgumentOutOfRangeException, FormatException, MissingManifestResourceException, NotImplementedException, AbandonedMutexException, XamlException, IndexOutOfRangeException, NotSupportedException, XamlSchemaException, OutOfMemoryException, XamlObjectWriterException, XamlInternalException, XamlParseException, KeyNotFoundException
- Overrides:
WriteGetObject
in classXamlWriter
- Throws:
java.lang.Throwable
ObjectDisposedException
ArgumentNullException
ArgumentException
InvalidOperationException
MissingMethodException
TargetInvocationException
ArgumentOutOfRangeException
FormatException
MissingManifestResourceException
NotImplementedException
AbandonedMutexException
XamlException
IndexOutOfRangeException
NotSupportedException
XamlSchemaException
OutOfMemoryException
XamlObjectWriterException
XamlInternalException
XamlParseException
KeyNotFoundException
-
WriteNamespace
public void WriteNamespace(NamespaceDeclaration namespaceDeclaration) throws java.lang.Throwable, ObjectDisposedException, ArgumentNullException, ArgumentException, InvalidOperationException, MissingMethodException, TargetInvocationException, ArgumentOutOfRangeException, FormatException, MissingManifestResourceException, NotImplementedException, AbandonedMutexException, XamlException
- Overrides:
WriteNamespace
in classXamlWriter
- Throws:
java.lang.Throwable
ObjectDisposedException
ArgumentNullException
ArgumentException
InvalidOperationException
MissingMethodException
TargetInvocationException
ArgumentOutOfRangeException
FormatException
MissingManifestResourceException
NotImplementedException
AbandonedMutexException
XamlException
-
WriteStartMember
public void WriteStartMember(XamlMember property) throws java.lang.Throwable, ObjectDisposedException, ArgumentNullException, ArgumentException, InvalidOperationException, MissingMethodException, TargetInvocationException, ArgumentOutOfRangeException, FormatException, MissingManifestResourceException, NotImplementedException, AbandonedMutexException, XamlException, NotSupportedException, XamlSchemaException, KeyNotFoundException, IndexOutOfRangeException, OutOfMemoryException, XamlObjectWriterException, XamlInternalException, XamlParseException
- Overrides:
WriteStartMember
in classXamlWriter
- Throws:
java.lang.Throwable
ObjectDisposedException
ArgumentNullException
ArgumentException
InvalidOperationException
MissingMethodException
TargetInvocationException
ArgumentOutOfRangeException
FormatException
MissingManifestResourceException
NotImplementedException
AbandonedMutexException
XamlException
NotSupportedException
XamlSchemaException
KeyNotFoundException
IndexOutOfRangeException
OutOfMemoryException
XamlObjectWriterException
XamlInternalException
XamlParseException
-
WriteStartObject
public void WriteStartObject(XamlType xamlType) throws java.lang.Throwable, ObjectDisposedException, ArgumentException, ArgumentNullException, InvalidOperationException, MissingMethodException, TargetInvocationException, ArgumentOutOfRangeException, FormatException, MissingManifestResourceException, NotImplementedException, AbandonedMutexException, XamlException, KeyNotFoundException, XamlSchemaException, IndexOutOfRangeException, NotSupportedException, XamlParseException
- Overrides:
WriteStartObject
in classXamlWriter
- Throws:
java.lang.Throwable
ObjectDisposedException
ArgumentException
ArgumentNullException
InvalidOperationException
MissingMethodException
TargetInvocationException
ArgumentOutOfRangeException
FormatException
MissingManifestResourceException
NotImplementedException
AbandonedMutexException
XamlException
KeyNotFoundException
XamlSchemaException
IndexOutOfRangeException
NotSupportedException
XamlParseException
-
WriteValue
public void WriteValue(NetObject value) throws java.lang.Throwable, ObjectDisposedException, ArgumentNullException, ArgumentException, FormatException, MissingManifestResourceException, NotImplementedException, InvalidOperationException, ArgumentOutOfRangeException, XamlException, IndexOutOfRangeException, NotSupportedException, KeyNotFoundException, XamlSchemaException
- Overrides:
WriteValue
in classXamlWriter
- Throws:
java.lang.Throwable
ObjectDisposedException
ArgumentNullException
ArgumentException
FormatException
MissingManifestResourceException
NotImplementedException
InvalidOperationException
ArgumentOutOfRangeException
XamlException
IndexOutOfRangeException
NotSupportedException
KeyNotFoundException
XamlSchemaException
-
getShouldProvideLineInfo
public boolean getShouldProvideLineInfo() throws java.lang.Throwable, ObjectDisposedException
- Throws:
java.lang.Throwable
ObjectDisposedException
-
getResult
public NetObject getResult() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
getRootNameScope
public INameScope getRootNameScope() throws java.lang.Throwable, ArgumentNullException, NotImplementedException, InvalidOperationException, ArgumentException, NotSupportedException, XamlSchemaException, MissingManifestResourceException, ObjectDisposedException, KeyNotFoundException
-
-