Class GeneratedInitialValue

java.lang.Object
edu.nps.moves.dis7.source.generator.pdus.GeneratedInitialValue

public class GeneratedInitialValue extends Object
Represents an initial value for a primitive type. This can be set in a subclass of a given class, for example to initialize a header, like version number of packet type.
Author:
DMcG
  • Constructor Details

    • GeneratedInitialValue

      public GeneratedInitialValue(String pVariable, String pValue)
      Set initial value of variable
      Parameters:
      pVariable - name of variable
      pValue - initial value
  • Method Details

    • getVariable

      public String getVariable()
      get variable name
      Returns:
      variable name
    • setVariable

      public void setVariable(String pVariable)
      set variable name
      Parameters:
      pVariable - new variable name
    • getVariableValue

      public String getVariableValue()
      get variable value
      Returns:
      variable value
    • setVariableValue

      public void setVariableValue(String pValue)
      set variable value
      Parameters:
      pValue - new variable value
    • getSetterMethodName

      public String getSetterMethodName()
      Returns the "standard" method name for a setter, given the variable name.
      Returns:
      method name corresponding to variable setter
    • getSetterMethodNameCSharp

      public String getSetterMethodNameCSharp()
      Returns the "standard" method name for a setter, given the variable name.
      Returns:
      method name corresponding to variable setter
    • initialCapital

      public String initialCapital(String aString)
      returns a string with the first letter capitalized.
      Parameters:
      aString - of interest
      Returns:
      same string with first letter capitalized