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.StringassemblyFullNameFully assembly qualified name: System.Xaml, Version=4.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=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.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) 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: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, ObjectDisposedException- Throws:
java.lang.ThrowableObjectDisposedException
-
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:
WriteEndMemberin classXamlWriter- Throws:
java.lang.ThrowableObjectDisposedExceptionArgumentExceptionArgumentNullExceptionInvalidOperationExceptionMissingMethodExceptionTargetInvocationExceptionArgumentOutOfRangeExceptionFormatExceptionMissingManifestResourceExceptionNotImplementedExceptionAbandonedMutexExceptionXamlExceptionNotSupportedExceptionXamlSchemaExceptionIndexOutOfRangeExceptionKeyNotFoundExceptionOutOfMemoryExceptionXamlObjectWriterExceptionXamlInternalExceptionAmbiguousMatchException
-
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:
WriteEndObjectin classXamlWriter- Throws:
java.lang.ThrowableObjectDisposedExceptionArgumentNullExceptionArgumentExceptionFormatExceptionMissingManifestResourceExceptionNotImplementedExceptionInvalidOperationExceptionArgumentOutOfRangeExceptionXamlExceptionIndexOutOfRangeExceptionNotSupportedExceptionXamlSchemaExceptionOutOfMemoryExceptionXamlObjectWriterExceptionXamlInternalExceptionXamlParseExceptionKeyNotFoundException
-
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:
WriteGetObjectin classXamlWriter- Throws:
java.lang.ThrowableObjectDisposedExceptionArgumentNullExceptionArgumentExceptionInvalidOperationExceptionMissingMethodExceptionTargetInvocationExceptionArgumentOutOfRangeExceptionFormatExceptionMissingManifestResourceExceptionNotImplementedExceptionAbandonedMutexExceptionXamlExceptionIndexOutOfRangeExceptionNotSupportedExceptionXamlSchemaExceptionOutOfMemoryExceptionXamlObjectWriterExceptionXamlInternalExceptionXamlParseExceptionKeyNotFoundException
-
WriteNamespace
public void WriteNamespace(NamespaceDeclaration namespaceDeclaration) throws java.lang.Throwable, ObjectDisposedException, ArgumentNullException, ArgumentException, InvalidOperationException, MissingMethodException, TargetInvocationException, ArgumentOutOfRangeException, FormatException, MissingManifestResourceException, NotImplementedException, AbandonedMutexException, XamlException
- Overrides:
WriteNamespacein classXamlWriter- Throws:
java.lang.ThrowableObjectDisposedExceptionArgumentNullExceptionArgumentExceptionInvalidOperationExceptionMissingMethodExceptionTargetInvocationExceptionArgumentOutOfRangeExceptionFormatExceptionMissingManifestResourceExceptionNotImplementedExceptionAbandonedMutexExceptionXamlException
-
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:
WriteStartMemberin classXamlWriter- Throws:
java.lang.ThrowableObjectDisposedExceptionArgumentNullExceptionArgumentExceptionInvalidOperationExceptionMissingMethodExceptionTargetInvocationExceptionArgumentOutOfRangeExceptionFormatExceptionMissingManifestResourceExceptionNotImplementedExceptionAbandonedMutexExceptionXamlExceptionNotSupportedExceptionXamlSchemaExceptionKeyNotFoundExceptionIndexOutOfRangeExceptionOutOfMemoryExceptionXamlObjectWriterExceptionXamlInternalExceptionXamlParseException
-
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:
WriteStartObjectin classXamlWriter- Throws:
java.lang.ThrowableObjectDisposedExceptionArgumentExceptionArgumentNullExceptionInvalidOperationExceptionMissingMethodExceptionTargetInvocationExceptionArgumentOutOfRangeExceptionFormatExceptionMissingManifestResourceExceptionNotImplementedExceptionAbandonedMutexExceptionXamlExceptionKeyNotFoundExceptionXamlSchemaExceptionIndexOutOfRangeExceptionNotSupportedExceptionXamlParseException
-
WriteValue
public void WriteValue(NetObject value) throws java.lang.Throwable, ObjectDisposedException, ArgumentNullException, ArgumentException, FormatException, MissingManifestResourceException, NotImplementedException, InvalidOperationException, ArgumentOutOfRangeException, XamlException, IndexOutOfRangeException, NotSupportedException, KeyNotFoundException, XamlSchemaException
- Overrides:
WriteValuein classXamlWriter- Throws:
java.lang.ThrowableObjectDisposedExceptionArgumentNullExceptionArgumentExceptionFormatExceptionMissingManifestResourceExceptionNotImplementedExceptionInvalidOperationExceptionArgumentOutOfRangeExceptionXamlExceptionIndexOutOfRangeExceptionNotSupportedExceptionKeyNotFoundExceptionXamlSchemaException
-
getShouldProvideLineInfo
public boolean getShouldProvideLineInfo() throws java.lang.Throwable, ObjectDisposedException- Throws:
java.lang.ThrowableObjectDisposedException
-
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
-
-