|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcsli.util.collections.DefaultSlotString
public class DefaultSlotString
| Constructor Summary | |
|---|---|
DefaultSlotString(String outputString)
|
|
| Method Summary | |
|---|---|
String |
get(int i)
Returns the value for the i-th slot, null if none. |
String |
get(String slot)
Returns the value for the slot with the given name. |
String |
getFilledString()
Returns the string with slot values substituted in. |
String |
getOriginalString()
Returns the original string with slot names, but no slot values. |
List |
getSlots()
|
boolean |
isFilled()
|
int |
numSlots()
|
void |
set(int i,
String value)
|
void |
set(String slot,
String value)
Set the slot with the specific name to the value. |
void |
setAll(List valuesList)
Set the values of all slots at once. |
String |
toString()
Must be the same as getFilledString(); |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public DefaultSlotString(String outputString)
| Method Detail |
|---|
public String getOriginalString()
SlotString
getOriginalString in interface SlotStringpublic String getFilledString()
SlotString
getFilledString in interface SlotStringpublic String toString()
SlotString
toString in interface SlotStringtoString in class Objectpublic boolean isFilled()
isFilled in interface SlotString
public void set(int i,
String value)
set in interface SlotString
public void set(String slot,
String value)
SlotString
set in interface SlotStringpublic String get(int i)
SlotString
get in interface SlotStringpublic String get(String slot)
SlotString
get in interface SlotStringpublic void setAll(List valuesList)
SlotString
setAll in interface SlotStringpublic List getSlots()
getSlots in interface SlotStringpublic int numSlots()
numSlots in interface SlotString
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||