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=8.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=8.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=8.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, XamlObjectWriterSettings settings) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, ArgumentNullException, NotImplementedException, XamlException
-
XamlObjectWriter
public XamlObjectWriter(XamlSchemaContext schemaContext) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, ArgumentNullException, NotImplementedException, 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, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, NotSupportedException, ObjectDisposedException, RankException, IndexOutOfRangeException
-
SetLineInfo
public void SetLineInfo(int lineNumber, int linePosition) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, NotSupportedException, ObjectDisposedException, RankException, IndexOutOfRangeException, FormatException, OutOfMemoryException, XamlInternalException, XamlException
- Throws:
java.lang.Throwable
ArgumentException
ArgumentOutOfRangeException
ArgumentNullException
InvalidOperationException
PlatformNotSupportedException
ArrayTypeMismatchException
NotSupportedException
ObjectDisposedException
RankException
IndexOutOfRangeException
FormatException
OutOfMemoryException
XamlInternalException
XamlException
-
WriteEndMember
public void WriteEndMember() throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, NotSupportedException, ObjectDisposedException, RankException, IndexOutOfRangeException, FormatException, XamlException, MethodAccessException, MissingMethodException, MemberAccessException, TargetInvocationException, MissingMemberException, TypeLoadException, SecurityException, OutOfMemoryException, XamlSchemaException, KeyNotFoundException, XamlObjectWriterException, XamlInternalException, AmbiguousMatchException
- Overrides:
WriteEndMember
in classXamlWriter
- Throws:
java.lang.Throwable
ArgumentException
ArgumentOutOfRangeException
ArgumentNullException
InvalidOperationException
PlatformNotSupportedException
ArrayTypeMismatchException
NotSupportedException
ObjectDisposedException
RankException
IndexOutOfRangeException
FormatException
XamlException
MethodAccessException
MissingMethodException
MemberAccessException
TargetInvocationException
MissingMemberException
TypeLoadException
SecurityException
OutOfMemoryException
XamlSchemaException
KeyNotFoundException
XamlObjectWriterException
XamlInternalException
AmbiguousMatchException
-
WriteEndObject
public void WriteEndObject() throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, NotSupportedException, ObjectDisposedException, RankException, IndexOutOfRangeException, XamlException, FormatException, OutOfMemoryException, XamlSchemaException, MissingMethodException, TargetInvocationException, MissingMemberException, NotImplementedException, XamlObjectWriterException, XamlInternalException, XamlParseException, KeyNotFoundException
- Overrides:
WriteEndObject
in classXamlWriter
- Throws:
java.lang.Throwable
ArgumentException
ArgumentOutOfRangeException
ArgumentNullException
InvalidOperationException
PlatformNotSupportedException
ArrayTypeMismatchException
NotSupportedException
ObjectDisposedException
RankException
IndexOutOfRangeException
XamlException
FormatException
OutOfMemoryException
XamlSchemaException
MissingMethodException
TargetInvocationException
MissingMemberException
NotImplementedException
XamlObjectWriterException
XamlInternalException
XamlParseException
KeyNotFoundException
-
WriteGetObject
public void WriteGetObject() throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, NotSupportedException, ObjectDisposedException, RankException, IndexOutOfRangeException, XamlException, FormatException, MissingMethodException, TargetInvocationException, MissingMemberException, OutOfMemoryException, XamlSchemaException, XamlObjectWriterException, XamlInternalException, XamlParseException, KeyNotFoundException
- Overrides:
WriteGetObject
in classXamlWriter
- Throws:
java.lang.Throwable
ArgumentException
ArgumentOutOfRangeException
ArgumentNullException
InvalidOperationException
PlatformNotSupportedException
ArrayTypeMismatchException
NotSupportedException
ObjectDisposedException
RankException
IndexOutOfRangeException
XamlException
FormatException
MissingMethodException
TargetInvocationException
MissingMemberException
OutOfMemoryException
XamlSchemaException
XamlObjectWriterException
XamlInternalException
XamlParseException
KeyNotFoundException
-
WriteNamespace
public void WriteNamespace(NamespaceDeclaration namespaceDeclaration) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, NotSupportedException, ObjectDisposedException, RankException, IndexOutOfRangeException, XamlException, FormatException
- Overrides:
WriteNamespace
in classXamlWriter
- Throws:
java.lang.Throwable
ArgumentException
ArgumentOutOfRangeException
ArgumentNullException
InvalidOperationException
PlatformNotSupportedException
ArrayTypeMismatchException
NotSupportedException
ObjectDisposedException
RankException
IndexOutOfRangeException
XamlException
FormatException
-
WriteStartMember
public void WriteStartMember(XamlMember property) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, NotSupportedException, ObjectDisposedException, RankException, IndexOutOfRangeException, MethodAccessException, MissingMethodException, MemberAccessException, TargetInvocationException, MissingMemberException, FormatException, XamlException, XamlSchemaException, NotImplementedException, XamlObjectWriterException, XamlInternalException, XamlParseException, OutOfMemoryException, KeyNotFoundException
- Overrides:
WriteStartMember
in classXamlWriter
- Throws:
java.lang.Throwable
ArgumentException
ArgumentOutOfRangeException
ArgumentNullException
InvalidOperationException
PlatformNotSupportedException
ArrayTypeMismatchException
NotSupportedException
ObjectDisposedException
RankException
IndexOutOfRangeException
MethodAccessException
MissingMethodException
MemberAccessException
TargetInvocationException
MissingMemberException
FormatException
XamlException
XamlSchemaException
NotImplementedException
XamlObjectWriterException
XamlInternalException
XamlParseException
OutOfMemoryException
KeyNotFoundException
-
WriteStartObject
public void WriteStartObject(XamlType xamlType) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, NotSupportedException, ObjectDisposedException, RankException, IndexOutOfRangeException, XamlException, XamlSchemaException, KeyNotFoundException, OutOfMemoryException, FormatException, FileLoadException, CultureNotFoundException, SecurityException, XamlParseException
- Overrides:
WriteStartObject
in classXamlWriter
- Throws:
java.lang.Throwable
ArgumentException
ArgumentOutOfRangeException
ArgumentNullException
InvalidOperationException
PlatformNotSupportedException
ArrayTypeMismatchException
NotSupportedException
ObjectDisposedException
RankException
IndexOutOfRangeException
XamlException
XamlSchemaException
KeyNotFoundException
OutOfMemoryException
FormatException
FileLoadException
CultureNotFoundException
SecurityException
XamlParseException
-
WriteValue
public void WriteValue(NetObject value) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, NotSupportedException, ObjectDisposedException, RankException, IndexOutOfRangeException, XamlException, FormatException, OutOfMemoryException, KeyNotFoundException, MethodAccessException, MissingMethodException, MemberAccessException, TargetInvocationException, MissingMemberException, XamlSchemaException, NotImplementedException, TypeLoadException
- Overrides:
WriteValue
in classXamlWriter
- Throws:
java.lang.Throwable
ArgumentException
ArgumentOutOfRangeException
ArgumentNullException
InvalidOperationException
PlatformNotSupportedException
ArrayTypeMismatchException
NotSupportedException
ObjectDisposedException
RankException
IndexOutOfRangeException
XamlException
FormatException
OutOfMemoryException
KeyNotFoundException
MethodAccessException
MissingMethodException
MemberAccessException
TargetInvocationException
MissingMemberException
XamlSchemaException
NotImplementedException
TypeLoadException
-
getShouldProvideLineInfo
public boolean getShouldProvideLineInfo() throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, NotSupportedException, ObjectDisposedException, RankException, IndexOutOfRangeException
-
getResult
public NetObject getResult() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
getRootNameScope
public INameScope getRootNameScope() throws java.lang.Throwable, PlatformNotSupportedException, InvalidOperationException, ArgumentException, NotSupportedException, XamlSchemaException, ArgumentNullException
- Throws:
java.lang.Throwable
PlatformNotSupportedException
InvalidOperationException
ArgumentException
NotSupportedException
XamlSchemaException
ArgumentNullException
-
-