Package system.componentmodel
Class NullableConverter
- java.lang.Object
-
- org.mases.jcobridge.netreflection.NetObject
-
- system.componentmodel.TypeConverter
-
- system.componentmodel.NullableConverter
-
- All Implemented Interfaces:
IJCOBridgeReflected
- Direct Known Subclasses:
NullableBoolConverter
public class NullableConverter extends TypeConverter
The base .NET class managing System.ComponentModel.NullableConverter, System.ComponentModel.TypeConverter, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a..NET documentation at https://docs.microsoft.com/en-us/dotnet/api/System.ComponentModel.NullableConverter
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.ComponentModel.TypeConverter, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3astatic java.lang.String
assemblyShortName
Assembly name: System.ComponentModel.TypeConverterstatic java.lang.String
className
Qualified class name: System.ComponentModel.NullableConverterstatic JCType
classType
The type managed from JCOBridge.
-
Constructor Summary
Constructors Constructor Description NullableConverter()
NullableConverter(java.lang.Object instance)
Internal constructor.NullableConverter(NetType type)
-
Method Summary
-
Methods inherited from class system.componentmodel.TypeConverter
CanConvertFrom, CanConvertTo, ConvertFrom, ConvertFromInvariantString, ConvertFromInvariantString, ConvertFromString, ConvertFromString, ConvertFromString, ConvertTo, ConvertToInvariantString, ConvertToInvariantString, ConvertToString, ConvertToString, ConvertToString, CreateInstance, GetCreateInstanceSupported, GetProperties, GetProperties, GetPropertiesSupported, GetStandardValues, GetStandardValuesExclusive, GetStandardValuesSupported, IsValid
-
-
-
-
Field Detail
-
assemblyFullName
public static final java.lang.String assemblyFullName
Fully assembly qualified name: System.ComponentModel.TypeConverter, 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.ComponentModel.TypeConverter- See Also:
- Constant Field Values
-
className
public static final java.lang.String className
Qualified class name: System.ComponentModel.NullableConverter- See Also:
- Constant Field Values
-
-
Constructor Detail
-
NullableConverter
public NullableConverter(java.lang.Object instance) throws java.lang.Throwable
Internal constructor. Use with caution- Throws:
java.lang.Throwable
-
NullableConverter
public NullableConverter() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
NullableConverter
public NullableConverter(NetType type) throws java.lang.Throwable, ArgumentException, NotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, ArgumentNullException, TypeLoadException, PlatformNotSupportedException, KeyNotFoundException
-
-
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 classTypeConverter
- 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 classTypeConverter
- 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 classTypeConverter
- 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 classTypeConverter
- Returns:
- An
Object
representing the CLR instance of the instantiated Class
-
setJCOInstance
public void setJCOInstance(JCObject instance)
- Overrides:
setJCOInstance
in classTypeConverter
-
getJCOType
public JCType getJCOType()
Description copied from interface:IJCOBridgeReflected
Returns the instantiated class Type- Specified by:
getJCOType
in interfaceIJCOBridgeReflected
- Overrides:
getJCOType
in classTypeConverter
- Returns:
- A
JCType
representing the CLR Type of the instantiated Class
-
cast
public static NullableConverter cast(IJCOBridgeReflected from) throws java.lang.Throwable
Try to cast theIJCOBridgeReflected
instance intoNullableConverter
, a cast assert is made to check if types are compatible.- Parameters:
from
-IJCOBridgeReflected
instance to be casted- Returns:
NullableConverter
instance- Throws:
java.lang.Throwable
- in case of error during cast operation
-
CanConvertFrom
public boolean CanConvertFrom(ITypeDescriptorContext context, NetType sourceType) throws java.lang.Throwable
- Overrides:
CanConvertFrom
in classTypeConverter
- Throws:
java.lang.Throwable
-
CanConvertTo
public boolean CanConvertTo(ITypeDescriptorContext context, NetType destinationType) throws java.lang.Throwable
- Overrides:
CanConvertTo
in classTypeConverter
- Throws:
java.lang.Throwable
-
GetCreateInstanceSupported
public boolean GetCreateInstanceSupported(ITypeDescriptorContext context) throws java.lang.Throwable
- Overrides:
GetCreateInstanceSupported
in classTypeConverter
- Throws:
java.lang.Throwable
-
GetPropertiesSupported
public boolean GetPropertiesSupported(ITypeDescriptorContext context) throws java.lang.Throwable
- Overrides:
GetPropertiesSupported
in classTypeConverter
- Throws:
java.lang.Throwable
-
GetStandardValuesExclusive
public boolean GetStandardValuesExclusive(ITypeDescriptorContext context) throws java.lang.Throwable
- Overrides:
GetStandardValuesExclusive
in classTypeConverter
- Throws:
java.lang.Throwable
-
GetStandardValuesSupported
public boolean GetStandardValuesSupported(ITypeDescriptorContext context) throws java.lang.Throwable
- Overrides:
GetStandardValuesSupported
in classTypeConverter
- Throws:
java.lang.Throwable
-
IsValid
public boolean IsValid(ITypeDescriptorContext context, NetObject value) throws java.lang.Throwable, ArgumentNullException, ArgumentException, PlatformNotSupportedException, ObjectDisposedException, InvalidOperationException, IndexOutOfRangeException, ArgumentOutOfRangeException, FormatException, NotSupportedException
- Overrides:
IsValid
in classTypeConverter
- Throws:
java.lang.Throwable
ArgumentNullException
ArgumentException
PlatformNotSupportedException
ObjectDisposedException
InvalidOperationException
IndexOutOfRangeException
ArgumentOutOfRangeException
FormatException
NotSupportedException
-
GetProperties
public PropertyDescriptorCollection GetProperties(ITypeDescriptorContext context, NetObject value, Attribute[] attributes) throws java.lang.Throwable
- Overrides:
GetProperties
in classTypeConverter
- Throws:
java.lang.Throwable
-
ConvertFrom
public NetObject ConvertFrom(ITypeDescriptorContext context, CultureInfo culture, NetObject value) throws java.lang.Throwable, ArgumentNullException, ArgumentException, PlatformNotSupportedException, ArgumentOutOfRangeException, CultureNotFoundException, NotSupportedException
- Overrides:
ConvertFrom
in classTypeConverter
- Throws:
java.lang.Throwable
ArgumentNullException
ArgumentException
PlatformNotSupportedException
ArgumentOutOfRangeException
CultureNotFoundException
NotSupportedException
-
ConvertTo
public NetObject ConvertTo(ITypeDescriptorContext context, CultureInfo culture, NetObject value, NetType destinationType) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, ArgumentNullException, CultureNotFoundException, FormatException, IndexOutOfRangeException
- Overrides:
ConvertTo
in classTypeConverter
- Throws:
java.lang.Throwable
ArgumentException
ArgumentOutOfRangeException
PlatformNotSupportedException
NotSupportedException
ObjectDisposedException
InvalidOperationException
RankException
ArrayTypeMismatchException
ArgumentNullException
CultureNotFoundException
FormatException
IndexOutOfRangeException
-
CreateInstance
public NetObject CreateInstance(ITypeDescriptorContext context, IDictionary propertyValues) throws java.lang.Throwable
- Overrides:
CreateInstance
in classTypeConverter
- Throws:
java.lang.Throwable
-
getUnderlyingTypeConverter
public TypeConverter getUnderlyingTypeConverter() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
getNullableType
public NetType getNullableType() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
getUnderlyingType
public NetType getUnderlyingType() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
-