|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.ujoframework.core.UjoPropertyListImpl
public final class UjoPropertyListImpl
The immutable list of UjoProperties. The UjoPropertyList class is a subset of the methods from class List<UjoProperty>.
| Field Summary | |
|---|---|
static UjoProperty[] |
EMPTY
An empty array of the UJO properties |
int |
length
Contains the total count of its properties |
| Constructor Summary | |
|---|---|
UjoPropertyListImpl()
Create the empty list |
|
UjoPropertyListImpl(java.util.List<UjoProperty> props)
|
|
UjoPropertyListImpl(UjoProperty[] props)
|
|
| Method Summary | |
|---|---|
boolean |
contains(UjoProperty o)
Returns true if list contains property from the parameter. |
UjoProperty |
find(java.lang.String name,
boolean throwException)
Find a property by property name from parameter. |
UjoProperty |
find(Ujo ujo,
java.lang.String name,
boolean throwException)
Find UjoProperty by name |
UjoProperty |
find(Ujo ujo,
java.lang.String name,
UjoAction action,
boolean result,
boolean throwException)
Find a property by property name from parameter. |
UjoProperty |
get(int index)
Get property on requered index |
boolean |
isEmpty()
Is the collection empty? |
java.util.Iterator<UjoProperty> |
iterator()
Create an interator for all properties. |
UjoProperty |
last()
Get last property |
int |
size()
Returns a total count of its properties |
UjoProperty[] |
toArray()
Returns a copy of internal array |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final UjoProperty[] EMPTY
public final int length
| Constructor Detail |
|---|
public UjoPropertyListImpl(java.util.List<UjoProperty> props)
public UjoPropertyListImpl(UjoProperty[] props)
public UjoPropertyListImpl()
| Method Detail |
|---|
public UjoProperty find(java.lang.String name,
boolean throwException)
throws java.lang.IllegalArgumentException
find in interface UjoPropertyListname - A property name.throwException - If result not found an Exception is throwed, or a null can be returned.
java.lang.IllegalArgumentException
public final UjoProperty find(Ujo ujo,
java.lang.String name,
boolean throwException)
throws java.lang.IllegalArgumentException
UjoPropertyList
find in interface UjoPropertyListjava.lang.IllegalArgumentException
public UjoProperty find(Ujo ujo,
java.lang.String name,
UjoAction action,
boolean result,
boolean throwException)
throws java.lang.IllegalArgumentException
find in interface UjoPropertyListujo - An Ujo objectname - A property name.action - Action type UjoAction.ACTION_* .result - Required result of action.throwException - If result not found an Exception is throwed, or a null can be returned.
java.lang.IllegalArgumentExceptionpublic UjoProperty[] toArray()
toArray in interface UjoPropertyListpublic UjoProperty last()
last in interface UjoPropertyListpublic UjoProperty get(int index)
get in interface UjoPropertyListpublic int size()
size in interface UjoPropertyListpublic boolean isEmpty()
isEmpty in interface UjoPropertyListpublic boolean contains(UjoProperty o)
contains in interface UjoPropertyListpublic java.util.Iterator<UjoProperty> iterator()
iterator in interface java.lang.Iterable<UjoProperty>iterator in interface UjoPropertyList
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||