|
| 1 | +/* |
| 2 | + * Copyright 2018 IBM Corp. All Rights Reserved. |
| 3 | + * |
| 4 | + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with |
| 5 | + * the License. You may obtain a copy of the License at |
| 6 | + * |
| 7 | + * http://www.apache.org/licenses/LICENSE-2.0 |
| 8 | + * |
| 9 | + * Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on |
| 10 | + * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the |
| 11 | + * specific language governing permissions and limitations under the License. |
| 12 | + */ |
| 13 | +package com.ibm.watson.compare_comply.v1.model; |
| 14 | + |
| 15 | +import java.util.List; |
| 16 | + |
| 17 | +import com.google.gson.annotations.SerializedName; |
| 18 | +import com.ibm.cloud.sdk.core.service.model.GenericModel; |
| 19 | + |
| 20 | +/** |
| 21 | + * The duration or durations of the contract. |
| 22 | + */ |
| 23 | +public class ContractTerms extends GenericModel { |
| 24 | + |
| 25 | + /** |
| 26 | + * The confidence level in the identification of the contract term. |
| 27 | + */ |
| 28 | + public interface ConfidenceLevel { |
| 29 | + /** High. */ |
| 30 | + String HIGH = "High"; |
| 31 | + /** Medium. */ |
| 32 | + String MEDIUM = "Medium"; |
| 33 | + /** Low. */ |
| 34 | + String LOW = "Low"; |
| 35 | + } |
| 36 | + |
| 37 | + @SerializedName("confidence_level") |
| 38 | + private String confidenceLevel; |
| 39 | + private String text; |
| 40 | + @SerializedName("text_normalized") |
| 41 | + private String textNormalized; |
| 42 | + private Interpretation interpretation; |
| 43 | + @SerializedName("provenance_ids") |
| 44 | + private List<String> provenanceIds; |
| 45 | + private Location location; |
| 46 | + |
| 47 | + /** |
| 48 | + * Gets the confidenceLevel. |
| 49 | + * |
| 50 | + * The confidence level in the identification of the contract term. |
| 51 | + * |
| 52 | + * @return the confidenceLevel |
| 53 | + */ |
| 54 | + public String getConfidenceLevel() { |
| 55 | + return confidenceLevel; |
| 56 | + } |
| 57 | + |
| 58 | + /** |
| 59 | + * Gets the text. |
| 60 | + * |
| 61 | + * The contract term (duration). |
| 62 | + * |
| 63 | + * @return the text |
| 64 | + */ |
| 65 | + public String getText() { |
| 66 | + return text; |
| 67 | + } |
| 68 | + |
| 69 | + /** |
| 70 | + * Gets the textNormalized. |
| 71 | + * |
| 72 | + * The normalized form of the contract term, which is listed as a string. This element is optional; that is, the |
| 73 | + * service output lists it only if normalized text exists. |
| 74 | + * |
| 75 | + * @return the textNormalized |
| 76 | + */ |
| 77 | + public String getTextNormalized() { |
| 78 | + return textNormalized; |
| 79 | + } |
| 80 | + |
| 81 | + /** |
| 82 | + * Gets the interpretation. |
| 83 | + * |
| 84 | + * The details of the normalized text, if applicable. This element is optional; that is, the service output lists it |
| 85 | + * only if normalized text exists. |
| 86 | + * |
| 87 | + * @return the interpretation |
| 88 | + */ |
| 89 | + public Interpretation getInterpretation() { |
| 90 | + return interpretation; |
| 91 | + } |
| 92 | + |
| 93 | + /** |
| 94 | + * Gets the provenanceIds. |
| 95 | + * |
| 96 | + * One or more hash values that you can send to IBM to provide feedback or receive support. |
| 97 | + * |
| 98 | + * @return the provenanceIds |
| 99 | + */ |
| 100 | + public List<String> getProvenanceIds() { |
| 101 | + return provenanceIds; |
| 102 | + } |
| 103 | + |
| 104 | + /** |
| 105 | + * Gets the location. |
| 106 | + * |
| 107 | + * The numeric location of the identified element in the document, represented with two integers labeled `begin` and |
| 108 | + * `end`. |
| 109 | + * |
| 110 | + * @return the location |
| 111 | + */ |
| 112 | + public Location getLocation() { |
| 113 | + return location; |
| 114 | + } |
| 115 | +} |
0 commit comments