Package com.protegrity.ap.java
Class ParseResult
java.lang.Object
com.protegrity.ap.java.ParseResult
Represents the result of a parsing operation.
This class encapsulates the success status and the converted array result from data type conversion operations.
- Since:
- 1.0.1
-
Constructor Summary
ConstructorsConstructorDescriptionParseResult(boolean success, Object convertedArray) Constructs a new ParseResult. -
Method Summary
Modifier and TypeMethodDescriptionReturns the converted array result.booleanReturns whether the parsing operation was successful.
-
Constructor Details
-
ParseResult
Constructs a new ParseResult.- Parameters:
success- whether the parsing operation succeededconvertedArray- the converted array result, or null if parsing failed
-
-
Method Details
-
isSuccess
public boolean isSuccess()Returns whether the parsing operation was successful.- Returns:
- true if parsing succeeded, false otherwise
-
getConvertedArray
Returns the converted array result.- Returns:
- the converted array, or null if parsing failed
-