@Platform(include="<nix/valid/result.hpp>") @Platform(value="linux",link="nix@.1",preload="hdf5@.7") @Platform(value="windows",link="nix",preload={"hdf5","msvcp120","msvcr120","szip","zlib"})
@Namespace(value="nix::valid")
@NoOffset
public class Result
extends org.bytedeco.javacpp.Pointer
Constructor and Description |
---|
Result()
Constructor
|
Result(List<Message> errs,
List<Message> warns)
Standard constructor.
|
Result(Message err,
Message warn)
Standard constructor.
|
Modifier and Type | Method and Description |
---|---|
Result |
addError(Message error)
Adds an error message
Adds an error message to this
Result
object and returns a reference to this object. |
Result |
addWarning(Message warning)
Adds a warning message
Adds a warning message to this
Result
object and returns a reference to this object. |
Result |
concat(Result result)
|
List<Message> |
getErrors()
Returns the errors list.
|
List<Message> |
getWarnings()
Returns the warnings list.
|
boolean |
hasErrors()
Returns true if no error msgs added at all
Returns false if no errors have been added, thus list is empty.
|
boolean |
hasWarnings()
Returns true if no warning msgs added at all
Returns false if no warnings have been added, thus list is empty.
|
boolean |
isOK()
Returns true if no msgs added at all
Returns true if neither errors nor warnings have been added,
thus both lists are empty.
|
address, asBuffer, asByteBuffer, capacity, capacity, deallocate, deallocate, deallocateReferences, equals, fill, hashCode, isNull, limit, limit, memchr, memcmp, memcpy, memmove, memset, offsetof, position, position, put, setNull, sizeof, toString, zero
public Result()
public Result(List<Message> errs, List<Message> warns)
Standard constructor that expects a list of error msgs and a list of warning msgs. Pass null if not present.
errs
- List of error messageswarns
- List of warning messagesMessage
public List<Message> getWarnings()
Message
public List<Message> getErrors()
Message
@ByVal public Result concat(@Const @ByRef Result result)
Concatenates the errors and warnings lists
of the given Result
object to those if this Result
object and returns a reference to this object.
@ByVal public Result addError(@Const @ByRef Message error)
Adds an error message to this Result
object and returns a reference to this object.
Message
@ByVal public Result addWarning(@Const @ByRef Message warning)
Adds a warning message to this Result
object and returns a reference to this object.
Message
@Name(value="ok") @Cast(value="bool") public boolean isOK()
Returns true if neither errors nor warnings have been added, thus both lists are empty. Returns false otherwise.
@Cast(value="bool") public boolean hasErrors()
Returns false if no errors have been added, thus list is empty. Returns true otherwise.
@Cast(value="bool") public boolean hasWarnings()
Returns false if no warnings have been added, thus list is empty. Returns true otherwise.
Copyright © 2016. All rights reserved.