Class DataContract
- java.lang.Object
-
- org.mases.jcobridge.netreflection.NetObject
-
- system.runtime.serialization.datacontracts.DataContract
-
- All Implemented Interfaces:
IJCOBridgeReflected
- Direct Known Subclasses:
XmlDataContract
public class DataContract extends NetObject
The base .NET class managing System.Runtime.Serialization.DataContracts.DataContract, System.Private.DataContractSerialization, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a..NET documentation at https://docs.microsoft.com/en-us/dotnet/api/System.Runtime.Serialization.DataContracts.DataContract
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.Private.DataContractSerialization, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3astatic java.lang.StringassemblyShortNameAssembly name: System.Private.DataContractSerializationstatic java.lang.StringclassNameQualified class name: System.Runtime.Serialization.DataContracts.DataContractstatic JCTypeclassTypeThe type managed from JCOBridge.
-
Constructor Summary
Constructors Constructor Description DataContract()DataContract(java.lang.Object instance)Internal constructor.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static DataContractcast(IJCOBridgeReflected from)Try to cast theIJCOBridgeReflectedinstance intoDataContract, a cast assert is made to check if types are compatible.XmlQualifiedNameGetArrayTypeName(boolean isNullable)DataContractgetBaseContract()static DataContractGetBuiltInDataContract(java.lang.String name, java.lang.String ns)java.lang.StringgetContractType()booleangetIsBuiltInDataContract()booleangetIsISerializable()booleangetIsReference()booleangetIsValueType()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 TypeNetTypegetOriginalUnderlyingType()XmlDictionaryStringgetTopLevelElementName()XmlDictionaryStringgetTopLevelElementNamespace()NetTypegetUnderlyingType()XmlQualifiedNamegetXmlName()static XmlQualifiedNameGetXmlName(NetType type)booleanIsDictionaryLike(JCORefOut keyName, JCORefOut valueName, JCORefOut itemName)voidsetIsISerializable(boolean IsISerializable)voidsetIsReference(boolean IsReference)voidsetIsValueType(boolean IsValueType)voidsetJCOInstance(JCObject instance)voidsetTopLevelElementName(XmlDictionaryString TopLevelElementName)voidsetTopLevelElementNamespace(XmlDictionaryString TopLevelElementNamespace)voidsetXmlName(XmlQualifiedName XmlName)
-
-
-
Field Detail
-
assemblyFullName
public static final java.lang.String assemblyFullName
Fully assembly qualified name: System.Private.DataContractSerialization, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a- See Also:
- Constant Field Values
-
assemblyShortName
public static final java.lang.String assemblyShortName
Assembly name: System.Private.DataContractSerialization- See Also:
- Constant Field Values
-
className
public static final java.lang.String className
Qualified class name: System.Runtime.Serialization.DataContracts.DataContract- See Also:
- Constant Field Values
-
-
Method Detail
-
getJCOAssemblyName
public java.lang.String getJCOAssemblyName()
Description copied from interface:IJCOBridgeReflectedReturns the reflected Assembly name- Specified by:
getJCOAssemblyNamein interfaceIJCOBridgeReflected- Overrides:
getJCOAssemblyNamein classNetObject- 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 interfaceIJCOBridgeReflected- Overrides:
getJCOClassNamein classNetObject- 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 interfaceIJCOBridgeReflected- Overrides:
getJCOObjectNamein classNetObject- 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 interfaceIJCOBridgeReflected- Overrides:
getJCOInstancein classNetObject- Returns:
- An
Objectrepresenting the CLR instance of the instantiated Class
-
setJCOInstance
public void setJCOInstance(JCObject instance)
- Overrides:
setJCOInstancein classNetObject
-
getJCOType
public JCType getJCOType()
Description copied from interface:IJCOBridgeReflectedReturns the instantiated class Type- Specified by:
getJCOTypein interfaceIJCOBridgeReflected- Overrides:
getJCOTypein classNetObject- Returns:
- A
JCTyperepresenting the CLR Type of the instantiated Class
-
cast
public static DataContract cast(IJCOBridgeReflected from) throws java.lang.Throwable
Try to cast theIJCOBridgeReflectedinstance intoDataContract, a cast assert is made to check if types are compatible.- Parameters:
from-IJCOBridgeReflectedinstance to be casted- Returns:
DataContractinstance- Throws:
java.lang.Throwable- in case of error during cast operation
-
IsDictionaryLike
public boolean IsDictionaryLike(JCORefOut keyName, JCORefOut valueName, JCORefOut itemName) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
GetBuiltInDataContract
public 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
-
GetArrayTypeName
public XmlQualifiedName GetArrayTypeName(boolean isNullable) throws java.lang.Throwable, NotSupportedException, ArgumentException, ArgumentNullException, InvalidOperationException, XmlSchemaException, ArgumentOutOfRangeException, XmlException, InvalidDataContractException, PlatformNotSupportedException, IndexOutOfRangeException, NotImplementedException, RegexMatchTimeoutException, ArrayTypeMismatchException, OutOfMemoryException
- Throws:
java.lang.ThrowableNotSupportedExceptionArgumentExceptionArgumentNullExceptionInvalidOperationExceptionXmlSchemaExceptionArgumentOutOfRangeExceptionXmlExceptionInvalidDataContractExceptionPlatformNotSupportedExceptionIndexOutOfRangeExceptionNotImplementedExceptionRegexMatchTimeoutExceptionArrayTypeMismatchExceptionOutOfMemoryException
-
GetXmlName
public static XmlQualifiedName GetXmlName(NetType type) throws java.lang.Throwable, ArgumentException, NotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, InvalidDataContractException, ArgumentNullException, PlatformNotSupportedException, IndexOutOfRangeException, OutOfMemoryException, UriFormatException
-
getIsBuiltInDataContract
public boolean getIsBuiltInDataContract() throws java.lang.Throwable- Throws:
java.lang.Throwable
-
getIsISerializable
public boolean getIsISerializable() throws java.lang.Throwable- Throws:
java.lang.Throwable
-
setIsISerializable
public void setIsISerializable(boolean IsISerializable) throws java.lang.Throwable, ArgumentNullException, ArgumentException, PlatformNotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, CultureNotFoundException, ObjectDisposedException, NotSupportedException, InvalidDataContractException
-
getIsReference
public boolean getIsReference() throws java.lang.Throwable- Throws:
java.lang.Throwable
-
setIsReference
public void setIsReference(boolean IsReference) throws java.lang.Throwable- Throws:
java.lang.Throwable
-
getIsValueType
public boolean getIsValueType() throws java.lang.Throwable- Throws:
java.lang.Throwable
-
setIsValueType
public void setIsValueType(boolean IsValueType) throws java.lang.Throwable- Throws:
java.lang.Throwable
-
getBaseContract
public DataContract getBaseContract() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
getContractType
public java.lang.String getContractType() throws java.lang.Throwable- Throws:
java.lang.Throwable
-
getOriginalUnderlyingType
public NetType getOriginalUnderlyingType() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
getUnderlyingType
public NetType getUnderlyingType() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
getTopLevelElementName
public XmlDictionaryString getTopLevelElementName() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
setTopLevelElementName
public void setTopLevelElementName(XmlDictionaryString TopLevelElementName) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
getTopLevelElementNamespace
public XmlDictionaryString getTopLevelElementNamespace() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
setTopLevelElementNamespace
public void setTopLevelElementNamespace(XmlDictionaryString TopLevelElementNamespace) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
getXmlName
public XmlQualifiedName getXmlName() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
setXmlName
public void setXmlName(XmlQualifiedName XmlName) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
-