com.corrspt.xeo.api.core
Class BaseModelCollectionJSON

java.lang.Object
  extended by com.corrspt.xeo.api.core.BaseModelCollectionJSON
All Implemented Interfaces:
BaseModelCollection, java.lang.Iterable<BaseModel>, java.util.Iterator<BaseModel>

public class BaseModelCollectionJSON
extends java.lang.Object
implements BaseModelCollection

Base Model


Constructor Summary
BaseModelCollectionJSON(java.util.List<BaseModel> lst)
           
 
Method Summary
 void add(BaseModel newBaseModel)
           
 void add(java.util.List<BaseModel> listBaseModel)
           
 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 BaseModelToCheck)
           
 boolean hasNext()
           
 boolean isChanged()
          Whether the collection was changed or not
 boolean isEmpty()
          Whether the collection is empty
 java.util.Iterator<BaseModel> iterator()
           
 BaseModel next()
           
 void remove()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BaseModelCollectionJSON

public BaseModelCollectionJSON(java.util.List<BaseModel> lst)
Method Detail

hasNext

public boolean hasNext()
Specified by:
hasNext in interface java.util.Iterator<BaseModel>

next

public BaseModel next()
Specified by:
next in interface java.util.Iterator<BaseModel>

getElements

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

Specified by:
getElements in interface BaseModelCollection
Returns:
A list of all elements in the bridge

add

public void add(BaseModel newBaseModel)
Specified by:
add in interface BaseModelCollection

add

public void add(java.util.List<BaseModel> listBaseModel)
Specified by:
add in interface BaseModelCollection

hasBaseModel

public boolean hasBaseModel(BaseModel BaseModelToCheck)
Specified by:
hasBaseModel in interface BaseModelCollection

isChanged

public boolean isChanged()
Whether the collection was changed or not

Specified by:
isChanged in interface BaseModelCollection
Returns:
true if the collection was changed and false otherwise

isEmpty

public boolean isEmpty()
Whether the collection is empty

Specified by:
isEmpty in interface BaseModelCollection
Returns:
true if the collection is empty and false otherwise

getRecordCount

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

Specified by:
getRecordCount in interface BaseModelCollection
Returns:
the number of records in the collection

remove

public void remove()
Specified by:
remove in interface java.util.Iterator<BaseModel>

iterator

public java.util.Iterator<BaseModel> iterator()
Specified by:
iterator in interface java.lang.Iterable<BaseModel>