Package system.componentmodel
Class TypeConverter
- java.lang.Object
-
- org.mases.jcobridge.netreflection.NetObject
-
- system.componentmodel.TypeConverter
-
- All Implemented Interfaces:
IJCOBridgeReflected
- Direct Known Subclasses:
BaseIListConverter
,BaseNumberConverter
,BooleanConverter
,BrushConverter
,CacheModeConverter
,CharConverter
,CollectionConverter
,ColorConverter
,ColorConverter
,CommandConverter
,ConfigurationConverterBase
,CornerRadiusConverter
,CultureInfoConverter
,CultureInfoIetfLanguageTagConverter
,CursorConverter
,CursorConverter
,DataGridLengthConverter
,DataGridViewCellStyleConverter
,DateOnlyConverter
,DateTimeConverter
,DateTimeOffsetConverter
,DeferrableContentConverter
,DependencyPropertyConverter
,DialogResultConverter
,DoubleCollectionConverter
,DurationConverter
,DynamicResourceExtensionConverter
,EnumConverter
,EventSetterHandlerConverter
,ExpandableObjectConverter
,ExpressionConverter
,ExtendedProtectionPolicyTypeConverter
,FigureLengthConverter
,FontConverter
,FontFamilyConverter
,FontSizeConverter
,FontStretchConverter
,FontStyleConverter
,FontWeightConverter
,GeometryConverter
,GridLengthConverter
,GuidConverter
,ImageConverter
,ImageFormatConverter
,ImageSourceConverter
,InputScopeConverter
,InputScopeNameConverter
,Int32CollectionConverter
,Int32RectConverter
,KeyConverter
,KeyGestureConverter
,KeysConverter
,KeySplineConverter
,KeyTimeConverter
,LengthConverter
,LinkConverter
,ListBindingConverter
,Matrix3DConverter
,MatrixConverter
,ModifierKeysConverter
,MouseActionConverter
,MouseGestureConverter
,MultilineStringConverter
,NameReferenceConverter
,NullableConverter
,OpacityConverter
,PaddingConverter
,PathFigureCollectionConverter
,PixelFormatConverter
,Point3DCollectionConverter
,Point3DConverter
,Point4DConverter
,PointCollectionConverter
,PointConverter
,PointConverter
,PropertyPathConverter
,QuaternionConverter
,Rect3DConverter
,RectangleConverter
,RectConverter
,ReferenceConverter
,RepeatBehaviorConverter
,RequestCachePolicyConverter
,RoutedEventConverter
,SelectionRangeConverter
,SetterTriggerConditionValueConverter
,Size3DConverter
,SizeConverter
,SizeConverter
,SizeFConverter
,StringConverter
,StrokeCollectionConverter
,TableLayoutSettingsTypeConverter
,TemplateBindingExpressionConverter
,TemplateBindingExtensionConverter
,TemplateKeyConverter
,TextDecorationCollectionConverter
,ThemeModeConverter
,ThicknessConverter
,TimeOnlyConverter
,TimeSpanConverter
,TransformConverter
,TreeNodeConverter
,TypeListConverter
,UriTypeConverter
,Vector3DCollectionConverter
,Vector3DConverter
,VectorCollectionConverter
,VectorConverter
,VersionConverter
,VirtualizationCacheLengthConverter
,XamlTypeTypeConverter
,XmlLanguageConverter
public class TypeConverter extends NetObject
The base .NET class managing System.ComponentModel.TypeConverter, System.ComponentModel.TypeConverter, Version=9.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a..NET documentation at https://docs.microsoft.com/en-us/dotnet/api/System.ComponentModel.TypeConverter
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=9.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.TypeConverterstatic JCType
classType
The type managed from JCOBridge.
-
Constructor Summary
Constructors Constructor Description TypeConverter()
TypeConverter(java.lang.Object instance)
Internal constructor.
-
Method Summary
-
-
-
Field Detail
-
assemblyFullName
public static final java.lang.String assemblyFullName
Fully assembly qualified name: System.ComponentModel.TypeConverter, 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.ComponentModel.TypeConverter- See Also:
- Constant Field Values
-
className
public static final java.lang.String className
Qualified class name: System.ComponentModel.TypeConverter- 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 TypeConverter cast(IJCOBridgeReflected from) throws java.lang.Throwable
Try to cast theIJCOBridgeReflected
instance intoTypeConverter
, a cast assert is made to check if types are compatible.- Parameters:
from
-IJCOBridgeReflected
instance to be casted- Returns:
TypeConverter
instance- Throws:
java.lang.Throwable
- in case of error during cast operation
-
CanConvertFrom
public boolean CanConvertFrom(ITypeDescriptorContext context, NetType sourceType) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
CanConvertFrom
public boolean CanConvertFrom(NetType sourceType) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
CanConvertTo
public boolean CanConvertTo(ITypeDescriptorContext context, NetType destinationType) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
CanConvertTo
public boolean CanConvertTo(NetType destinationType) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
GetCreateInstanceSupported
public boolean GetCreateInstanceSupported() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
GetCreateInstanceSupported
public boolean GetCreateInstanceSupported(ITypeDescriptorContext context) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
GetPropertiesSupported
public boolean GetPropertiesSupported() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
GetPropertiesSupported
public boolean GetPropertiesSupported(ITypeDescriptorContext context) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
GetStandardValuesExclusive
public boolean GetStandardValuesExclusive() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
GetStandardValuesExclusive
public boolean GetStandardValuesExclusive(ITypeDescriptorContext context) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
GetStandardValuesSupported
public boolean GetStandardValuesSupported() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
GetStandardValuesSupported
public boolean GetStandardValuesSupported(ITypeDescriptorContext context) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
IsValid
public boolean IsValid(ITypeDescriptorContext context, NetObject value) throws java.lang.Throwable, ArgumentNullException, ArgumentException, PlatformNotSupportedException, ArgumentOutOfRangeException, CultureNotFoundException, NotSupportedException
-
IsValid
public boolean IsValid(NetObject value) throws java.lang.Throwable, ArgumentNullException, ArgumentException, PlatformNotSupportedException, ObjectDisposedException, InvalidOperationException, IndexOutOfRangeException, ArgumentOutOfRangeException, FormatException, NotSupportedException
-
GetStandardValues
public ICollection GetStandardValues() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
GetProperties
public PropertyDescriptorCollection GetProperties(ITypeDescriptorContext context, NetObject value, Attribute[] attributes) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
GetProperties
public PropertyDescriptorCollection GetProperties(ITypeDescriptorContext context, NetObject value) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
GetProperties
public PropertyDescriptorCollection GetProperties(NetObject value) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
ConvertFrom
public NetObject ConvertFrom(ITypeDescriptorContext context, CultureInfo culture, NetObject value) throws java.lang.Throwable, ArgumentNullException, ArgumentException, PlatformNotSupportedException, ArgumentOutOfRangeException, CultureNotFoundException, NotSupportedException, InvalidOperationException, ObjectDisposedException
-
ConvertFrom
public NetObject ConvertFrom(NetObject value) throws java.lang.Throwable, ArgumentNullException, OutOfMemoryException, ArgumentException, CultureNotFoundException, PlatformNotSupportedException, NullReferenceException, NotSupportedException, ArgumentOutOfRangeException, ObjectDisposedException, InvalidOperationException
-
ConvertFromInvariantString
public NetObject ConvertFromInvariantString(ITypeDescriptorContext context, java.lang.String text) throws java.lang.Throwable, ArgumentNullException, ArgumentException, PlatformNotSupportedException, ObjectDisposedException, InvalidOperationException, IndexOutOfRangeException, ArgumentOutOfRangeException, FormatException, NotSupportedException
-
ConvertFromInvariantString
public NetObject ConvertFromInvariantString(java.lang.String text) throws java.lang.Throwable, ArgumentNullException, ArgumentException, PlatformNotSupportedException, ObjectDisposedException, InvalidOperationException, IndexOutOfRangeException, ArgumentOutOfRangeException, FormatException, NotSupportedException
-
ConvertFromString
public NetObject ConvertFromString(ITypeDescriptorContext context, CultureInfo culture, java.lang.String text) throws java.lang.Throwable, ArgumentNullException, ArgumentException, PlatformNotSupportedException, ArgumentOutOfRangeException, CultureNotFoundException, NotSupportedException
-
ConvertFromString
public NetObject ConvertFromString(ITypeDescriptorContext context, java.lang.String text) throws java.lang.Throwable, ArgumentNullException, OutOfMemoryException, ArgumentException, CultureNotFoundException, PlatformNotSupportedException, NullReferenceException, NotSupportedException, ArgumentOutOfRangeException, ObjectDisposedException, InvalidOperationException
-
ConvertFromString
public NetObject ConvertFromString(java.lang.String text) 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, OutOfMemoryException, CultureNotFoundException, NullReferenceException, FormatException, IndexOutOfRangeException
- Throws:
java.lang.Throwable
ArgumentException
ArgumentOutOfRangeException
PlatformNotSupportedException
NotSupportedException
ObjectDisposedException
InvalidOperationException
RankException
ArrayTypeMismatchException
ArgumentNullException
OutOfMemoryException
CultureNotFoundException
NullReferenceException
FormatException
IndexOutOfRangeException
-
ConvertTo
public NetObject ConvertTo(NetObject value, NetType destinationType) throws java.lang.Throwable, ArgumentException, NotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, ArgumentNullException, CultureNotFoundException, PlatformNotSupportedException, NullReferenceException, IndexOutOfRangeException, FormatException
-
CreateInstance
public NetObject CreateInstance(IDictionary propertyValues) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
CreateInstance
public NetObject CreateInstance(ITypeDescriptorContext context, IDictionary propertyValues) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
ConvertToInvariantString
public java.lang.String ConvertToInvariantString(ITypeDescriptorContext context, NetObject value) throws java.lang.Throwable, NotSupportedException, ArgumentException, ArgumentNullException, CultureNotFoundException, PlatformNotSupportedException, NullReferenceException, IndexOutOfRangeException, ArgumentOutOfRangeException, InvalidOperationException, FormatException
-
ConvertToInvariantString
public java.lang.String ConvertToInvariantString(NetObject value) throws java.lang.Throwable, NotSupportedException, ArgumentException, ArgumentNullException, CultureNotFoundException, PlatformNotSupportedException, NullReferenceException, IndexOutOfRangeException, ArgumentOutOfRangeException, InvalidOperationException, FormatException
-
ConvertToString
public java.lang.String ConvertToString(ITypeDescriptorContext context, CultureInfo culture, NetObject value) throws java.lang.Throwable, ArgumentException, NotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, ArgumentNullException, CultureNotFoundException, PlatformNotSupportedException, NullReferenceException, IndexOutOfRangeException, FormatException
-
ConvertToString
public java.lang.String ConvertToString(ITypeDescriptorContext context, NetObject value) throws java.lang.Throwable, ArgumentNullException, OutOfMemoryException, ArgumentException, CultureNotFoundException, PlatformNotSupportedException, NullReferenceException, NotSupportedException, ArgumentOutOfRangeException, ObjectDisposedException, InvalidOperationException, FormatException, IndexOutOfRangeException
- Throws:
java.lang.Throwable
ArgumentNullException
OutOfMemoryException
ArgumentException
CultureNotFoundException
PlatformNotSupportedException
NullReferenceException
NotSupportedException
ArgumentOutOfRangeException
ObjectDisposedException
InvalidOperationException
FormatException
IndexOutOfRangeException
-
ConvertToString
public java.lang.String ConvertToString(NetObject value) throws java.lang.Throwable, ArgumentNullException, OutOfMemoryException, ArgumentException, CultureNotFoundException, PlatformNotSupportedException, NullReferenceException, NotSupportedException, ArgumentOutOfRangeException, ObjectDisposedException, InvalidOperationException, FormatException, IndexOutOfRangeException
- Throws:
java.lang.Throwable
ArgumentNullException
OutOfMemoryException
ArgumentException
CultureNotFoundException
PlatformNotSupportedException
NullReferenceException
NotSupportedException
ArgumentOutOfRangeException
ObjectDisposedException
InvalidOperationException
FormatException
IndexOutOfRangeException
-
-