Package csw.location.api.models
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$
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
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
Represents a component that controls one or more HCDs or assembliesstatic class
Represents a container for components e.g assemblies and HCDsstatic class
Represents a component that controls a hardware devicestatic class
Represents a Machinestatic class
Represents a sequence component e.g ocs_1, iris_1static class
Represents a component that controls one or more assemblies or sequencersstatic class
Represents a general purpose service component e.g.Nested classes/interfaces inherited from interface enumeratum.EnumEntry
enumeratum.EnumEntry.Camelcase, enumeratum.EnumEntry.CapitalDotcase, enumeratum.EnumEntry.CapitalHyphencase, enumeratum.EnumEntry.CapitalSnakecase, enumeratum.EnumEntry.CapitalWords, enumeratum.EnumEntry.Dotcase, enumeratum.EnumEntry.EnumEntryOps<A extends enumeratum.EnumEntry>, enumeratum.EnumEntry.EnumEntryOps$, enumeratum.EnumEntry.Hyphencase, enumeratum.EnumEntry.LowerCamelcase, enumeratum.EnumEntry.Lowercase, enumeratum.EnumEntry.Snakecase, enumeratum.EnumEntry.Uncapitalised, enumeratum.EnumEntry.Uppercase, enumeratum.EnumEntry.UpperDotcase, enumeratum.EnumEntry.UpperHyphencase, enumeratum.EnumEntry.UpperSnakecase, enumeratum.EnumEntry.UpperWords, enumeratum.EnumEntry.Words
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic String
static scala.collection.immutable.Map<String,
A> protected static scala.collection.immutable.IndexedSeq<A>
static int
indexOf
(A member) static final scala.collection.immutable.Map<String,
ComponentType> name()
The name of ComponentType e.g.static scala.collection.immutable.Map<String,
ComponentType> static final scala.collection.immutable.Map<String,
ComponentType> static scala.collection.immutable.IndexedSeq<ComponentType>
values()
Returns a sequence of all component typesstatic final scala.collection.immutable.Map<ComponentType,
Object> static A
static scala.util.Either<enumeratum.NoSuchMember<A>,
A> withNameEither
(String name) static A
withNameInsensitive
(String name) static scala.util.Either<enumeratum.NoSuchMember<A>,
A> static scala.Option<A>
static A
withNameLowercaseOnly
(String name) static scala.util.Either<enumeratum.NoSuchMember<A>,
A> static scala.Option<A>
static scala.Option<A>
withNameOption
(String name) static A
withNameUppercaseOnly
(String name) static scala.util.Either<enumeratum.NoSuchMember<A>,
A> static scala.Option<A>
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface enumeratum.EnumEntry
entryName, enumeratum$EnumEntry$$stableEntryName
-
Constructor Details
-
ComponentType
-
-
Method Details
-
namesToValuesMap
-
lowerCaseNamesToValuesMap
public static final scala.collection.immutable.Map<String,ComponentType> lowerCaseNamesToValuesMap() -
upperCaseNameValuesToMap
-
valuesToIndex
-
values
Returns a sequence of all component types- Returns:
- (undocumented)
-
extraNamesToValuesMap
-
withName
-
withNameOption
-
withNameEither
-
withNameInsensitive
-
withNameUppercaseOnly
-
withNameLowercaseOnly
-
withNameInsensitiveOption
-
withNameUppercaseOnlyOption
-
withNameLowercaseOnlyOption
-
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
-
messageManifest
-
name
The name of ComponentType e.g. for HCD components, the name will be represented ashcd
.- Returns:
- (undocumented)
-