Class IModelLoader.LoadResult<M extends IModel>
- java.lang.Object
-
- net.ssehub.easy.basics.modelManagement.IModelLoader.LoadResult<M>
-
- Type Parameters:
M- the specific type of the model
- Enclosing interface:
- IModelLoader<M extends IModel>
public static class IModelLoader.LoadResult<M extends IModel> extends java.lang.ObjectRepresents the result of loading a model.- Author:
- Holger Eichelberger
-
-
Constructor Summary
Constructors Constructor Description LoadResult(java.util.List<M> models, java.util.List<IMessage> messages)Creates a result instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetErrorCount()Returns the number of errors in the stored messages.IMessagegetMessage(int index)Returns the specific message.intgetMessageCount()Returns the number of messages occurred during loading.MgetModel(int index)Returns the specified model.intgetModelCount()Returns the number of loaded models.
-
-
-
Method Detail
-
getModelCount
public int getModelCount()
Returns the number of loaded models.- Returns:
- the number of loaded models
-
getModel
public M getModel(int index)
Returns the specified model.- Parameters:
index- the index of the model to return- Returns:
- the specified model
- Throws:
java.lang.IndexOutOfBoundsException- ifindex<0 || index>=getModelCount()
-
getErrorCount
public int getErrorCount()
Returns the number of errors in the stored messages.- Returns:
- the number of errors
-
getMessageCount
public int getMessageCount()
Returns the number of messages occurred during loading.- Returns:
- the number of messages messages
-
getMessage
public IMessage getMessage(int index)
Returns the specific message.- Parameters:
index- the index of the message- Returns:
- the message
- Throws:
java.lang.IndexOutOfBoundsException- ifindex<0 || index>=getMessageCount()
-
-