Package system.runtime.serialization
Class IFormatterConverterImplementation
- java.lang.Object
-
- org.mases.jcobridge.netreflection.NetObject
-
- system.runtime.serialization.IFormatterConverterImplementation
-
- All Implemented Interfaces:
IJCOBridgeReflected,IFormatterConverter
public class IFormatterConverterImplementation extends NetObject implements IFormatterConverter
The base .NET class managing System.Runtime.Serialization.IFormatterConverter, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089..NET documentation at https://docs.microsoft.com/en-us/dotnet/api/System.Runtime.Serialization.IFormatterConverter
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: mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089static java.lang.StringassemblyShortNameAssembly name: mscorlibstatic java.lang.StringclassNameQualified class name: System.Runtime.Serialization.IFormatterConverterstatic JCTypeclassTypeThe type managed from JCOBridge.
-
Constructor Summary
Constructors Constructor Description IFormatterConverterImplementation(java.lang.Object instance)Internal constructor.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description NetObjectConvert(NetObject value, NetType type)NetObjectConvert(NetObject value, TypeCode typeCode)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 TypebooleanToBoolean(NetObject value)byteToByte(NetObject value)charToChar(NetObject value)DateTimeToDateTime(NetObject value)DecimalToDecimal(NetObject value)doubleToDouble(NetObject value)static IFormatterConverterToIFormatterConverter(IJCOBridgeReflected from)Try to cast theIJCOBridgeReflectedinstance intoIFormatterConverter, a cast assert is made to check if types are compatible.shortToInt16(NetObject value)intToInt32(NetObject value)longToInt64(NetObject value)SByteToSByte(NetObject value)SingleToSingle(NetObject value)java.lang.StringToString(NetObject value)UInt16ToUInt16(NetObject value)UInt32ToUInt32(NetObject value)UInt64ToUInt64(NetObject value)-
Methods inherited from class org.mases.jcobridge.netreflection.NetObject
cast, Equals, Equals, GetHashCode, GetType, hashCode, setJCOInstance, toString, ToString
-
-
-
-
Field Detail
-
assemblyFullName
public static final java.lang.String assemblyFullName
Fully assembly qualified name: mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089- See Also:
- Constant Field Values
-
assemblyShortName
public static final java.lang.String assemblyShortName
Assembly name: mscorlib- See Also:
- Constant Field Values
-
className
public static final java.lang.String className
Qualified class name: System.Runtime.Serialization.IFormatterConverter- 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 interfaceIFormatterConverter- 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 interfaceIFormatterConverter- 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 interfaceIFormatterConverter- 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 interfaceIFormatterConverter- Specified by:
getJCOInstancein interfaceIJCOBridgeReflected- Overrides:
getJCOInstancein classNetObject- Returns:
- An
Objectrepresenting the CLR instance of the instantiated Class
-
getJCOType
public JCType getJCOType()
Description copied from interface:IJCOBridgeReflectedReturns the instantiated class Type- Specified by:
getJCOTypein interfaceIFormatterConverter- Specified by:
getJCOTypein interfaceIJCOBridgeReflected- Overrides:
getJCOTypein classNetObject- Returns:
- A
JCTyperepresenting the CLR Type of the instantiated Class
-
ToIFormatterConverter
public static IFormatterConverter ToIFormatterConverter(IJCOBridgeReflected from) throws java.lang.Throwable
Try to cast theIJCOBridgeReflectedinstance intoIFormatterConverter, a cast assert is made to check if types are compatible.- Parameters:
from-IJCOBridgeReflectedinstance to be casted- Returns:
IFormatterConverterinstance- Throws:
java.lang.Throwable- in case of error during cast operation
-
ToBoolean
public boolean ToBoolean(NetObject value) throws java.lang.Throwable
- Specified by:
ToBooleanin interfaceIFormatterConverter- Throws:
java.lang.Throwable
-
ToByte
public byte ToByte(NetObject value) throws java.lang.Throwable
- Specified by:
ToBytein interfaceIFormatterConverter- Throws:
java.lang.Throwable
-
ToChar
public char ToChar(NetObject value) throws java.lang.Throwable
- Specified by:
ToCharin interfaceIFormatterConverter- Throws:
java.lang.Throwable
-
ToDouble
public double ToDouble(NetObject value) throws java.lang.Throwable
- Specified by:
ToDoublein interfaceIFormatterConverter- Throws:
java.lang.Throwable
-
ToInt16
public short ToInt16(NetObject value) throws java.lang.Throwable
- Specified by:
ToInt16in interfaceIFormatterConverter- Throws:
java.lang.Throwable
-
ToInt32
public int ToInt32(NetObject value) throws java.lang.Throwable
- Specified by:
ToInt32in interfaceIFormatterConverter- Throws:
java.lang.Throwable
-
ToInt64
public long ToInt64(NetObject value) throws java.lang.Throwable
- Specified by:
ToInt64in interfaceIFormatterConverter- Throws:
java.lang.Throwable
-
ToSByte
public SByte ToSByte(NetObject value) throws java.lang.Throwable
- Specified by:
ToSBytein interfaceIFormatterConverter- Throws:
java.lang.Throwable
-
ToSingle
public Single ToSingle(NetObject value) throws java.lang.Throwable
- Specified by:
ToSinglein interfaceIFormatterConverter- Throws:
java.lang.Throwable
-
ToDateTime
public DateTime ToDateTime(NetObject value) throws java.lang.Throwable
- Specified by:
ToDateTimein interfaceIFormatterConverter- Throws:
java.lang.Throwable
-
ToDecimal
public Decimal ToDecimal(NetObject value) throws java.lang.Throwable
- Specified by:
ToDecimalin interfaceIFormatterConverter- Throws:
java.lang.Throwable
-
Convert
public NetObject Convert(NetObject value, NetType type) throws java.lang.Throwable
- Specified by:
Convertin interfaceIFormatterConverter- Throws:
java.lang.Throwable
-
Convert
public NetObject Convert(NetObject value, TypeCode typeCode) throws java.lang.Throwable
- Specified by:
Convertin interfaceIFormatterConverter- Throws:
java.lang.Throwable
-
ToString
public java.lang.String ToString(NetObject value) throws java.lang.Throwable
- Specified by:
ToStringin interfaceIFormatterConverter- Throws:
java.lang.Throwable
-
ToUInt16
public UInt16 ToUInt16(NetObject value) throws java.lang.Throwable
- Specified by:
ToUInt16in interfaceIFormatterConverter- Throws:
java.lang.Throwable
-
ToUInt32
public UInt32 ToUInt32(NetObject value) throws java.lang.Throwable
- Specified by:
ToUInt32in interfaceIFormatterConverter- Throws:
java.lang.Throwable
-
ToUInt64
public UInt64 ToUInt64(NetObject value) throws java.lang.Throwable
- Specified by:
ToUInt64in interfaceIFormatterConverter- Throws:
java.lang.Throwable
-
-