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=9.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.String
assemblyFullName
Fully assembly qualified name: System.Private.DataContractSerialization, Version=9.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3astatic java.lang.String
assemblyShortName
Assembly name: System.Private.DataContractSerializationstatic java.lang.String
className
Qualified class name: System.Runtime.Serialization.DataContracts.DataContractstatic JCType
classType
The 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 DataContract
cast(IJCOBridgeReflected from)
Try to cast theIJCOBridgeReflected
instance intoDataContract
, a cast assert is made to check if types are compatible.XmlQualifiedName
GetArrayTypeName(boolean isNullable)
DataContract
getBaseContract()
static DataContract
GetBuiltInDataContract(java.lang.String name, java.lang.String ns)
java.lang.String
getContractType()
boolean
getIsBuiltInDataContract()
boolean
getIsISerializable()
boolean
getIsReference()
boolean
getIsValueType()
java.lang.String
getJCOAssemblyName()
Returns the reflected Assembly namejava.lang.String
getJCOClassName()
Returns the reflected Class namejava.lang.Object
getJCOInstance()
Returns the instantiated classjava.lang.String
getJCOObjectName()
Returns the reflected Class name used to build the objectJCType
getJCOType()
Returns the instantiated class TypeNetType
getOriginalUnderlyingType()
XmlDictionaryString
getTopLevelElementName()
XmlDictionaryString
getTopLevelElementNamespace()
NetType
getUnderlyingType()
XmlQualifiedName
getXmlName()
static XmlQualifiedName
GetXmlName(NetType type)
boolean
IsDictionaryLike(JCORefOut keyName, JCORefOut valueName, JCORefOut itemName)
void
setIsISerializable(boolean IsISerializable)
void
setIsReference(boolean IsReference)
void
setIsValueType(boolean IsValueType)
void
setJCOInstance(JCObject instance)
void
setTopLevelElementName(XmlDictionaryString TopLevelElementName)
void
setTopLevelElementNamespace(XmlDictionaryString TopLevelElementNamespace)
void
setXmlName(XmlQualifiedName XmlName)
-
-
-
Field Detail
-
assemblyFullName
public static final java.lang.String assemblyFullName
Fully assembly qualified name: System.Private.DataContractSerialization, Version=9.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:IJCOBridgeReflected
Returns the reflected Assembly name- Specified by:
getJCOAssemblyName
in interfaceIJCOBridgeReflected
- Overrides:
getJCOAssemblyName
in classNetObject
- Returns:
- A
String
representing the Fullname of reflected Assembly
-
getJCOClassName
public java.lang.String getJCOClassName()
Description copied from interface:IJCOBridgeReflected
Returns the reflected Class name- Specified by:
getJCOClassName
in interfaceIJCOBridgeReflected
- Overrides:
getJCOClassName
in classNetObject
- Returns:
- A
String
representing the Fullname of reflected Class
-
getJCOObjectName
public java.lang.String getJCOObjectName()
Description copied from interface:IJCOBridgeReflected
Returns the reflected Class name used to build the object- Specified by:
getJCOObjectName
in interfaceIJCOBridgeReflected
- Overrides:
getJCOObjectName
in classNetObject
- Returns:
- A
String
representing the name used to allocated the object in CLR context
-
getJCOInstance
public java.lang.Object getJCOInstance()
Description copied from interface:IJCOBridgeReflected
Returns the instantiated class- Specified by:
getJCOInstance
in interfaceIJCOBridgeReflected
- Overrides:
getJCOInstance
in classNetObject
- Returns:
- An
Object
representing the CLR instance of the instantiated Class
-
setJCOInstance
public void setJCOInstance(JCObject instance)
- Overrides:
setJCOInstance
in classNetObject
-
getJCOType
public JCType getJCOType()
Description copied from interface:IJCOBridgeReflected
Returns the instantiated class Type- Specified by:
getJCOType
in interfaceIJCOBridgeReflected
- Overrides:
getJCOType
in classNetObject
- Returns:
- A
JCType
representing the CLR Type of the instantiated Class
-
cast
public static DataContract cast(IJCOBridgeReflected from) throws java.lang.Throwable
Try to cast theIJCOBridgeReflected
instance intoDataContract
, a cast assert is made to check if types are compatible.- Parameters:
from
-IJCOBridgeReflected
instance to be casted- Returns:
DataContract
instance- 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, PlatformNotSupportedException, InvalidDataContractException, OutOfMemoryException, NullReferenceException, NotImplementedException, RegexMatchTimeoutException, ArrayTypeMismatchException
- Throws:
java.lang.Throwable
NotSupportedException
ArgumentException
ArgumentNullException
InvalidOperationException
XmlSchemaException
ArgumentOutOfRangeException
XmlException
PlatformNotSupportedException
InvalidDataContractException
OutOfMemoryException
NullReferenceException
NotImplementedException
RegexMatchTimeoutException
ArrayTypeMismatchException
-
GetXmlName
public static XmlQualifiedName GetXmlName(NetType type) throws java.lang.Throwable, ArgumentException, NotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, InvalidDataContractException, ArgumentNullException, PlatformNotSupportedException, IndexOutOfRangeException, OutOfMemoryException
-
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, ArgumentOutOfRangeException, CultureNotFoundException, NotSupportedException, InvalidOperationException, ObjectDisposedException, 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
-
-