|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.lastbamboo.common.sdp.GenericObject
org.lastbamboo.common.sdp.NameValue
public class NameValue
Generic structure for storing name-value pairs.
| Field Summary | |
|---|---|
protected boolean |
isQuotedString
|
protected String |
name
|
protected String |
quotes
|
protected String |
separator
|
protected Object |
value
|
| Fields inherited from class org.lastbamboo.common.sdp.GenericObject |
|---|
AND, AT, COLON, COMMA, DOT, DOUBLE_QUOTE, EQUALS, GREATER_THAN, HT, immutableClasses, immutableClassNames, indentation, LESS_THAN, LPAREN, matchExpression, NEWLINE, PERCENT, POUND, QUESTION, QUOTE, RETURN, RPAREN, SEMICOLON, SLASH, SP, STAR, stringRepresentation |
| Constructor Summary | |
|---|---|
NameValue()
|
|
NameValue(String n,
Object v)
|
|
| Method Summary | |
|---|---|
Object |
clone()
Clones this object. |
String |
encode()
Get the encoded representation of this namevalue object. |
boolean |
equals(Object other)
Equality comparison predicate. |
String |
getName()
|
Object |
getValue()
|
boolean |
isValueQuoted()
Return true if the value is quoted in doublequotes. |
void |
setName(String n)
Set the name member |
void |
setQuotedValue()
A flag that indicates that doublequotes should be put around the value when encoded (for example name=value when value is doublequoted). |
void |
setSeparator(String sep)
Set the separator for the encoding method below. |
void |
setValue(Object v)
Set the value member |
| Methods inherited from class org.lastbamboo.common.sdp.GenericObject |
|---|
Assert, dbgPrint, dbgPrint, debugDump, debugDump, getIndentation, getMatcher, isMySubclass, makeClone, match, merge, replace, replace, replace, replace, setMatcher, sprint, sprint, sprint, sprint, sprint, sprint, sprint, sprint, sprint |
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected boolean isQuotedString
protected String separator
protected String quotes
protected String name
protected Object value
| Constructor Detail |
|---|
public NameValue()
public NameValue(String n,
Object v)
| Method Detail |
|---|
public void setSeparator(String sep)
public void setQuotedValue()
public boolean isValueQuoted()
public String getName()
public Object getValue()
public void setName(String n)
public void setValue(Object v)
public String encode()
encode in class GenericObjectpublic Object clone()
GenericObject
clone in class GenericObjectpublic boolean equals(Object other)
equals in class GenericObjectother - is the other object to test against.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||