Class KeyType<S>

java.lang.Object
csw.params.core.generics.KeyType<S>
Type Parameters:
S - the type of values that will sit against the key in Parameter
All Implemented Interfaces:
enumeratum.EnumEntry, Serializable
Direct Known Subclasses:
KeyType.ChoiceKey$, SimpleKeyType, SimpleKeyTypeWithUnits

public class KeyType<S> extends Object implements enumeratum.EnumEntry, Serializable
Generic marker class for creating various types of Keys.

See Also:
  • Constructor Details

    • KeyType

      public KeyType(io.bullet.borer.Encoder<Object> evidence$1, io.bullet.borer.Decoder<Object> evidence$2)
  • Method Details

    • namesToValuesMap

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

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

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

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

      public static scala.collection.immutable.IndexedSeq<KeyType<?>> values()
      values return a Seq of all KeyTypes provided by csw-messages
      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()
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object that)
      Overrides:
      equals in class Object
    • paramEncoder

      public io.bullet.borer.Encoder<Parameter<S>> paramEncoder()
    • paramCoreDecoder

      public io.bullet.borer.Decoder<ParamCore<S>> paramCoreDecoder()