|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--step.typedef.Attribute
Abstraction of a STEP attribute.
Attribute values may contain arbitrary string values, however, the generally contain a comma separated list of items. Each attribute is assigned to a particular group, which indicates its applicability.
Constructor Summary | |
Attribute(String group,
String value)
Create a new attribute for the given group, with the given value. |
Method Summary | |
boolean |
equals(Object o)
Compare this attribute to another for equality. |
String |
getGroup()
Get the group for this attribute. |
String |
getValue()
Get the value of this attribute. |
int |
hashCode()
Get the hash code for this attribute. |
static List |
merge(List lowList,
List highList)
Combine two attribute lists, based on priority. |
String |
toStepDL()
Get this attribute as STEP-DL text. |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public Attribute(String group, String value)
Method Detail |
public String getGroup()
public String getValue()
public String toStepDL()
toStepDL
in interface StepDef
public boolean equals(Object o)
equals
in class Object
public int hashCode()
hashCode
in class Object
public static List merge(List lowList, List highList)
while low[i] == high[i] add low[i] add remaining low add remaining high
This algorithm follows the general property that items in an attribute list are processed from first (lowest priority) to last (highest priority).
lowList
- the list of lower priority attributeshighList
- the list of higher priority attributes
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |