|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.cau.cs.kieler.kvid.datadistributor.Property
public class Property
Class for storing KViD Properties, it's corresponding values and the currently selected value.
Constructor Summary | |
---|---|
Property(String thename,
String thedefaultvalue)
Constructor for a Property with free text input. |
|
Property(String thename,
String[] thevalues)
Constructor for a Property with a fix set of options. |
|
Property(String theName,
String[] theValues,
List<String> theAssociatedParts)
Constructor for a Property with a fixed set of options and EditParts to which it refer. |
|
Property(String theName,
String theDefaultValue,
List<String> theAssociatedParts)
Constructor for a Property with free text input and EditParts to which it refer . |
Method Summary | |
---|---|
String |
getCurrentValue()
Getter for the Property's current value. |
int |
getCurrentValueNumber()
Gets the value of the currently selected option. |
String |
getName()
Getter for the Property's name. |
String[] |
getValueNames()
Getter for all possible options. |
boolean |
isFreeText()
Method to check whether this is a free text Property. |
boolean |
refersTo(String thePart)
Method to check whether this option is associated with a certain EditPart. |
void |
setCurrentValue(int optionNumber)
Sets the current option by it's number. |
void |
setCurrentValue(String optionName)
Sets the current option by it's name. |
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Property(String thename, String[] thevalues)
thename
- The Property's desired name (must be unique)thevalues
- String array containing all possible optionspublic Property(String thename, String thedefaultvalue)
thename
- The Property's desired name (must be unique)thedefaultvalue
- The initial value of the Propertypublic Property(String theName, String[] theValues, List<String> theAssociatedParts)
theName
- The Property's desired name (must be unique)theValues
- String array containing all possible optionstheAssociatedParts
- EditParts to which this option referspublic Property(String theName, String theDefaultValue, List<String> theAssociatedParts)
theName
- The Property's desired name (must be unique)theDefaultValue
- The initial value of the PropertytheAssociatedParts
- EditParts to which this option refersMethod Detail |
---|
public String getName()
public String getCurrentValue()
public boolean isFreeText()
public int getCurrentValueNumber()
public String[] getValueNames()
public void setCurrentValue(int optionNumber)
optionNumber
- The number of the option to set topublic void setCurrentValue(String optionName)
optionName
- The name of the option that should become the new current optionpublic boolean refersTo(String thePart)
thePart
- The URI of the object to which the option might refer
public String toString()
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |