M - the specific type of the modelpublic static class IModelLoader.LoadResult<M extends IModel>
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
private java.util.List<IMessage> |
messages |
private java.util.List<M> |
models |
| Constructor and Description |
|---|
LoadResult(java.util.List<M> models,
java.util.List<IMessage> messages)
Creates a result instance.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getErrorCount()
Returns the number of errors in the stored messages.
|
IMessage |
getMessage(int index)
Returns the specific message.
|
int |
getMessageCount()
Returns the number of messages occurred during loading.
|
M |
getModel(int index)
Returns the specified model.
|
int |
getModelCount()
Returns the number of loaded models.
|
private java.util.List<IMessage> messages
public int getModelCount()
public M getModel(int index)
index - the index of the model to returnjava.lang.IndexOutOfBoundsException - if
index<0 || index>=getModelCount()public int getErrorCount()
public int getMessageCount()
public IMessage getMessage(int index)
index - the index of the messagejava.lang.IndexOutOfBoundsException - if index<0 || index>=getMessageCount()Copyright © 2009 - 2018 SSE. All Rights Reserved.