com.corrspt.xeo.api.core
Interface BaseModelCollection

All Superinterfaces:
java.lang.Iterable<BaseModel>, java.util.Iterator<BaseModel>
All Known Implementing Classes:
BaseModelCollectionImpl, BaseModelCollectionJSON

public interface BaseModelCollection
extends java.lang.Iterable<BaseModel>, java.util.Iterator<BaseModel>


Method Summary
 void add(BaseModel newModel)
           
 void add(java.util.List<BaseModel> list)
           
 java.util.List<BaseModel> getElements()
          Returns a list of all elements in the bridge
 long getRecordCount()
          Retrieves the number of records in the collection
 boolean hasBaseModel(BaseModel modelToCheck)
           
 boolean isChanged()
          Whether the collection was changed or not
 boolean isEmpty()
          Whether the collection is empty
 
Methods inherited from interface java.lang.Iterable
iterator
 
Methods inherited from interface java.util.Iterator
hasNext, next, remove
 

Method Detail

getElements

java.util.List<BaseModel> getElements()
Returns a list of all elements in the bridge

Returns:
A list of all elements in the bridge

add

void add(BaseModel newModel)

add

void add(java.util.List<BaseModel> list)

hasBaseModel

boolean hasBaseModel(BaseModel modelToCheck)

isChanged

boolean isChanged()
Whether the collection was changed or not

Returns:
true if the collection was changed and false otherwise

isEmpty

boolean isEmpty()
Whether the collection is empty

Returns:
true if the collection is empty and false otherwise

getRecordCount

long getRecordCount()
Retrieves the number of records in the collection

Returns:
the number of records in the collection