|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.foray.fotree.value.PropertyValueStatic
org.foray.fotree.value.ValueCollection
public class ValueCollection
A collection of one or more other PropertyValue instances that is itself a PropertyValue.
Constructor Summary | |
---|---|
ValueCollection()
Constructor. |
Method Summary | |
---|---|
void |
addItem(PropertyValue pv)
Adds an item to the collection. |
boolean |
canEvalKeyword()
Indicates whether this property value can evaluate to a keyword. |
PvKeyword |
evalKeyword()
Returns the keyword value of this property value. |
int |
getCount()
Returns the number of items in this collection. |
PropertyValue |
getItem(int index)
Returns a specific item from the collection. |
List<PropertyValue> |
getValue()
Returns the list of values in this collection. |
String[] |
toStringArray()
Returns the collection as an array of Strings. |
Methods inherited from class org.foray.fotree.value.PropertyValueStatic |
---|
canEvalColor, canEvalInteger, canEvalLength, canEvalNumeric, canEvalPercentage, evalColor, evalInteger, evalIntegerException, evalKeywordException, evalLength, evalLengthException, evalNumeric, evalPercentage, evalPercentageException, getUnitPower, lengthRequiresFontSize |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ValueCollection()
Method Detail |
---|
public void addItem(PropertyValue pv)
pv
- The item to add to the collection of property values.public List<PropertyValue> getValue()
public int getCount()
public PropertyValue getItem(int index)
index
- The index to the item needed.
public String[] toStringArray()
public boolean canEvalKeyword()
PropertyValue
public PvKeyword evalKeyword()
PropertyValue
PropertyValue.canEvalKeyword()
returns true.
Doing so on other instances may result in an
IllegalStateException
.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |