Uploaded image for project: 'OpenFAST'
  1. OpenFAST
  2. FAST-18

Hide all value objects and abstract value object functionality behind static factory methods in a new Values class

    Details

    • Type: Improvement
    • Status: Open
    • Priority: Default
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: 1.3.0
    • Component/s: None
    • Labels:
      None

      Description

      Client code should not have access to IntegerValue, StringValue, LongValue, ... These values should be made protected and moved to the package org.openfast.value. A new class org.openfast.value.Values should be used to construct these objects.

      public class Values {
      private Values() {}
      public static integer(String value)

      {...}
      public static integer(int value) {...}

      public static integer(long value)

      {...}
      public static ulong(long value) {...}

      public static string(String value)

      {...}
      public static byteVector(String hexString) {...}

      public static byteVector(byte[] value)

      {...}
      public static decimal(String value) {...}

      public static decimal(double value, int precision)

      {...}
      public static decimal(BigDecimal value) {...}

      }

        Attachments

          Activity

            People

            • Assignee:
              jacob_northey Jacob Northey
              Reporter:
              jacob_northey Jacob Northey
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated: