Class GeneratedInitialValue
java.lang.Object
edu.nps.moves.dis7.source.generator.pdus.GeneratedInitialValue
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 Summary
ConstructorsConstructorDescriptionGeneratedInitialValue
(String pVariable, String pValue) Set initial value of variable -
Method Summary
Modifier and TypeMethodDescriptionReturns the "standard" method name for a setter, given the variable name.Returns the "standard" method name for a setter, given the variable name.get variable nameget variable valueinitialCapital
(String aString) returns a string with the first letter capitalized.void
setVariable
(String pVariable) set variable namevoid
setVariableValue
(String pValue) set variable value
-
Constructor Details
-
GeneratedInitialValue
Set initial value of variable- Parameters:
pVariable
- name of variablepValue
- initial value
-
-
Method Details
-
getVariable
get variable name- Returns:
- variable name
-
setVariable
set variable name- Parameters:
pVariable
- new variable name
-
getVariableValue
get variable value- Returns:
- variable value
-
setVariableValue
set variable value- Parameters:
pValue
- new variable value
-
getSetterMethodName
Returns the "standard" method name for a setter, given the variable name.- Returns:
- method name corresponding to variable setter
-
getSetterMethodNameCSharp
Returns the "standard" method name for a setter, given the variable name.- Returns:
- method name corresponding to variable setter
-
initialCapital
returns a string with the first letter capitalized.- Parameters:
aString
- of interest- Returns:
- same string with first letter capitalized
-