Class ComponentType

java.lang.Object
csw.location.api.models.ComponentType
All Implemented Interfaces:
enumeratum.EnumEntry
Direct Known Subclasses:
ComponentType.Assembly$, ComponentType.Container$, ComponentType.HCD$, ComponentType.Machine$, ComponentType.SequenceComponent$, ComponentType.Sequencer$, ComponentType.Service$

public abstract class ComponentType extends Object implements enumeratum.EnumEntry
Represents a type of the Component. It should be serializable since it has to be transmittable over the network. The type will always be represented in lower case.

param: messageManifest represents the class name of message that a component will understand

  • Constructor Details

    • ComponentType

      public ComponentType(String messageManifest)
  • Method Details

    • namesToValuesMap

      public static scala.collection.immutable.Map<String,ComponentType> namesToValuesMap()
    • lowerCaseNamesToValuesMap

      public static final scala.collection.immutable.Map<String,ComponentType> lowerCaseNamesToValuesMap()
    • upperCaseNameValuesToMap

      public static final scala.collection.immutable.Map<String,ComponentType> upperCaseNameValuesToMap()
    • valuesToIndex

      public static final scala.collection.immutable.Map<ComponentType,Object> valuesToIndex()
    • values

      public static scala.collection.immutable.IndexedSeq<ComponentType> values()
      Returns a sequence of all component types
      Returns:
      (undocumented)
    • extraNamesToValuesMap

      public static scala.collection.immutable.Map<String,A> extraNamesToValuesMap()
    • withName

      public static A withName(String name)
    • withNameOption

      public static scala.Option<A> withNameOption(String name)
    • withNameEither

      public static scala.util.Either<enumeratum.NoSuchMember<A>,A> withNameEither(String name)
    • withNameInsensitive

      public static A withNameInsensitive(String name)
    • withNameUppercaseOnly

      public static A withNameUppercaseOnly(String name)
    • withNameLowercaseOnly

      public static A withNameLowercaseOnly(String name)
    • withNameInsensitiveOption

      public static scala.Option<A> withNameInsensitiveOption(String name)
    • withNameUppercaseOnlyOption

      public static scala.Option<A> withNameUppercaseOnlyOption(String name)
    • withNameLowercaseOnlyOption

      public static scala.Option<A> withNameLowercaseOnlyOption(String name)
    • withNameInsensitiveEither

      public static scala.util.Either<enumeratum.NoSuchMember<A>,A> withNameInsensitiveEither(String name)
    • withNameUppercaseOnlyEither

      public static scala.util.Either<enumeratum.NoSuchMember<A>,A> withNameUppercaseOnlyEither(String name)
    • withNameLowercaseOnlyEither

      public static scala.util.Either<enumeratum.NoSuchMember<A>,A> withNameLowercaseOnlyEither(String name)
    • indexOf

      public static int indexOf(A member)
    • findValues

      protected static scala.collection.immutable.IndexedSeq<A> findValues()
    • enumeratum$Enum$$existingEntriesString

      public static String enumeratum$Enum$$existingEntriesString()
    • messageManifest

      public String messageManifest()
    • name

      public String name()
      The name of ComponentType e.g. for HCD components, the name will be represented as hcd.
      Returns:
      (undocumented)