|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object mro.util.properties.Property
public class Property
A property of some kind with description. Used in many objects to make presentation of results easier. Handles String, boolean, int, double fairly well... Not for anything else, yet.
Field Summary | |
---|---|
(package private) int |
kind
|
(package private) java.lang.String |
name
|
(package private) java.lang.String |
propertyDescription
|
(package private) java.lang.Object |
value
|
(package private) java.util.Vector |
valueDescriptions
|
Constructor Summary | |
---|---|
|
Property()
|
|
Property(Property p2)
Copy Constructor. |
|
Property(java.lang.String name,
boolean value,
java.lang.String propertyDescription)
|
|
Property(java.lang.String name,
double value,
java.lang.String propertyDescription)
|
|
Property(java.lang.String name,
int value,
java.lang.String propertyDescription)
|
private |
Property(java.lang.String name,
java.lang.Object value,
java.lang.String propertyDescription)
|
|
Property(java.lang.String name,
java.lang.String value,
boolean string,
java.lang.String propertyDescription)
To read from XML files... |
|
Property(java.lang.String name,
java.lang.String value,
java.lang.String propertyDescription)
|
Method Summary | |
---|---|
void |
addValueDescription(PropertyValueDescription cpvd)
|
void |
addVectorOfValueDescriptions(java.util.Vector vvd)
|
boolean |
equals(Property p)
Checks for similarity on all instance variable, except "valueDescriptions". |
java.util.Vector |
getAllValueDescriptions()
|
java.lang.String |
getAppropriateValueDescription()
|
java.lang.String |
getDescription()
|
int |
getKind()
Returns an int telling what kind of value. |
java.lang.String |
getName()
|
java.lang.Object |
getValue()
|
void |
printXML(java.io.PrintWriter pw)
|
void |
setValue(java.lang.Object value)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
java.lang.String name
java.lang.Object value
int kind
java.lang.String propertyDescription
java.util.Vector valueDescriptions
Constructor Detail |
---|
public Property()
private Property(java.lang.String name, java.lang.Object value, java.lang.String propertyDescription)
public Property(java.lang.String name, java.lang.String value, java.lang.String propertyDescription)
public Property(java.lang.String name, int value, java.lang.String propertyDescription)
public Property(java.lang.String name, double value, java.lang.String propertyDescription)
public Property(java.lang.String name, boolean value, java.lang.String propertyDescription)
public Property(Property p2)
public Property(java.lang.String name, java.lang.String value, boolean string, java.lang.String propertyDescription)
Method Detail |
---|
public void setValue(java.lang.Object value)
public java.lang.Object getValue()
public int getKind()
public java.lang.String getName()
public java.lang.String getDescription()
public void addValueDescription(PropertyValueDescription cpvd)
public void addVectorOfValueDescriptions(java.util.Vector vvd)
public java.lang.String getAppropriateValueDescription()
public java.util.Vector getAllValueDescriptions()
public boolean equals(Property p)
public void printXML(java.io.PrintWriter pw) throws java.io.IOException
java.io.IOException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |