source: fedd/abac-src/rtml/src/edu/stanford/rt/datatype/ValueSet.java @ 8780cbec

axis_examplecompt_changesinfo-opsversion-1.30version-2.00version-3.01version-3.02
Last change on this file since 8780cbec was 8780cbec, checked in by Jay Jacobs <Jay.Jacobs@…>, 15 years ago

ABAC sources from Cobham

  • Property mode set to 100644
File size: 721 bytes
Line 
1package edu.stanford.rt.datatype;
2
3/**
4 * @author Ninghui Li, Sandra Qiu <br>
5 *
6 * A ValueSet object represents a set of values of a certain type.
7 */
8public class ValueSet
9{
10    /** value type */
11    private DataType type;
12
13    /**
14     * Constructor for ValueSet
15     */
16    public ValueSet(DataType type)
17    {
18        this.type = type;
19    }
20   
21        /**
22         * Method getType.
23     *  returns the value type.
24         * @return DataType
25         */
26    public DataType getType()
27    {
28        return type;
29    }
30   
31        /**
32         * Method toString.
33         * @param indent
34         * @return String
35         */
36    public String toString(String indent)
37    {
38        return type.toString(indent+indent);
39    }
40   
41
42}
Note: See TracBrowser for help on using the repository browser.