org.ujorm
Interface UjoPropertyList

All Superinterfaces:
java.lang.Iterable<UjoProperty>
All Known Implementing Classes:
UjoPropertyListImpl

public interface UjoPropertyList
extends java.lang.Iterable<UjoProperty>

The immutable list of UjoProperties. The UjoPropertyList class is a subset of the methods from class List<UjoProperty>.

Author:
Pavel Ponec

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 findIndirect(java.lang.String name, boolean throwException)
          Find direct or indirect property by property name from parameter.
 UjoProperty get(int index)
          Get property on requered index
 java.lang.Class getType()
          Returns a class of the related UJO
 java.lang.String getTypeName()
          Returns a class name of the related UJO
 boolean isEmpty()
          Is the collection empty?
 java.util.Iterator<UjoProperty> iterator()
          Create an interator for all properties.
 UjoProperty last()
          Get last property
<UJO extends Ujo>
UJO
newInstance()
          Create new Instance
 int size()
          Returns a total count of its properties
 UjoProperty[] toArray()
          Returns a copy of internal array
 

Method Detail

find

UjoProperty find(java.lang.String name,
                 boolean throwException)
                 throws java.lang.IllegalArgumentException
Find a property by property name from parameter.

Parameters:
name - A property name.
throwException - If result not found an Exception is throwed, or a null can be returned.
Returns:
.
Throws:
java.lang.IllegalArgumentException

findIndirect

UjoProperty findIndirect(java.lang.String name,
                         boolean throwException)
                         throws java.lang.IllegalArgumentException
Find direct or indirect property by property name from parameter.

Parameters:
name - A property name.
throwException - If result not found an Exception is throwed, or a null can be returned.
Returns:
.
Throws:
java.lang.IllegalArgumentException

find

UjoProperty find(Ujo ujo,
                 java.lang.String name,
                 boolean throwException)
                 throws java.lang.IllegalArgumentException
Find UjoProperty by name

Throws:
java.lang.IllegalArgumentException

find

UjoProperty find(Ujo ujo,
                 java.lang.String name,
                 UjoAction action,
                 boolean result,
                 boolean throwException)
                 throws java.lang.IllegalArgumentException
Find a property by property name from parameter.

Parameters:
ujo - An Ujo object
name - 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.
Throws:
java.lang.IllegalArgumentException

toArray

UjoProperty[] toArray()
Returns a copy of internal array


last

UjoProperty last()
Get last property


getType

java.lang.Class getType()
Returns a class of the related UJO


newInstance

<UJO extends Ujo> UJO newInstance()
                            throws java.lang.IllegalStateException
Create new Instance

Throws:
java.lang.IllegalStateException

getTypeName

java.lang.String getTypeName()
Returns a class name of the related UJO


get

UjoProperty get(int index)
Get property on requered index


size

int size()
Returns a total count of its properties


isEmpty

boolean isEmpty()
Is the collection empty?


contains

boolean contains(UjoProperty o)
Returns true if list contains property from the parameter.


iterator

java.util.Iterator<UjoProperty> iterator()
Create an interator for all properties.

Specified by:
iterator in interface java.lang.Iterable<UjoProperty>


Copyright © 2007-2012 PPonec