TypeDescriptor class
Descriptor that points to specific object type by it's name and optional library (or module) where this type is defined.
This class has symmetric implementation across all languages supported by Pip.Services toolkit and used to support dynamic data processing.
Constructors
- TypeDescriptor(String name, String? library)
- Creates a new instance of the type descriptor and sets its values.
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
equals(
dynamic value) → bool - Compares this descriptor to a value. If the value is also a TypeDescriptor it compares their name and library fields. Otherwise this method returns false.
-
getLibrary(
) → String? - Gets the name of the library or module where the object type is defined.
-
getName(
) → String - Get the name of the object type.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
Gets a string representation of the object.
The result has format name
,library
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
fromString(
String? value) → TypeDescriptor? -
Parses a string to get descriptor fields and returns them as a Descriptor.
The string must have format name
,library