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.
  • 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.
  • getLibrary() → String
  • Gets the name of the library or module where the object type is defined.
    • Returns the name of the library or module.
  • getName() → String
  • Get the name of the object type.
    • Returns 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.
  • override
    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.