01: // THIS SOFTWARE IS PROVIDED BY SOFTARIS PTY.LTD. AND OTHER METABOSS
02: // CONTRIBUTORS ``AS IS'' AND ANY EXPRESSED OR IMPLIED WARRANTIES, INCLUDING,
03: // BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
04: // FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL SOFTARIS PTY.LTD.
05: // OR OTHER METABOSS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
06: // INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
07: // LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA,
08: // OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
09: // LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
10: // NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
11: // EVEN IF SOFTARIS PTY.LTD. OR OTHER METABOSS CONTRIBUTORS ARE ADVISED OF THE
12: // POSSIBILITY OF SUCH DAMAGE.
13: //
14: // Copyright 2000-2005 © Softaris Pty.Ltd. All Rights Reserved.
15: package com.metaboss.sdlctools.domains.enterprisemodel;
16:
17: import com.metaboss.enterprise.bo.BOException;
18: import com.oldboss.framework.bo.BOObject;
19:
20: public interface BOField extends BOObject {
21: /** Retrieves field name. Usually last part of the reference.
22: * name is only unique within type */
23: public String getName() throws BOException;
24:
25: /** Returns structure which owns this field or null if this field is not owned by structure */
26: public BOStructure getOwnerStructure() throws BOException;
27:
28: /** Returns operation which owns this field or null if this field is not owned by operation */
29: public BOOperation getOwnerOperation() throws BOException;
30:
31: /** Returns report which owns this field or null if this field is not owned by report */
32: public BOReport getOwnerReport() throws BOException;
33:
34: /** Returns selector which owns this field or null if this field is not owned by selector */
35: public BOSelector getOwnerSelector() throws BOException;
36:
37: /** Retrieves description */
38: public String getDescription() throws BOException;
39:
40: /** Sets description */
41: public void setDescription(String pDescription) throws BOException;
42:
43: /** Returns boolean flag indicating if this field is an array */
44: public boolean isArray() throws BOException;
45:
46: /** Sets boolean flag indicating if this field is an array */
47: public void setIsArray(boolean isArray) throws BOException;
48:
49: /** Returns type object
50: * It may be of type BODataType or BOStructure */
51: public BOObject getType() throws BOException;
52:
53: /** Sets type to the given datatype */
54: public void setType(BODatatype pDatatype) throws BOException;
55:
56: /** Sets type to the given structure type */
57: public void setType(BOStructure pStructure) throws BOException;
58: }
|