public class DetectUtils extends Object
| Constructor and Description |
|---|
DetectUtils() |
| Modifier and Type | Method and Description |
|---|---|
static Antonym |
detectAndReturnAntonym(String className,
String methodName,
SubjectAreaOMASAPIResponse restResponse) |
static List<Category> |
detectAndReturnCategories(String className,
String methodName,
SubjectAreaOMASAPIResponse restResponse) |
static Category |
detectAndReturnCategory(String className,
String methodName,
SubjectAreaOMASAPIResponse restResponse)
Detect and return a Category object from the supplied response.
|
static CategoryAnchor |
detectAndReturnCategoryAnchorRelationship(String className,
String methodName,
SubjectAreaOMASAPIResponse restResponse) |
static List<Glossary> |
detectAndReturnGlossaries(String className,
String methodName,
SubjectAreaOMASAPIResponse restResponse) |
static Glossary |
detectAndReturnGlossary(String className,
String methodName,
SubjectAreaOMASAPIResponse restResponse)
Detect and return a Glossary object from the supplied response.
|
static Graph |
detectAndReturnGraph(String className,
String methodName,
SubjectAreaOMASAPIResponse restResponse) |
static Isa |
detectAndReturnISARelationship(String className,
String methodName,
SubjectAreaOMASAPIResponse restResponse) |
static List<Line> |
detectAndReturnLines(String className,
String methodName,
SubjectAreaOMASAPIResponse restResponse) |
static PreferredTerm |
detectAndReturnPreferredTerm(String className,
String methodName,
SubjectAreaOMASAPIResponse restResponse) |
static Project |
detectAndReturnProject(String className,
String methodName,
SubjectAreaOMASAPIResponse restResponse)
Detect and return a Project object from the supplied response.
|
static List<Project> |
detectAndReturnProjects(String className,
String methodName,
SubjectAreaOMASAPIResponse restResponse)
Detect and return a List of Project objects from the supplied response.
|
static ProjectScope |
detectAndReturnProjectScope(String className,
String methodName,
SubjectAreaOMASAPIResponse restResponse) |
static RelatedTerm |
detectAndReturnRelatedTerm(String className,
String methodName,
SubjectAreaOMASAPIResponse restResponse) |
static ReplacementTerm |
detectAndReturnReplacementTerm(String className,
String methodName,
SubjectAreaOMASAPIResponse restResponse) |
static SemanticAssignment |
detectAndReturnSemanticAssignmentRelationship(String className,
String methodName,
SubjectAreaOMASAPIResponse restResponse) |
static SubjectAreaDefinition |
detectAndReturnSubjectAreaDefinition(String className,
String methodName,
SubjectAreaOMASAPIResponse restResponse) |
static Synonym |
detectAndReturnSynonym(String className,
String methodName,
SubjectAreaOMASAPIResponse restResponse) |
static Term |
detectAndReturnTerm(String className,
String methodName,
SubjectAreaOMASAPIResponse restResponse)
Detect and return a Term object from the supplied response.
|
static TermAnchor |
detectAndReturnTermAnchorRelationship(String className,
String methodName,
SubjectAreaOMASAPIResponse restResponse) |
static Categorization |
detectAndReturnTermCategorizationRelationship(String className,
String methodName,
SubjectAreaOMASAPIResponse restResponse) |
static Hasa |
detectAndReturnTermHASARelationship(String className,
String methodName,
SubjectAreaOMASAPIResponse restResponse) |
static IsaTypeOf |
detectAndReturnTermISATypeOFRelationship(String className,
String methodName,
SubjectAreaOMASAPIResponse restResponse) |
static List<Term> |
detectAndReturnTerms(String className,
String methodName,
SubjectAreaOMASAPIResponse restResponse)
Detect and return a List of Terms from the supplied response.
|
static TypedBy |
detectAndReturnTermTYPEDBYRelationship(String className,
String methodName,
SubjectAreaOMASAPIResponse restResponse) |
static Translation |
detectAndReturnTranslation(String className,
String methodName,
SubjectAreaOMASAPIResponse restResponse) |
static UsedInContext |
detectAndReturnUsedInContext(String className,
String methodName,
SubjectAreaOMASAPIResponse restResponse) |
static ValidValue |
detectAndReturnValidValue(String className,
String methodName,
SubjectAreaOMASAPIResponse restResponse) |
static void |
detectAndThrowClassificationException(SubjectAreaOMASAPIResponse restResponse)
Throw an ClassificationException if it is encoded in the REST response.
|
static void |
detectAndThrowEntityNotDeletedException(SubjectAreaOMASAPIResponse restResponse)
Throw an EntityNotDeletedException if it is encoded in the REST response.
|
static void |
detectAndThrowEntityNotPurgedException(SubjectAreaOMASAPIResponse restResponse)
Throw an EntityNotPurgedException if it is encoded in the REST response.
|
static void |
detectAndThrowFunctionNotSupportedException(SubjectAreaOMASAPIResponse restResponse)
Throw an FunctionNotSupportedException if it is encoded in the REST response.
|
static void |
detectAndThrowInvalidParameterException(SubjectAreaOMASAPIResponse restResponse)
Throw an InvalidParameterException if it is encoded in the REST response.
|
static void |
detectAndThrowRelationshipNotDeletedException(SubjectAreaOMASAPIResponse restResponse)
Throw an RelationshipNotDeletedException if it is encoded in the REST response.
|
static void |
detectAndThrowRelationshipNotPurgedException(SubjectAreaOMASAPIResponse restResponse)
Throw an RelationshipNotPurgedException if it is encoded in the REST response.
|
static void |
detectAndThrowStatusNotSupportedException(SubjectAreaOMASAPIResponse restResponse)
Throw an StatusNotSupportedException if it is encoded in the REST response.
|
static void |
detectAndThrowUnrecognizedGUIDException(SubjectAreaOMASAPIResponse restResponse)
Throw an UnrecognizedGUIDException if it is encoded in the REST response.
|
static void |
detectAndThrowUserNotAuthorizedException(SubjectAreaOMASAPIResponse restResponse)
Throw an UserNotAuthorizedException if it is encoded in the REST response.
|
static void |
detectVoid(String className,
String methodName,
SubjectAreaOMASAPIResponse restResponse)
Detect Void return.
|
static SubjectAreaOMASAPIResponse |
getResponseFromException(SubjectAreaCheckedException e)
Convert a subject area a checked exception to a response
|
public static void detectAndThrowInvalidParameterException(SubjectAreaOMASAPIResponse restResponse) throws InvalidParameterException
restResponse - - response from the rest call. This generated in the remote handlers.InvalidParameterException - - encoded exception from the handlerspublic static void detectAndThrowUnrecognizedGUIDException(SubjectAreaOMASAPIResponse restResponse) throws UnrecognizedGUIDException
restResponse - - response from the rest call. This generated in the remote handlers.UnrecognizedGUIDException - - encoded exception from the handlerspublic static void detectAndThrowClassificationException(SubjectAreaOMASAPIResponse restResponse) throws ClassificationException
restResponse - - response from the rest call. This generated in the remote handlers.ClassificationException - - encoded exception from the handlerspublic static void detectAndThrowEntityNotDeletedException(SubjectAreaOMASAPIResponse restResponse) throws EntityNotDeletedException
restResponse - - response from the rest call. This generated in the remote handlers.EntityNotDeletedException - - encoded exception from the handlerspublic static void detectAndThrowFunctionNotSupportedException(SubjectAreaOMASAPIResponse restResponse) throws FunctionNotSupportedException
restResponse - - response from the rest call. This generated in the remote handlers.FunctionNotSupportedException - - encoded exception from the handlerspublic static void detectAndThrowEntityNotPurgedException(SubjectAreaOMASAPIResponse restResponse) throws EntityNotPurgedException
restResponse - - response from the rest call. This generated in the remote handlers.EntityNotPurgedException - - encoded exception from the handlerspublic static void detectAndThrowRelationshipNotDeletedException(SubjectAreaOMASAPIResponse restResponse) throws RelationshipNotDeletedException
restResponse - - response from the rest call. This generated in the remote handlers.RelationshipNotDeletedException - - encoded exception from the handlerspublic static void detectAndThrowRelationshipNotPurgedException(SubjectAreaOMASAPIResponse restResponse) throws RelationshipNotPurgedException
restResponse - - response from the rest call. This generated in the remote handlers.RelationshipNotPurgedException - - encoded exception from the handlerspublic static void detectAndThrowStatusNotSupportedException(SubjectAreaOMASAPIResponse restResponse) throws StatusNotSupportedException
restResponse - - response from the rest call. This generated in the remote handlers.StatusNotSupportedException - - encoded exception from the handlerspublic static void detectAndThrowUserNotAuthorizedException(SubjectAreaOMASAPIResponse restResponse) throws UserNotAuthorizedException
restResponse - - response from the rest call. This generated in the remote handlers.UserNotAuthorizedException - - encoded exception from the handlerspublic static void detectVoid(String className, String methodName, SubjectAreaOMASAPIResponse restResponse) throws UnexpectedResponseException
className - name of the class.methodName - method being performed.restResponse - - response from the rest call. This generated in the remote handlers.UnexpectedResponseException - - if the response is not a glossary then throw this exceptionpublic static Glossary detectAndReturnGlossary(String className, String methodName, SubjectAreaOMASAPIResponse restResponse) throws UnexpectedResponseException
className - name of the class.methodName - method being performed.restResponse - - response from the rest call. This generated in the remote handlers.UnexpectedResponseException - - if the response is not a glossary then throw this exceptionpublic static List<Glossary> detectAndReturnGlossaries(String className, String methodName, SubjectAreaOMASAPIResponse restResponse) throws UnexpectedResponseException
UnexpectedResponseExceptionpublic static Project detectAndReturnProject(String className, String methodName, SubjectAreaOMASAPIResponse restResponse) throws UnexpectedResponseException
className - name of the class.methodName - method being performed.restResponse - - response from the rest call. This generated in the remote handlers.UnexpectedResponseException - - if the response is not a project then throw this exceptionpublic static List<Project> detectAndReturnProjects(String className, String methodName, SubjectAreaOMASAPIResponse restResponse) throws UnexpectedResponseException
className - name of the class.methodName - method being performed.restResponse - - response from the rest call. This generated in the remote handlers.UnexpectedResponseException - - if the response is not a project then throw this exceptionpublic static Term detectAndReturnTerm(String className, String methodName, SubjectAreaOMASAPIResponse restResponse) throws UnexpectedResponseException
className - name of the class.methodName - method being performed.restResponse - - response from the rest call. This generated in the remote handlers.UnexpectedResponseException - - if the response is not a Term then throw this exceptionpublic static List<Term> detectAndReturnTerms(String className, String methodName, SubjectAreaOMASAPIResponse restResponse) throws UnexpectedResponseException
className - name of the class.methodName - method being performed.restResponse - - response from the rest call. This generated in the remote handlers.UnexpectedResponseException - - if the response is not a Terms then throw this exceptionpublic static Graph detectAndReturnGraph(String className, String methodName, SubjectAreaOMASAPIResponse restResponse) throws UnexpectedResponseException
UnexpectedResponseExceptionpublic static List<Line> detectAndReturnLines(String className, String methodName, SubjectAreaOMASAPIResponse restResponse) throws UnexpectedResponseException
UnexpectedResponseExceptionpublic static Category detectAndReturnCategory(String className, String methodName, SubjectAreaOMASAPIResponse restResponse) throws UnexpectedResponseException
className - name of the class.methodName - method being performed.restResponse - - response from the rest call. This generated in the remote handlers.UnexpectedResponseException - - if the response is not a Category then throw this exceptionpublic static List<Category> detectAndReturnCategories(String className, String methodName, SubjectAreaOMASAPIResponse restResponse) throws UnexpectedResponseException
UnexpectedResponseExceptionpublic static SubjectAreaDefinition detectAndReturnSubjectAreaDefinition(String className, String methodName, SubjectAreaOMASAPIResponse restResponse) throws UnexpectedResponseException
UnexpectedResponseExceptionpublic static Hasa detectAndReturnTermHASARelationship(String className, String methodName, SubjectAreaOMASAPIResponse restResponse) throws UnexpectedResponseException
UnexpectedResponseExceptionpublic static RelatedTerm detectAndReturnRelatedTerm(String className, String methodName, SubjectAreaOMASAPIResponse restResponse) throws UnexpectedResponseException
UnexpectedResponseExceptionpublic static Synonym detectAndReturnSynonym(String className, String methodName, SubjectAreaOMASAPIResponse restResponse) throws UnexpectedResponseException
UnexpectedResponseExceptionpublic static Antonym detectAndReturnAntonym(String className, String methodName, SubjectAreaOMASAPIResponse restResponse) throws UnexpectedResponseException
UnexpectedResponseExceptionpublic static Translation detectAndReturnTranslation(String className, String methodName, SubjectAreaOMASAPIResponse restResponse) throws UnexpectedResponseException
UnexpectedResponseExceptionpublic static UsedInContext detectAndReturnUsedInContext(String className, String methodName, SubjectAreaOMASAPIResponse restResponse) throws UnexpectedResponseException
UnexpectedResponseExceptionpublic static PreferredTerm detectAndReturnPreferredTerm(String className, String methodName, SubjectAreaOMASAPIResponse restResponse) throws UnexpectedResponseException
UnexpectedResponseExceptionpublic static ValidValue detectAndReturnValidValue(String className, String methodName, SubjectAreaOMASAPIResponse restResponse) throws UnexpectedResponseException
UnexpectedResponseExceptionpublic static ReplacementTerm detectAndReturnReplacementTerm(String className, String methodName, SubjectAreaOMASAPIResponse restResponse) throws UnexpectedResponseException
UnexpectedResponseExceptionpublic static TypedBy detectAndReturnTermTYPEDBYRelationship(String className, String methodName, SubjectAreaOMASAPIResponse restResponse) throws UnexpectedResponseException
UnexpectedResponseExceptionpublic static Isa detectAndReturnISARelationship(String className, String methodName, SubjectAreaOMASAPIResponse restResponse) throws UnexpectedResponseException
UnexpectedResponseExceptionpublic static IsaTypeOf detectAndReturnTermISATypeOFRelationship(String className, String methodName, SubjectAreaOMASAPIResponse restResponse) throws UnexpectedResponseException
UnexpectedResponseExceptionpublic static SemanticAssignment detectAndReturnSemanticAssignmentRelationship(String className, String methodName, SubjectAreaOMASAPIResponse restResponse) throws UnexpectedResponseException
UnexpectedResponseExceptionpublic static Categorization detectAndReturnTermCategorizationRelationship(String className, String methodName, SubjectAreaOMASAPIResponse restResponse) throws UnexpectedResponseException
UnexpectedResponseExceptionpublic static TermAnchor detectAndReturnTermAnchorRelationship(String className, String methodName, SubjectAreaOMASAPIResponse restResponse) throws UnexpectedResponseException
UnexpectedResponseExceptionpublic static CategoryAnchor detectAndReturnCategoryAnchorRelationship(String className, String methodName, SubjectAreaOMASAPIResponse restResponse) throws UnexpectedResponseException
UnexpectedResponseExceptionpublic static ProjectScope detectAndReturnProjectScope(String className, String methodName, SubjectAreaOMASAPIResponse restResponse) throws UnexpectedResponseException
UnexpectedResponseExceptionpublic static SubjectAreaOMASAPIResponse getResponseFromException(SubjectAreaCheckedException e)
e - Exception to comnvertCopyright © 2018–2020 ODPi. All rights reserved.