All Packages Class Hierarchy This Package Previous Next Index
Class ch.swisslife.ibgm.mc2.Target
java.lang.Object
|
+----ch.swisslife.ibgm.mc2.Target
- public class Target
- extends Object
- implements Cloneable
Data structure for one target
It has several fields for the entries and a setValue and a getValue method to access it.
-
Target(String)
- Constructor with targetname.
-
copy(Target)
- Makes a Copy of itself.
-
getValue(String)
- Gets the values.
-
main(String[])
- Main Method: Only used for testing.
-
setValue(String, String)
- Set the values of the entries.
Target
public Target(String target)
- Constructor with targetname. Inistatiates a new target and puts its name into it.
- Parameters:
- target - String with the name of the target
copy
public Target copy(Target t) throws CloneNotSupportedException
- Makes a Copy of itself.
- Returns:
- Target with a copy of itself and all its structures.
getValue
public String getValue(String arg)
- Gets the values. The Entry which will be returned must be specified.
- Parameters:
- arg - String is the entry which will be given back.
- Returns:
- String is the value of the entry
setValue
public boolean setValue(String arg,
String value)
- Set the values of the entries. The entry must be specified.
- Parameters:
- arg - String containig which entry
- value - String to be stored in the entry
- Returns:
-
true
if successful false
otherwise
main
public static void main(String argv[])
- Main Method: Only used for testing. Creates an Instance of itself and fills in some values.
Note: Shouldn't be used in final version.
- Parameters:
- argv - String[] containing the obligate argument vector'
All Packages Class Hierarchy This Package Previous Next Index