001    /*
002     * Created on Mar 18, 2005
003     *
004     * Copyright 2004 Chris Nelson
005     *
006     * Licensed under the Apache License, Version 2.0 (the "License");
007     * you may not use this file except in compliance with the License.
008     * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0
009     * Unless required by applicable law or agreed to in writing,
010     * software distributed under the License is distributed on an "AS IS" BASIS,
011     * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
012     * See the License for the specific language governing permissions and limitations under the License.
013     */
014    package org.trails.descriptor;
015    
016    
017    /**
018     * @author fus8882
019     *         <p/>
020     *         TODO To change the template for this generated type comment go to
021     *         Window - Preferences - Java - Code Style - Code Templates
022     */
023    public interface IPropertyDescriptor extends IDescriptor
024    {
025            public static final int UNDEFINED_INDEX = -1;
026    
027            public static final int DEFAULT_LENGTH = 255;
028    
029            public void setIndex(int index);
030    
031            public int getIndex();
032    
033            /**
034             * @return
035             */
036            public Class getPropertyType();
037    
038            /**
039             * @return
040             */
041            public boolean isNumeric();
042    
043            public boolean isBoolean();
044    
045            /**
046             * @return
047             */
048            public boolean isDate();
049    
050            /**
051             * @return
052             */
053            public boolean isString();
054    
055            /**
056             * @return
057             */
058            public boolean isObjectReference();
059    
060            /**
061             * @return Returns the required.
062             */
063            public boolean isRequired();
064    
065            /**
066             * @param required The required to set.
067             */
068            public void setRequired(boolean required);
069    
070            /**
071             * @return
072             */
073            public boolean isReadOnly();
074    
075            /**
076             * @param readOnly The readOnly to set.
077             */
078            public void setReadOnly(boolean readOnly);
079    
080            /**
081             * @return
082             */
083            public String getName();
084    
085            public void setName(String name);
086    
087            /**
088             * @return
089             */
090            public String getShortDescription();
091    
092            public void setShortDescription(String shortDescription);
093    
094            public int getLength();
095    
096            public void setLength(int length);
097    
098            public abstract boolean isLarge();
099    
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    }