public class XamlObjectWriter extends XamlWriter
.NET documentation at https://learn.microsoft.com/dotnet/api/System.Xaml.XamlObjectWriter
Powered by JCOBridge: more info at https://www.jcobridge.com
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
assemblyFullName
Fully assembly qualified name: System.Xaml, Version=9.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
|
static java.lang.String |
assemblyShortName
Assembly name: System.Xaml
|
static java.lang.String |
className
Qualified class name: System.Xaml.XamlObjectWriter
|
static JCType |
classType
The type managed from JCOBridge.
|
| Constructor and Description |
|---|
XamlObjectWriter() |
XamlObjectWriter(java.lang.Object instance)
Internal constructor.
|
XamlObjectWriter(XamlSchemaContext schemaContext)
Initializes a new instance by invoking the .NET constructor.
|
XamlObjectWriter(XamlSchemaContext schemaContext,
XamlObjectWriterSettings settings)
Initializes a new instance by invoking the .NET constructor.
|
| Modifier and Type | Method and Description |
|---|---|
static XamlObjectWriter |
cast(IJCOBridgeReflected from)
Try to cast the
IJCOBridgeReflected instance into XamlObjectWriter, a cast assert is made to check if types are compatible. |
void |
Clear()
Invokes the .NET member Clear.
|
java.lang.String |
getJCOAssemblyName()
Returns the full name of the assembly of the .NET type.
|
java.lang.String |
getJCOClassName()
Returns the full name of the .NET type.
|
java.lang.Object |
getJCOInstance()
Returns the underlying object managed by the bridge.
|
java.lang.String |
getJCOObjectName()
Returns the name of the .NET type qualified with its assembly.
|
JCType |
getJCOType()
Returns the
JCType of the .NET type. |
NetObject |
getResult()
Gets the value of the .NET property Result.
|
INameScope |
getRootNameScope()
Gets the value of the .NET property RootNameScope.
|
boolean |
getShouldProvideLineInfo()
Gets the value of the .NET property ShouldProvideLineInfo.
|
void |
setJCOInstance(JCObject instance)
Sets the underlying object managed by the bridge.
|
void |
SetLineInfo(int lineNumber,
int linePosition)
Invokes the .NET member SetLineInfo.
|
void |
WriteEndMember()
Invokes the .NET member WriteEndMember.
|
void |
WriteEndObject()
Invokes the .NET member WriteEndObject.
|
void |
WriteGetObject()
Invokes the .NET member WriteGetObject.
|
void |
WriteNamespace(NamespaceDeclaration namespaceDeclaration)
Invokes the .NET member WriteNamespace.
|
void |
WriteStartMember(XamlMember property)
Invokes the .NET member WriteStartMember.
|
void |
WriteStartObject(XamlType xamlType)
Invokes the .NET member WriteStartObject.
|
void |
WriteValue(NetObject value)
Invokes the .NET member WriteValue.
|
close, Close, getSchemaContextpublic static final java.lang.String assemblyFullName
public static final java.lang.String assemblyShortName
public static final java.lang.String className
public XamlObjectWriter()
throws java.lang.Throwable
java.lang.Throwablepublic XamlObjectWriter(java.lang.Object instance)
throws java.lang.Throwable
instance - the underlying bridge object: it must be a JCObjectjava.lang.Throwable - if instance is not a JCObjectpublic XamlObjectWriter(XamlSchemaContext schemaContext) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, ArgumentNullException, NotImplementedException, XamlException
schemaContext - the argument of type XamlSchemaContextjava.lang.Throwable - if the .NET constructor failsArgumentException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itNotSupportedException - if the .NET member raises itObjectDisposedException - if the .NET member raises itInvalidOperationException - if the .NET member raises itRankException - if the .NET member raises itArrayTypeMismatchException - if the .NET member raises itArgumentNullException - if the .NET member raises itNotImplementedException - if the .NET member raises itXamlException - if the .NET member raises itpublic XamlObjectWriter(XamlSchemaContext schemaContext, XamlObjectWriterSettings settings) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, ArgumentNullException, NotImplementedException, XamlException
schemaContext - the argument of type XamlSchemaContextsettings - the argument of type XamlObjectWriterSettingsjava.lang.Throwable - if the .NET constructor failsArgumentException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itNotSupportedException - if the .NET member raises itObjectDisposedException - if the .NET member raises itInvalidOperationException - if the .NET member raises itRankException - if the .NET member raises itArrayTypeMismatchException - if the .NET member raises itArgumentNullException - if the .NET member raises itNotImplementedException - if the .NET member raises itXamlException - if the .NET member raises itpublic static XamlObjectWriter cast(IJCOBridgeReflected from) throws java.lang.Throwable
IJCOBridgeReflected instance into XamlObjectWriter, a cast assert is made to check if types are compatible.from - IJCOBridgeReflected instance to be castedXamlObjectWriter instancejava.lang.Throwable - in case of error during cast operationpublic void Clear()
throws java.lang.Throwable,
ArgumentException,
NotSupportedException,
InvalidOperationException,
ArgumentOutOfRangeException,
ObjectDisposedException
java.lang.Throwable - if the call fails in the bridge or in the CLRArgumentException - if the .NET member raises itNotSupportedException - if the .NET member raises itInvalidOperationException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itObjectDisposedException - if the .NET member raises itpublic java.lang.String getJCOAssemblyName()
NetObjectgetJCOAssemblyName in interface IJCOBridgeReflectedgetJCOAssemblyName in class XamlWriterpublic java.lang.String getJCOClassName()
NetObjectgetJCOClassName in interface IJCOBridgeReflectedgetJCOClassName in class XamlWriterpublic java.lang.Object getJCOInstance()
NetObjectgetJCOInstance in interface IJCOBridgeReflectedgetJCOInstance in class XamlWriternull if there is nonepublic java.lang.String getJCOObjectName()
NetObjectgetJCOObjectName in interface IJCOBridgeReflectedgetJCOObjectName in class XamlWriterpublic JCType getJCOType()
NetObjectJCType of the .NET type.getJCOType in interface IJCOBridgeReflectedgetJCOType in class XamlWriterpublic NetObject getResult() throws java.lang.Throwable
java.lang.Throwable - if the call fails in the bridge or in the CLRpublic INameScope getRootNameScope() throws java.lang.Throwable, PlatformNotSupportedException, NotSupportedException, InvalidOperationException, ArgumentException, XamlSchemaException, ArgumentNullException
java.lang.Throwable - if the call fails in the bridge or in the CLRPlatformNotSupportedException - if the .NET member raises itNotSupportedException - if the .NET member raises itInvalidOperationException - if the .NET member raises itArgumentException - if the .NET member raises itXamlSchemaException - if the .NET member raises itArgumentNullException - if the .NET member raises itpublic boolean getShouldProvideLineInfo()
throws java.lang.Throwable,
ArgumentException,
NotSupportedException,
InvalidOperationException,
ArgumentOutOfRangeException,
ObjectDisposedException
java.lang.Throwable - if the call fails in the bridge or in the CLRArgumentException - if the .NET member raises itNotSupportedException - if the .NET member raises itInvalidOperationException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itObjectDisposedException - if the .NET member raises itpublic void setJCOInstance(JCObject instance)
NetObjectsetJCOInstance in class XamlWriterinstance - the new underlying objectpublic void SetLineInfo(int lineNumber,
int linePosition)
throws java.lang.Throwable,
ArgumentException,
NotSupportedException,
InvalidOperationException,
ArgumentOutOfRangeException,
ObjectDisposedException,
ArgumentNullException,
IndexOutOfRangeException,
PlatformNotSupportedException,
FormatException,
OutOfMemoryException,
XamlInternalException,
XamlException
lineNumber - the argument of type intlinePosition - the argument of type intjava.lang.Throwable - if the call fails in the bridge or in the CLRArgumentException - if the .NET member raises itNotSupportedException - if the .NET member raises itInvalidOperationException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itObjectDisposedException - if the .NET member raises itArgumentNullException - if the .NET member raises itIndexOutOfRangeException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itFormatException - if the .NET member raises itOutOfMemoryException - if the .NET member raises itXamlInternalException - if the .NET member raises itXamlException - if the .NET member raises itpublic void WriteEndMember()
throws java.lang.Throwable,
ArgumentException,
NotSupportedException,
InvalidOperationException,
ArgumentOutOfRangeException,
ObjectDisposedException,
NullReferenceException,
PlatformNotSupportedException,
IndexOutOfRangeException,
FormatException,
XamlException,
MissingMethodException,
TargetInvocationException,
MissingMemberException,
TypeLoadException,
FileLoadException,
SecurityException,
OutOfMemoryException,
ArgumentNullException,
XamlSchemaException,
KeyNotFoundException,
CultureNotFoundException,
ArrayTypeMismatchException,
XamlObjectWriterException,
XamlInternalException,
AmbiguousMatchException
WriteEndMember in class XamlWriterjava.lang.Throwable - if the call fails in the bridge or in the CLRArgumentException - if the .NET member raises itNotSupportedException - if the .NET member raises itInvalidOperationException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itObjectDisposedException - if the .NET member raises itNullReferenceException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itIndexOutOfRangeException - if the .NET member raises itFormatException - if the .NET member raises itXamlException - if the .NET member raises itMissingMethodException - if the .NET member raises itTargetInvocationException - if the .NET member raises itMissingMemberException - if the .NET member raises itTypeLoadException - if the .NET member raises itFileLoadException - if the .NET member raises itSecurityException - if the .NET member raises itOutOfMemoryException - if the .NET member raises itArgumentNullException - if the .NET member raises itXamlSchemaException - if the .NET member raises itKeyNotFoundException - if the .NET member raises itCultureNotFoundException - if the .NET member raises itArrayTypeMismatchException - if the .NET member raises itXamlObjectWriterException - if the .NET member raises itXamlInternalException - if the .NET member raises itAmbiguousMatchException - if the .NET member raises itpublic void WriteEndObject()
throws java.lang.Throwable,
ArgumentException,
NotSupportedException,
InvalidOperationException,
ArgumentOutOfRangeException,
ObjectDisposedException,
XamlException,
ArgumentNullException,
NullReferenceException,
PlatformNotSupportedException,
IndexOutOfRangeException,
FormatException,
OutOfMemoryException,
XamlSchemaException,
MissingMethodException,
TargetInvocationException,
MissingMemberException,
ArrayTypeMismatchException,
NotImplementedException,
XamlObjectWriterException,
XamlInternalException,
XamlParseException,
KeyNotFoundException
WriteEndObject in class XamlWriterjava.lang.Throwable - if the call fails in the bridge or in the CLRArgumentException - if the .NET member raises itNotSupportedException - if the .NET member raises itInvalidOperationException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itObjectDisposedException - if the .NET member raises itXamlException - if the .NET member raises itArgumentNullException - if the .NET member raises itNullReferenceException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itIndexOutOfRangeException - if the .NET member raises itFormatException - if the .NET member raises itOutOfMemoryException - if the .NET member raises itXamlSchemaException - if the .NET member raises itMissingMethodException - if the .NET member raises itTargetInvocationException - if the .NET member raises itMissingMemberException - if the .NET member raises itArrayTypeMismatchException - if the .NET member raises itNotImplementedException - if the .NET member raises itXamlObjectWriterException - if the .NET member raises itXamlInternalException - if the .NET member raises itXamlParseException - if the .NET member raises itKeyNotFoundException - if the .NET member raises itpublic void WriteGetObject()
throws java.lang.Throwable,
ArgumentException,
NotSupportedException,
InvalidOperationException,
ArgumentOutOfRangeException,
ObjectDisposedException,
XamlException,
NullReferenceException,
PlatformNotSupportedException,
IndexOutOfRangeException,
FormatException,
MissingMethodException,
TargetInvocationException,
MissingMemberException,
OutOfMemoryException,
XamlSchemaException,
XamlObjectWriterException,
XamlInternalException,
XamlParseException,
ArgumentNullException,
KeyNotFoundException
WriteGetObject in class XamlWriterjava.lang.Throwable - if the call fails in the bridge or in the CLRArgumentException - if the .NET member raises itNotSupportedException - if the .NET member raises itInvalidOperationException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itObjectDisposedException - if the .NET member raises itXamlException - if the .NET member raises itNullReferenceException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itIndexOutOfRangeException - if the .NET member raises itFormatException - if the .NET member raises itMissingMethodException - if the .NET member raises itTargetInvocationException - if the .NET member raises itMissingMemberException - if the .NET member raises itOutOfMemoryException - if the .NET member raises itXamlSchemaException - if the .NET member raises itXamlObjectWriterException - if the .NET member raises itXamlInternalException - if the .NET member raises itXamlParseException - if the .NET member raises itArgumentNullException - if the .NET member raises itKeyNotFoundException - if the .NET member raises itpublic void WriteNamespace(NamespaceDeclaration namespaceDeclaration) throws java.lang.Throwable, ArgumentException, NotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, ObjectDisposedException, XamlException, PlatformNotSupportedException, ArgumentNullException, IndexOutOfRangeException, FormatException
WriteNamespace in class XamlWriternamespaceDeclaration - the argument of type NamespaceDeclarationjava.lang.Throwable - if the call fails in the bridge or in the CLRArgumentException - if the .NET member raises itNotSupportedException - if the .NET member raises itInvalidOperationException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itObjectDisposedException - if the .NET member raises itXamlException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itArgumentNullException - if the .NET member raises itIndexOutOfRangeException - if the .NET member raises itFormatException - if the .NET member raises itpublic void WriteStartMember(XamlMember property) throws java.lang.Throwable, ArgumentException, NotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, ObjectDisposedException, MissingMethodException, TargetInvocationException, PlatformNotSupportedException, MissingMemberException, NullReferenceException, ArgumentNullException, IndexOutOfRangeException, FormatException, XamlException, XamlSchemaException, ArrayTypeMismatchException, NotImplementedException, XamlObjectWriterException, XamlInternalException, XamlParseException, OutOfMemoryException, KeyNotFoundException
WriteStartMember in class XamlWriterproperty - the argument of type XamlMemberjava.lang.Throwable - if the call fails in the bridge or in the CLRArgumentException - if the .NET member raises itNotSupportedException - if the .NET member raises itInvalidOperationException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itObjectDisposedException - if the .NET member raises itMissingMethodException - if the .NET member raises itTargetInvocationException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itMissingMemberException - if the .NET member raises itNullReferenceException - if the .NET member raises itArgumentNullException - if the .NET member raises itIndexOutOfRangeException - if the .NET member raises itFormatException - if the .NET member raises itXamlException - if the .NET member raises itXamlSchemaException - if the .NET member raises itArrayTypeMismatchException - if the .NET member raises itNotImplementedException - if the .NET member raises itXamlObjectWriterException - if the .NET member raises itXamlInternalException - if the .NET member raises itXamlParseException - if the .NET member raises itOutOfMemoryException - if the .NET member raises itKeyNotFoundException - if the .NET member raises itpublic void WriteStartObject(XamlType xamlType) throws java.lang.Throwable, ArgumentException, NotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, ObjectDisposedException, XamlException, PlatformNotSupportedException, NullReferenceException, ArgumentNullException, XamlSchemaException, KeyNotFoundException, OutOfMemoryException, ArrayTypeMismatchException, IndexOutOfRangeException, FormatException, FileLoadException, CultureNotFoundException, SecurityException, XamlParseException, UriFormatException
WriteStartObject in class XamlWriterxamlType - the argument of type XamlTypejava.lang.Throwable - if the call fails in the bridge or in the CLRArgumentException - if the .NET member raises itNotSupportedException - if the .NET member raises itInvalidOperationException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itObjectDisposedException - if the .NET member raises itXamlException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itNullReferenceException - if the .NET member raises itArgumentNullException - if the .NET member raises itXamlSchemaException - if the .NET member raises itKeyNotFoundException - if the .NET member raises itOutOfMemoryException - if the .NET member raises itArrayTypeMismatchException - if the .NET member raises itIndexOutOfRangeException - if the .NET member raises itFormatException - if the .NET member raises itFileLoadException - if the .NET member raises itCultureNotFoundException - if the .NET member raises itSecurityException - if the .NET member raises itXamlParseException - if the .NET member raises itUriFormatException - if the .NET member raises itpublic void WriteValue(NetObject value) throws java.lang.Throwable, ArgumentException, NotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, ObjectDisposedException, XamlException, ArgumentNullException, PlatformNotSupportedException, IndexOutOfRangeException, FormatException, OutOfMemoryException, KeyNotFoundException, MissingMethodException, TargetInvocationException, MissingMemberException, XamlSchemaException, NotImplementedException, TypeLoadException
WriteValue in class XamlWritervalue - the argument of type NetObjectjava.lang.Throwable - if the call fails in the bridge or in the CLRArgumentException - if the .NET member raises itNotSupportedException - if the .NET member raises itInvalidOperationException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itObjectDisposedException - if the .NET member raises itXamlException - if the .NET member raises itArgumentNullException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itIndexOutOfRangeException - if the .NET member raises itFormatException - if the .NET member raises itOutOfMemoryException - if the .NET member raises itKeyNotFoundException - if the .NET member raises itMissingMethodException - if the .NET member raises itTargetInvocationException - if the .NET member raises itMissingMemberException - if the .NET member raises itXamlSchemaException - if the .NET member raises itNotImplementedException - if the .NET member raises itTypeLoadException - if the .NET member raises it