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.StringassemblyFullNameFully assembly qualified name: System.Xaml, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089static java.lang.StringassemblyShortNameAssembly name: System.Xamlstatic java.lang.StringclassNameQualified class name: System.Xaml.XamlObjectWriterstatic JCTypeclassTypeThe 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 XamlObjectWritercast(IJCOBridgeReflected from)Try to cast theIJCOBridgeReflectedinstance intoXamlObjectWriter, a cast assert is made to check if types are compatible.voidClear()java.lang.StringgetJCOAssemblyName()Returns the reflected Assembly namejava.lang.StringgetJCOClassName()Returns the reflected Class namejava.lang.ObjectgetJCOInstance()Returns the instantiated classjava.lang.StringgetJCOObjectName()Returns the reflected Class name used to build the objectJCTypegetJCOType()Returns the instantiated class TypeNetObjectgetResult()INameScopegetRootNameScope()booleangetShouldProvideLineInfo()voidsetJCOInstance(JCObject instance)voidSetLineInfo(int lineNumber, int linePosition)voidWriteEndMember()voidWriteEndObject()voidWriteGetObject()voidWriteNamespace(NamespaceDeclaration namespaceDeclaration)voidWriteStartMember(XamlMember property)voidWriteStartObject(XamlType xamlType)voidWriteValue(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.ThrowableInternal 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:IJCOBridgeReflectedReturns the reflected Assembly name- Specified by:
getJCOAssemblyNamein interfaceIDisposable- Specified by:
getJCOAssemblyNamein interfaceIJCOBridgeReflected- Overrides:
getJCOAssemblyNamein classXamlWriter- Returns:
- A
Stringrepresenting the Fullname of reflected Assembly
-
getJCOClassName
public java.lang.String getJCOClassName()
Description copied from interface:IJCOBridgeReflectedReturns the reflected Class name- Specified by:
getJCOClassNamein interfaceIDisposable- Specified by:
getJCOClassNamein interfaceIJCOBridgeReflected- Overrides:
getJCOClassNamein classXamlWriter- Returns:
- A
Stringrepresenting the Fullname of reflected Class
-
getJCOObjectName
public java.lang.String getJCOObjectName()
Description copied from interface:IJCOBridgeReflectedReturns the reflected Class name used to build the object- Specified by:
getJCOObjectNamein interfaceIDisposable- Specified by:
getJCOObjectNamein interfaceIJCOBridgeReflected- Overrides:
getJCOObjectNamein classXamlWriter- Returns:
- A
Stringrepresenting the name used to allocated the object in CLR context
-
getJCOInstance
public java.lang.Object getJCOInstance()
Description copied from interface:IJCOBridgeReflectedReturns the instantiated class- Specified by:
getJCOInstancein interfaceIDisposable- Specified by:
getJCOInstancein interfaceIJCOBridgeReflected- Overrides:
getJCOInstancein classXamlWriter- Returns:
- An
Objectrepresenting the CLR instance of the instantiated Class
-
setJCOInstance
public void setJCOInstance(JCObject instance)
- Overrides:
setJCOInstancein classXamlWriter
-
getJCOType
public JCType getJCOType()
Description copied from interface:IJCOBridgeReflectedReturns the instantiated class Type- Specified by:
getJCOTypein interfaceIDisposable- Specified by:
getJCOTypein interfaceIJCOBridgeReflected- Overrides:
getJCOTypein classXamlWriter- Returns:
- A
JCTyperepresenting the CLR Type of the instantiated Class
-
cast
public static XamlObjectWriter cast(IJCOBridgeReflected from) throws java.lang.Throwable
Try to cast theIJCOBridgeReflectedinstance intoXamlObjectWriter, a cast assert is made to check if types are compatible.- Parameters:
from-IJCOBridgeReflectedinstance to be casted- Returns:
XamlObjectWriterinstance- 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.ThrowableArgumentExceptionArgumentOutOfRangeExceptionArgumentNullExceptionInvalidOperationExceptionPlatformNotSupportedExceptionArrayTypeMismatchExceptionNotSupportedExceptionObjectDisposedExceptionRankExceptionIndexOutOfRangeExceptionFormatExceptionOutOfMemoryExceptionXamlInternalExceptionXamlException
-
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:
WriteEndMemberin classXamlWriter- Throws:
java.lang.ThrowableArgumentExceptionArgumentOutOfRangeExceptionArgumentNullExceptionInvalidOperationExceptionPlatformNotSupportedExceptionArrayTypeMismatchExceptionNotSupportedExceptionObjectDisposedExceptionRankExceptionIndexOutOfRangeExceptionFormatExceptionXamlExceptionMethodAccessExceptionMissingMethodExceptionMemberAccessExceptionTargetInvocationExceptionMissingMemberExceptionTypeLoadExceptionSecurityExceptionOutOfMemoryExceptionXamlSchemaExceptionKeyNotFoundExceptionXamlObjectWriterExceptionXamlInternalExceptionAmbiguousMatchException
-
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:
WriteEndObjectin classXamlWriter- Throws:
java.lang.ThrowableArgumentExceptionArgumentOutOfRangeExceptionArgumentNullExceptionInvalidOperationExceptionPlatformNotSupportedExceptionArrayTypeMismatchExceptionNotSupportedExceptionObjectDisposedExceptionRankExceptionIndexOutOfRangeExceptionXamlExceptionFormatExceptionOutOfMemoryExceptionXamlSchemaExceptionMissingMethodExceptionTargetInvocationExceptionMissingMemberExceptionNotImplementedExceptionXamlObjectWriterExceptionXamlInternalExceptionXamlParseExceptionKeyNotFoundException
-
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:
WriteGetObjectin classXamlWriter- Throws:
java.lang.ThrowableArgumentExceptionArgumentOutOfRangeExceptionArgumentNullExceptionInvalidOperationExceptionPlatformNotSupportedExceptionArrayTypeMismatchExceptionNotSupportedExceptionObjectDisposedExceptionRankExceptionIndexOutOfRangeExceptionXamlExceptionFormatExceptionMissingMethodExceptionTargetInvocationExceptionMissingMemberExceptionOutOfMemoryExceptionXamlSchemaExceptionXamlObjectWriterExceptionXamlInternalExceptionXamlParseExceptionKeyNotFoundException
-
WriteNamespace
public void WriteNamespace(NamespaceDeclaration namespaceDeclaration) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, NotSupportedException, ObjectDisposedException, RankException, IndexOutOfRangeException, XamlException, FormatException
- Overrides:
WriteNamespacein classXamlWriter- Throws:
java.lang.ThrowableArgumentExceptionArgumentOutOfRangeExceptionArgumentNullExceptionInvalidOperationExceptionPlatformNotSupportedExceptionArrayTypeMismatchExceptionNotSupportedExceptionObjectDisposedExceptionRankExceptionIndexOutOfRangeExceptionXamlExceptionFormatException
-
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:
WriteStartMemberin classXamlWriter- Throws:
java.lang.ThrowableArgumentExceptionArgumentOutOfRangeExceptionArgumentNullExceptionInvalidOperationExceptionPlatformNotSupportedExceptionArrayTypeMismatchExceptionNotSupportedExceptionObjectDisposedExceptionRankExceptionIndexOutOfRangeExceptionMethodAccessExceptionMissingMethodExceptionMemberAccessExceptionTargetInvocationExceptionMissingMemberExceptionFormatExceptionXamlExceptionXamlSchemaExceptionNotImplementedExceptionXamlObjectWriterExceptionXamlInternalExceptionXamlParseExceptionOutOfMemoryExceptionKeyNotFoundException
-
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:
WriteStartObjectin classXamlWriter- Throws:
java.lang.ThrowableArgumentExceptionArgumentOutOfRangeExceptionArgumentNullExceptionInvalidOperationExceptionPlatformNotSupportedExceptionArrayTypeMismatchExceptionNotSupportedExceptionObjectDisposedExceptionRankExceptionIndexOutOfRangeExceptionXamlExceptionXamlSchemaExceptionKeyNotFoundExceptionOutOfMemoryExceptionFormatExceptionFileLoadExceptionCultureNotFoundExceptionSecurityExceptionXamlParseException
-
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:
WriteValuein classXamlWriter- Throws:
java.lang.ThrowableArgumentExceptionArgumentOutOfRangeExceptionArgumentNullExceptionInvalidOperationExceptionPlatformNotSupportedExceptionArrayTypeMismatchExceptionNotSupportedExceptionObjectDisposedExceptionRankExceptionIndexOutOfRangeExceptionXamlExceptionFormatExceptionOutOfMemoryExceptionKeyNotFoundExceptionMethodAccessExceptionMissingMethodExceptionMemberAccessExceptionTargetInvocationExceptionMissingMemberExceptionXamlSchemaExceptionNotImplementedExceptionTypeLoadException
-
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.ThrowablePlatformNotSupportedExceptionInvalidOperationExceptionArgumentExceptionNotSupportedExceptionXamlSchemaExceptionArgumentNullException
-
-