1 /* 2 * Licensed to the Apache Software Foundation (ASF) under one 3 * or more contributor license agreements. See the NOTICE file 4 * distributed with this work for additional information 5 * regarding copyright ownership. The ASF licenses this file 6 * to you under the Apache License, Version 2.0 (the 7 * "License"); you may not use this file except in compliance 8 * with the License. You may obtain a copy of the License at 9 * 10 * http://www.apache.org/licenses/LICENSE-2.0 11 * 12 * Unless required by applicable law or agreed to in writing, 13 * software distributed under the License is distributed on an 14 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15 * KIND, either express or implied. See the License for the 16 * specific language governing permissions and limitations 17 * under the License. 18 */ 19 package org.apache.chemistry.opencmis.commons.data; 20 21 import java.util.List; 22 23 /** 24 * Base property interface. 25 */ 26 public interface PropertyData<T> extends ExtensionsData { 27 28 /** 29 * Returns the property id. 30 * 31 * @return the property id 32 */ 33 String getId(); 34 35 /** 36 * Returns the local name. 37 * 38 * @return the local name or <code>null</code> 39 */ 40 String getLocalName(); 41 42 /** 43 * Returns the display name. 44 * 45 * @return the display name or <code>null</code> 46 */ 47 String getDisplayName(); 48 49 /** 50 * Returns the query name. 51 * 52 * @return the query name or <code>null</code> 53 */ 54 String getQueryName(); 55 56 /** 57 * Returns the list of values of this property. For a single value property 58 * this is a list with one entry. 59 * 60 * @return the list of values or (in rare cases) <code>null</code> 61 */ 62 List<T> getValues(); 63 64 /** 65 * Returns the first entry of the list of values. 66 * 67 * @return first entry of the list of values or (in rare cases) 68 * <code>null</code> 69 */ 70 T getFirstValue(); 71 }