|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.ow2.weblab.rdf.Value<T>
T
- the type of the object value.public class Value<T>
This class simulate several behaviours:
Field Summary | |
---|---|
protected java.util.Map<java.lang.String,T> |
byLang
|
protected java.util.LinkedList<T> |
list
|
Constructor Summary | |
---|---|
protected |
Value()
If you have rational to grant a public access to the constructor please, explain it at forum.weblab-project.org |
protected |
Value(T item)
If you have rational to grant a public access to the constructor please, explain it at forum.weblab-project.org |
Method Summary | |
---|---|
protected void |
addItem(T item,
java.lang.String lang)
If you have rational to give a grant access to this method please, explain it at forum.weblab-project.org |
T |
firstTypedValue()
Returns the first typed value. |
T |
firstTypedValue(java.lang.String lang)
Returns the first typed value that is defined this the language attribute. |
java.util.LinkedList<T> |
getValues()
Returns a list of typed values. |
boolean |
hasValue()
Returns true if this object contains at least one typed value |
java.util.Iterator<T> |
iterator()
|
int |
size()
Returns the number of typed values available |
java.lang.String |
toString()
Returns the toString() method result on the first typed value or null if there is not value available. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected final java.util.LinkedList<T> list
protected final java.util.Map<java.lang.String,T> byLang
Constructor Detail |
---|
protected Value()
protected Value(T item)
Method Detail |
---|
protected void addItem(T item, java.lang.String lang)
public java.util.LinkedList<T> getValues()
public boolean hasValue()
public T firstTypedValue()
public T firstTypedValue(java.lang.String lang)
public int size()
public java.lang.String toString()
toString
in class java.lang.Object
public java.util.Iterator<T> iterator()
iterator
in interface java.lang.Iterable<T>
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |