Coverage Report - org.trails.descriptor.IPropertyDescriptor
 
Classes in this File Line Coverage Branch Coverage Complexity
IPropertyDescriptor
N/A 
N/A 
1
 
 1  
 /*
 2  
  * Created on Mar 18, 2005
 3  
  *
 4  
  * Copyright 2004 Chris Nelson
 5  
  *
 6  
  * Licensed under the Apache License, Version 2.0 (the "License");
 7  
  * you may not use this file except in compliance with the License.
 8  
  * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0
 9  
  * Unless required by applicable law or agreed to in writing,
 10  
  * software distributed under the License is distributed on an "AS IS" BASIS,
 11  
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 12  
  * See the License for the specific language governing permissions and limitations under the License.
 13  
  */
 14  
 package org.trails.descriptor;
 15  
 
 16  
 
 17  
 /**
 18  
  * @author fus8882
 19  
  *         <p/>
 20  
  *         TODO To change the template for this generated type comment go to
 21  
  *         Window - Preferences - Java - Code Style - Code Templates
 22  
  */
 23  
 public interface IPropertyDescriptor extends IDescriptor
 24  
 {
 25  
         public static final int UNDEFINED_INDEX = -1;
 26  
 
 27  
         public static final int DEFAULT_LENGTH = 255;
 28  
 
 29  
         public void setIndex(int index);
 30  
 
 31  
         public int getIndex();
 32  
 
 33  
         /**
 34  
          * @return
 35  
          */
 36  
         public Class getPropertyType();
 37  
 
 38  
         /**
 39  
          * @return
 40  
          */
 41  
         public boolean isNumeric();
 42  
 
 43  
         public boolean isBoolean();
 44  
 
 45  
         /**
 46  
          * @return
 47  
          */
 48  
         public boolean isDate();
 49  
 
 50  
         /**
 51  
          * @return
 52  
          */
 53  
         public boolean isString();
 54  
 
 55  
         /**
 56  
          * @return
 57  
          */
 58  
         public boolean isObjectReference();
 59  
 
 60  
         /**
 61  
          * @return Returns the required.
 62  
          */
 63  
         public boolean isRequired();
 64  
 
 65  
         /**
 66  
          * @param required The required to set.
 67  
          */
 68  
         public void setRequired(boolean required);
 69  
 
 70  
         /**
 71  
          * @return
 72  
          */
 73  
         public boolean isReadOnly();
 74  
 
 75  
         /**
 76  
          * @param readOnly The readOnly to set.
 77  
          */
 78  
         public void setReadOnly(boolean readOnly);
 79  
 
 80  
         /**
 81  
          * @return
 82  
          */
 83  
         public String getName();
 84  
 
 85  
         public void setName(String name);
 86  
 
 87  
         /**
 88  
          * @return
 89  
          */
 90  
         public String getShortDescription();
 91  
 
 92  
         public void setShortDescription(String shortDescription);
 93  
 
 94  
         public int getLength();
 95  
 
 96  
         public void setLength(int length);
 97  
 
 98  
         public abstract boolean isLarge();
 99  
 
 100  
         public abstract void setLarge(boolean Large);
 101  
 
 102  
         public String getFormat();
 103  
 
 104  
         public void setFormat(String format);
 105  
 
 106  
         public boolean isSearchable();
 107  
 
 108  
         public void setSearchable(boolean searchable);
 109  
 
 110  
         public boolean isSummary();
 111  
 
 112  
         public boolean isCollection();
 113  
 
 114  
         public void setSummary(boolean summary);
 115  
 
 116  
         public boolean isEmbedded();
 117  
 
 118  
         public boolean isRichText();
 119  
 
 120  
         public boolean isIdentifier();
 121  
 
 122  
         public void setRichText(boolean richText);
 123  
 
 124  
         public Class getBeanType();
 125  
 
 126  
         public void setBeanType(Class beanType);
 127  
 
 128  
 }