|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectthings.data.NVImmutable
public class NVImmutable
This is a name/value pair as strings.
A value can be more than one item.
Version History
EPG - Rewrite from another project - 22 MAY 04
Field Summary | |
---|---|
protected java.lang.String |
name
The Name. |
protected java.lang.String[] |
value
The Values |
Constructor Summary | |
---|---|
NVImmutable(java.lang.String n)
Setting constructor with no value. |
|
NVImmutable(java.lang.String n,
java.lang.String... v)
Setting constructor. |
|
NVImmutable(java.lang.String n,
java.lang.String v)
Setting constructor. |
Method Summary | |
---|---|
java.lang.String[] |
getFlat()
Get flat. |
java.lang.String |
getName()
Get the name. |
java.lang.String |
getValue()
Get the first (and perhaps only) value. |
java.lang.String[] |
getValues()
Get all the values as an array. |
java.util.List<java.lang.String> |
getValuesAsList()
Get all the values as a List. |
boolean |
isMultivalue()
Is multivalue. |
boolean |
isValid()
Validate. |
java.lang.String |
toString()
Returns a string representation of the object. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected java.lang.String name
protected java.lang.String[] value
Constructor Detail |
---|
public NVImmutable(java.lang.String n)
n
- the namepublic NVImmutable(java.lang.String n, java.lang.String v)
n
- the namev
- the valuepublic NVImmutable(java.lang.String n, java.lang.String... v)
n
- the namev
- the valueMethod Detail |
---|
public java.lang.String getName()
public java.lang.String getValue()
public java.lang.String[] getFlat()
public java.lang.String[] getValues()
public java.util.List<java.lang.String> getValuesAsList()
public boolean isMultivalue()
public boolean isValid()
public java.lang.String toString()
toString
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |