|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.fu_berlin.ties.TiesConfiguration.EntryDescriptor
public final class TiesConfiguration.EntryDescriptor
An inner class wrapping descriptor information on an entry: type of the entry, whether it is optional or a list, a description of the entry.
Method Summary | |
---|---|
String |
getDescription()
Returns a textual description of the entry. |
String |
getElement(int index)
Reads the value of this property as a string list and returns the element at the specified position. |
List |
getElementsFrom(int fromIndex)
Reads the value of this property as a string list and returns a sublist starting at the specified position. |
String |
getKey()
Returns the key (name) of this entry. |
String |
getType()
Returns the base type of the entry (String, Integer etc.). |
Object |
getValue()
Returns the value of this property (as an object). |
boolean |
isList()
Whether the entry is a list (can contain multiple values). |
boolean |
isOptional()
Whether the entry is optional. |
String |
toString()
Returns a string representation of this object. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Method Detail |
---|
public String getDescription()
public String getElement(int index) throws IndexOutOfBoundsException
index
- the index of element to return
null
if the position does not exist in the list or
no value exists for this key
IndexOutOfBoundsException
- if index
< 0public List getElementsFrom(int fromIndex) throws IndexOutOfBoundsException
fromIndex
- the index of the first element to return (inclusive)
null
if the position does not exist in the list or
no value exists for this key
IndexOutOfBoundsException
- if fromIndex
< 0public String getKey()
public String getType()
public Object getValue()
null
if no
value is setpublic boolean isList()
public boolean isOptional()
public String toString()
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |