Enum ValueRootType

    • Enum Constant Detail

      • MEASURES

        public static final ValueRootType MEASURES
        Refers to the set of possible calculated measures.
      • PRODUCT

        public static final ValueRootType PRODUCT
        Refers to the product on the trade.
      • SECURITY

        public static final ValueRootType SECURITY
        Refers to the security on the trade.
      • TRADE

        public static final ValueRootType TRADE
        Refers to the trade.
      • POSITION

        public static final ValueRootType POSITION
        Refers to the position.
      • TARGET

        public static final ValueRootType TARGET
        Refers to the target (trade or position).
    • Method Detail

      • values

        public static ValueRootType[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (ValueRootType c : ValueRootType.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static ValueRootType valueOf​(String name)
        Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
        Parameters:
        name - the name of the enum constant to be returned.
        Returns:
        the enum constant with the specified name
        Throws:
        IllegalArgumentException - if this enum type has no constant with the specified name
        NullPointerException - if the argument is null
      • token

        public String token()
        Gets the token that the root type corresponds to.
        Returns:
        the token
      • parseToken

        public static ValueRootType parseToken​(String rootString)
        Parses a string into the corresponding root type.
        Parameters:
        rootString - the token
        Returns:
        the root type corresponding to the given string