public class DataContract extends NetObject
.NET documentation at https://learn.microsoft.com/dotnet/api/System.Runtime.Serialization.DataContracts.DataContract
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.Private.DataContractSerialization, Version=9.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
|
static java.lang.String |
assemblyShortName
Assembly name: System.Private.DataContractSerialization
|
static java.lang.String |
className
Qualified class name: System.Runtime.Serialization.DataContracts.DataContract
|
static JCType |
classType
The type managed from JCOBridge.
|
| Constructor and Description |
|---|
DataContract() |
DataContract(java.lang.Object instance)
Internal constructor.
|
| Modifier and Type | Method and Description |
|---|---|
static DataContract |
cast(IJCOBridgeReflected from)
Try to cast the
IJCOBridgeReflected instance into DataContract, a cast assert is made to check if types are compatible. |
XmlQualifiedName |
GetArrayTypeName(boolean isNullable)
Invokes the .NET member GetArrayTypeName.
|
DataContract |
getBaseContract()
Gets the value of the .NET property BaseContract.
|
static DataContract |
GetBuiltInDataContract(java.lang.String name,
java.lang.String ns)
Invokes the .NET member GetBuiltInDataContract.
|
java.lang.String |
getContractType()
Gets the value of the .NET property ContractType.
|
ReadOnlyCollection_1 |
getDataMembers()
Gets the value of the .NET property DataMembers.
|
boolean |
getIsBuiltInDataContract()
Gets the value of the .NET property IsBuiltInDataContract.
|
boolean |
getIsISerializable()
Gets the value of the .NET property IsISerializable.
|
boolean |
getIsReference()
Gets the value of the .NET property IsReference.
|
boolean |
getIsValueType()
Gets the value of the .NET property IsValueType.
|
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. |
Dictionary_2 |
getKnownDataContracts()
Gets the value of the .NET property KnownDataContracts.
|
NetType |
getOriginalUnderlyingType()
Gets the value of the .NET property OriginalUnderlyingType.
|
XmlDictionaryString |
getTopLevelElementName()
Gets the value of the .NET property TopLevelElementName.
|
XmlDictionaryString |
getTopLevelElementNamespace()
Gets the value of the .NET property TopLevelElementNamespace.
|
NetType |
getUnderlyingType()
Gets the value of the .NET property UnderlyingType.
|
XmlQualifiedName |
getXmlName()
Gets the value of the .NET property XmlName.
|
static XmlQualifiedName |
GetXmlName(NetType type)
Invokes the .NET member GetXmlName.
|
boolean |
IsDictionaryLike(JCORefOut keyName,
JCORefOut valueName,
JCORefOut itemName)
Invokes the .NET member IsDictionaryLike.
|
void |
setIsISerializable(boolean IsISerializable)
Sets the value of the .NET property IsISerializable.
|
void |
setIsReference(boolean IsReference)
Sets the value of the .NET property IsReference.
|
void |
setIsValueType(boolean IsValueType)
Sets the value of the .NET property IsValueType.
|
void |
setJCOInstance(JCObject instance)
Sets the underlying object managed by the bridge.
|
void |
setKnownDataContracts(Dictionary_2 KnownDataContracts)
Sets the value of the .NET property KnownDataContracts.
|
void |
setTopLevelElementName(XmlDictionaryString TopLevelElementName)
Sets the value of the .NET property TopLevelElementName.
|
void |
setTopLevelElementNamespace(XmlDictionaryString TopLevelElementNamespace)
Sets the value of the .NET property TopLevelElementNamespace.
|
void |
setXmlName(XmlQualifiedName XmlName)
Sets the value of the .NET property XmlName.
|
public static final java.lang.String assemblyFullName
public static final java.lang.String assemblyShortName
public static final java.lang.String className
public DataContract()
throws java.lang.Throwable
java.lang.Throwablepublic DataContract(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 static DataContract cast(IJCOBridgeReflected from) throws java.lang.Throwable
IJCOBridgeReflected instance into DataContract, a cast assert is made to check if types are compatible.from - IJCOBridgeReflected instance to be castedDataContract instancejava.lang.Throwable - in case of error during cast operationpublic XmlQualifiedName GetArrayTypeName(boolean isNullable) throws java.lang.Throwable, NotSupportedException, ArgumentException, ArgumentNullException, InvalidOperationException, XmlSchemaException, ArgumentOutOfRangeException, XmlException, PlatformNotSupportedException, InvalidDataContractException, OutOfMemoryException, NullReferenceException, NotImplementedException, RegexMatchTimeoutException, ArrayTypeMismatchException
isNullable - the argument of type booleanjava.lang.Throwable - if the call fails in the bridge or in the CLRNotSupportedException - if the .NET member raises itArgumentException - if the .NET member raises itArgumentNullException - if the .NET member raises itInvalidOperationException - if the .NET member raises itXmlSchemaException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itXmlException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itInvalidDataContractException - if the .NET member raises itOutOfMemoryException - if the .NET member raises itNullReferenceException - if the .NET member raises itNotImplementedException - if the .NET member raises itRegexMatchTimeoutException - if the .NET member raises itArrayTypeMismatchException - if the .NET member raises itpublic DataContract getBaseContract() throws java.lang.Throwable
java.lang.Throwable - if the call fails in the bridge or in the CLRpublic static DataContract GetBuiltInDataContract(java.lang.String name, java.lang.String ns) throws java.lang.Throwable, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ArgumentException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, IndexOutOfRangeException, InvalidDataContractException
name - the argument of type java.lang.Stringns - the argument of type java.lang.Stringjava.lang.Throwable - if the call fails in the bridge or in the CLRArgumentOutOfRangeException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itNotSupportedException - if the .NET member raises itArgumentException - 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 itIndexOutOfRangeException - if the .NET member raises itInvalidDataContractException - if the .NET member raises itpublic java.lang.String getContractType()
throws java.lang.Throwable
java.lang.Throwable - if the call fails in the bridge or in the CLRpublic ReadOnlyCollection_1 getDataMembers() throws java.lang.Throwable
java.lang.Throwable - if the call fails in the bridge or in the CLRpublic boolean getIsBuiltInDataContract()
throws java.lang.Throwable
java.lang.Throwable - if the call fails in the bridge or in the CLRpublic boolean getIsISerializable()
throws java.lang.Throwable
java.lang.Throwable - if the call fails in the bridge or in the CLRpublic boolean getIsReference()
throws java.lang.Throwable
java.lang.Throwable - if the call fails in the bridge or in the CLRpublic boolean getIsValueType()
throws java.lang.Throwable
java.lang.Throwable - if the call fails in the bridge or in the CLRpublic java.lang.String getJCOAssemblyName()
NetObjectgetJCOAssemblyName in interface IJCOBridgeReflectedgetJCOAssemblyName in class NetObjectpublic java.lang.String getJCOClassName()
NetObjectgetJCOClassName in interface IJCOBridgeReflectedgetJCOClassName in class NetObjectpublic java.lang.Object getJCOInstance()
NetObjectgetJCOInstance in interface IJCOBridgeReflectedgetJCOInstance in class NetObjectnull if there is nonepublic java.lang.String getJCOObjectName()
NetObjectgetJCOObjectName in interface IJCOBridgeReflectedgetJCOObjectName in class NetObjectpublic JCType getJCOType()
NetObjectJCType of the .NET type.getJCOType in interface IJCOBridgeReflectedgetJCOType in class NetObjectpublic Dictionary_2 getKnownDataContracts() throws java.lang.Throwable
java.lang.Throwable - if the call fails in the bridge or in the CLRpublic NetType getOriginalUnderlyingType() throws java.lang.Throwable
java.lang.Throwable - if the call fails in the bridge or in the CLRpublic XmlDictionaryString getTopLevelElementName() throws java.lang.Throwable
java.lang.Throwable - if the call fails in the bridge or in the CLRpublic XmlDictionaryString getTopLevelElementNamespace() throws java.lang.Throwable
java.lang.Throwable - if the call fails in the bridge or in the CLRpublic NetType getUnderlyingType() throws java.lang.Throwable
java.lang.Throwable - if the call fails in the bridge or in the CLRpublic XmlQualifiedName getXmlName() throws java.lang.Throwable
java.lang.Throwable - if the call fails in the bridge or in the CLRpublic static XmlQualifiedName GetXmlName(NetType type) throws java.lang.Throwable, ArgumentException, NotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, InvalidDataContractException, ArgumentNullException, PlatformNotSupportedException, IndexOutOfRangeException, OutOfMemoryException
type - the argument of type NetTypejava.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 itInvalidDataContractException - if the .NET member raises itArgumentNullException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itIndexOutOfRangeException - if the .NET member raises itOutOfMemoryException - if the .NET member raises itpublic boolean IsDictionaryLike(JCORefOut keyName, JCORefOut valueName, JCORefOut itemName) throws java.lang.Throwable
keyName - the argument of type JCORefOutvalueName - the argument of type JCORefOutitemName - the argument of type JCORefOutjava.lang.Throwable - if the call fails in the bridge or in the CLRpublic void setIsISerializable(boolean IsISerializable)
throws java.lang.Throwable,
ArgumentNullException,
ArgumentException,
PlatformNotSupportedException,
ArgumentOutOfRangeException,
CultureNotFoundException,
NotSupportedException,
InvalidOperationException,
ObjectDisposedException,
InvalidDataContractException
IsISerializable - the new value of the propertyjava.lang.Throwable - if the call fails in the bridge or in the CLRArgumentNullException - if the .NET member raises itArgumentException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itCultureNotFoundException - if the .NET member raises itNotSupportedException - if the .NET member raises itInvalidOperationException - if the .NET member raises itObjectDisposedException - if the .NET member raises itInvalidDataContractException - if the .NET member raises itpublic void setIsReference(boolean IsReference)
throws java.lang.Throwable
IsReference - the new value of the propertyjava.lang.Throwable - if the call fails in the bridge or in the CLRpublic void setIsValueType(boolean IsValueType)
throws java.lang.Throwable
IsValueType - the new value of the propertyjava.lang.Throwable - if the call fails in the bridge or in the CLRpublic void setJCOInstance(JCObject instance)
NetObjectsetJCOInstance in class NetObjectinstance - the new underlying objectpublic void setKnownDataContracts(Dictionary_2 KnownDataContracts) throws java.lang.Throwable
KnownDataContracts - the new value of the propertyjava.lang.Throwable - if the call fails in the bridge or in the CLRpublic void setTopLevelElementName(XmlDictionaryString TopLevelElementName) throws java.lang.Throwable
TopLevelElementName - the new value of the propertyjava.lang.Throwable - if the call fails in the bridge or in the CLRpublic void setTopLevelElementNamespace(XmlDictionaryString TopLevelElementNamespace) throws java.lang.Throwable
TopLevelElementNamespace - the new value of the propertyjava.lang.Throwable - if the call fails in the bridge or in the CLRpublic void setXmlName(XmlQualifiedName XmlName) throws java.lang.Throwable
XmlName - the new value of the propertyjava.lang.Throwable - if the call fails in the bridge or in the CLR