public class DetectUtils extends Object
| Constructor and Description |
|---|
DetectUtils() |
public static void detectAndThrowInvalidParameterException(String methodName, SubjectAreaOMASAPIResponse restResponse) throws InvalidParameterException
methodName - - name of the method calledrestResponse - - response from the rest call. This generated in the remote handlers.InvalidParameterException - - encoded exception from the handlerspublic static void detectAndThrowUnrecognizedGUIDException(String methodName, SubjectAreaOMASAPIResponse restResponse) throws UnrecognizedGUIDException
methodName - - name of the method calledrestResponse - - response from the rest call. This generated in the remote handlers.UnrecognizedGUIDException - - encoded exception from the handlerspublic static void detectAndThrowClassificationException(String methodName, SubjectAreaOMASAPIResponse restResponse) throws ClassificationException
methodName - - name of the method calledrestResponse - - response from the rest call. This generated in the remote handlers.ClassificationException - - encoded exception from the handlerspublic static void detectAndThrowEntityNotDeletedException(String methodName, SubjectAreaOMASAPIResponse restResponse) throws EntityNotDeletedException
methodName - - name of the method calledrestResponse - - response from the rest call. This generated in the remote handlers.EntityNotDeletedException - - encoded exception from the handlerspublic static void detectAndThrowFunctionNotSupportedException(String methodName, SubjectAreaOMASAPIResponse restResponse) throws FunctionNotSupportedException
methodName - - name of the method calledrestResponse - - response from the rest call. This generated in the remote handlers.FunctionNotSupportedException - - encoded exception from the handlerspublic static void detectAndThrowGUIDNotPurgedException(String methodName, SubjectAreaOMASAPIResponse restResponse) throws GUIDNotPurgedException
methodName - - name of the method calledrestResponse - - response from the rest call. This generated in the remote handlers.GUIDNotPurgedException - - encoded exception from the handlerspublic static void detectAndThrowRelationshipNotDeletedException(String methodName, SubjectAreaOMASAPIResponse restResponse) throws RelationshipNotDeletedException
methodName - - name of the method calledrestResponse - - response from the rest call. This generated in the remote handlers.RelationshipNotDeletedException - - encoded exception from the handlerspublic static void detectAndThrowStatusNotSupportedException(String methodName, SubjectAreaOMASAPIResponse restResponse) throws StatusNotSupportedException
methodName - - name of the method calledrestResponse - - response from the rest call. This generated in the remote handlers.StatusNotSupportedException - - encoded exception from the handlerspublic static void detectAndThrowUserNotAuthorizedException(String methodName, SubjectAreaOMASAPIResponse restResponse) throws UserNotAuthorizedException
methodName - - name of the method calledrestResponse - - response from the rest call. This generated in the remote handlers.UserNotAuthorizedException - - encoded exception from the handlerspublic static void detectVoid(String methodName, SubjectAreaOMASAPIResponse restResponse) throws UnexpectedResponseException
methodName - - name of the method calledrestResponse - - 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 methodName, SubjectAreaOMASAPIResponse restResponse) throws UnexpectedResponseException
methodName - - name of the method calledrestResponse - - 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 methodName, SubjectAreaOMASAPIResponse restResponse) throws UnexpectedResponseException
UnexpectedResponseExceptionpublic static Project detectAndReturnProject(String methodName, SubjectAreaOMASAPIResponse restResponse) throws UnexpectedResponseException
methodName - - name of the method calledrestResponse - - 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 methodName, SubjectAreaOMASAPIResponse restResponse) throws UnexpectedResponseException
methodName - - name of the method calledrestResponse - - 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 methodName, SubjectAreaOMASAPIResponse restResponse) throws UnexpectedResponseException
methodName - - name of the method calledrestResponse - - 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 methodName, SubjectAreaOMASAPIResponse restResponse) throws UnexpectedResponseException
methodName - - name of the method calledrestResponse - - 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 methodName, SubjectAreaOMASAPIResponse restResponse) throws UnexpectedResponseException
UnexpectedResponseExceptionpublic static List<Line> detectAndReturnLines(String methodName, SubjectAreaOMASAPIResponse restResponse) throws UnexpectedResponseException
UnexpectedResponseExceptionpublic static Category detectAndReturnCategory(String methodName, SubjectAreaOMASAPIResponse restResponse) throws UnexpectedResponseException
methodName - - name of the method calledrestResponse - - 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 methodName, SubjectAreaOMASAPIResponse restResponse) throws UnexpectedResponseException
UnexpectedResponseExceptionpublic static SubjectAreaDefinition detectAndReturnSubjectAreaDefinition(String methodName, SubjectAreaOMASAPIResponse restResponse) throws UnexpectedResponseException
UnexpectedResponseExceptionpublic static TermHASARelationship detectAndReturnTermHASARelationship(String methodName, SubjectAreaOMASAPIResponse restResponse) throws UnexpectedResponseException
UnexpectedResponseExceptionpublic static RelatedTerm detectAndReturnRelatedTerm(String methodName, SubjectAreaOMASAPIResponse restResponse) throws UnexpectedResponseException
UnexpectedResponseExceptionpublic static Synonym detectAndReturnSynonym(String methodName, SubjectAreaOMASAPIResponse restResponse) throws UnexpectedResponseException
UnexpectedResponseExceptionpublic static Antonym detectAndReturnAntonym(String methodName, SubjectAreaOMASAPIResponse restResponse) throws UnexpectedResponseException
UnexpectedResponseExceptionpublic static Translation detectAndReturnTranslation(String methodName, SubjectAreaOMASAPIResponse restResponse) throws UnexpectedResponseException
UnexpectedResponseExceptionpublic static UsedInContext detectAndReturnUsedInContext(String methodName, SubjectAreaOMASAPIResponse restResponse) throws UnexpectedResponseException
UnexpectedResponseExceptionpublic static PreferredTerm detectAndReturnPreferredTerm(String methodName, SubjectAreaOMASAPIResponse restResponse) throws UnexpectedResponseException
UnexpectedResponseExceptionpublic static ValidValue detectAndReturnValidValue(String methodName, SubjectAreaOMASAPIResponse restResponse) throws UnexpectedResponseException
UnexpectedResponseExceptionpublic static ReplacementTerm detectAndReturnReplacementTerm(String methodName, SubjectAreaOMASAPIResponse restResponse) throws UnexpectedResponseException
UnexpectedResponseExceptionpublic static TermTYPEDBYRelationship detectAndReturnTermTYPEDBYRelationship(String methodName, SubjectAreaOMASAPIResponse restResponse) throws UnexpectedResponseException
UnexpectedResponseExceptionpublic static ISARelationship detectAndReturnISARelationship(String methodName, SubjectAreaOMASAPIResponse restResponse) throws UnexpectedResponseException
UnexpectedResponseExceptionpublic static TermISATypeOFRelationship detectAndReturnTermISATypeOFRelationship(String methodName, SubjectAreaOMASAPIResponse restResponse) throws UnexpectedResponseException
UnexpectedResponseExceptionpublic static SemanticAssignment detectAndReturnSemanticAssignmentRelationship(String methodName, SubjectAreaOMASAPIResponse restResponse) throws UnexpectedResponseException
UnexpectedResponseExceptionpublic static TermCategorizationRelationship detectAndReturnTermCategorizationRelationship(String methodName, SubjectAreaOMASAPIResponse restResponse) throws UnexpectedResponseException
UnexpectedResponseExceptionpublic static TermAnchorRelationship detectAndReturnTermAnchorRelationship(String methodName, SubjectAreaOMASAPIResponse restResponse) throws UnexpectedResponseException
UnexpectedResponseExceptionpublic static CategoryAnchorRelationship detectAndReturnCategoryAnchorRelationship(String methodName, SubjectAreaOMASAPIResponse restResponse) throws UnexpectedResponseException
UnexpectedResponseExceptionpublic static ProjectScopeRelationship detectAndReturnProjectScope(String methodName, SubjectAreaOMASAPIResponse restResponse) throws UnexpectedResponseException
UnexpectedResponseExceptionpublic static SubjectAreaOMASAPIResponse getResponseFromException(SubjectAreaCheckedExceptionBase e)
e - Exception to comnvertCopyright © 2018–2019 ODPi. All rights reserved.