1 /* 2 * Copyright 2008 Brian Thomas Matthews 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 package com.btmatthews.ldapunit; 18 19 import java.util.List; 20 21 /** 22 * Defines the interface for a data set. 23 * 24 * @author <a href="mailto:brian@btmatthews.com">Brian Matthews</a> 25 * @version 1.0 26 */ 27 public interface ILDAPDataSet 28 { 29 /** 30 * Get the data set name. 31 * 32 * @return The data set name. 33 */ 34 String getDataSetName(); 35 36 /** 37 * Set the data set name. 38 * 39 * @param name 40 * The data set name. 41 */ 42 void setDataSetName(String name); 43 44 /** 45 * Get the attribute names. 46 * 47 * @return The attribute names. 48 */ 49 String[] getAttributeNames(); 50 51 /** 52 * Set the attribute names. 53 * 54 * @param names 55 * The attribute names. 56 */ 57 void setAttributeNames(String[] names); 58 59 /** 60 * Get the data records. 61 * 62 * @return The data records. 63 */ 64 List getDataRecords(); 65 66 /** 67 * Set the data records. 68 * 69 * @param data 70 * The data records. 71 */ 72 void setDataRecords(List data); 73 }