1 /** 2 * Copyright 2010, CSIRO Australia. 3 * 4 * Licensed under the Apache License, Version 2.0 (the "License"); 5 * you may not use this file except in compliance with the License. 6 * You may obtain a copy of the License at 7 * 8 * http://www.apache.org/licenses/LICENSE-2.0 9 * 10 * Unless required by applicable law or agreed to in writing, software 11 * distributed under the License is distributed on an "AS IS" BASIS, 12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 * See the License for the specific language governing permissions and 14 * limitations under the License. 15 */ 16 17 /** 18 * 19 */ 20 package au.csiro.pidclient.business; 21 22 /** 23 * Represent a property triple: <index, type, value>. 24 * <p> 25 * A property triple is associated with an ANDS Persistent Identifier handle. 26 * 27 * Copyright 2010, CSIRO Australia All rights reserved. 28 * 29 * @author Robert Bridle on 10/02/2010 30 * @version $Revision: 7131 $ $Date: 2010-06-09 14:25:15 +1000 (Wed, 09 Jun 2010) $ 31 */ 32 public class AndsPidResponseProperty 33 { 34 /** 35 * The numeric index of a the property. 36 */ 37 private int index; 38 39 /** 40 * The type of the property {@see ANDPersistentIdentifierClient.HandleType}. 41 */ 42 private String type; 43 44 /** 45 * The value of the property. 46 */ 47 private String value; 48 49 /** 50 * 51 */ 52 public AndsPidResponseProperty() 53 { 54 } 55 56 /** 57 * Constructor 58 * 59 * @param index 60 * a properties numeric index. 61 * @param type 62 * a properties type. 63 * @param value 64 * a properties value. 65 */ 66 public AndsPidResponseProperty(int index, String type, String value) 67 { 68 this.index = index; 69 this.type = type; 70 this.value = value; 71 } 72 73 /** 74 * @return the index 75 */ 76 public int getIndex() 77 { 78 return index; 79 } 80 81 /** 82 * @param index 83 * the index to set 84 */ 85 public void setIndex(int index) 86 { 87 this.index = index; 88 } 89 90 /** 91 * @return the type 92 */ 93 public String getType() 94 { 95 return type; 96 } 97 98 /** 99 * @param type 100 * the type to set 101 */ 102 public void setType(String type) 103 { 104 this.type = type; 105 } 106 107 /** 108 * @return the value 109 */ 110 public String getValue() 111 { 112 return value; 113 } 114 115 /** 116 * @param value 117 * the value to set 118 */ 119 public void setValue(String value) 120 { 121 this.value = value; 122 } 123 }