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.
-
name
a name of the object type.
-
library
a library or module where this object type is implemented.
- Creates a new instance of the type descriptor and sets its values.
Properties
- hashCode → int
-
The hash code for this object. [...]
read-only, inherited
- runtimeType → Type
-
A representation of the runtime type of the object.
read-only, inherited
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.
-
value
a value to compare.
- Returns true if value is identical TypeDescriptor and false otherwise.
- Compares this descriptor to a value.
-
getLibrary(
) → String -
- Gets the name of the library or module where the object type is defined.
- Returns the name of the library or module.
- Gets the name of the library or module where the object type is defined.
-
getName(
) → String -
- Get the name of the object type.
- Returns the name of the object type.
- Get the name of the object type.
-
toString(
) → String -
- Gets a string representation of the object.
- The result has format name
,library
- Returns a string representation of the object.
- See fromString
override - Gets a string representation of the object.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a non-existent method or property is accessed. [...]
inherited
Operators
-
operator ==(
dynamic 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
-
value
a string to parse.
- Returns a newly created Descriptor.
- Throws a ConfigException if the descriptor string is of a wrong format.
- See toString
- Parses a string to get descriptor fields and returns them as a Descriptor.