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:
741 bytes
|
Rev | Line | |
---|
[8780cbec] | 1 | package edu.stanford.rt.datatype; |
---|
| 2 | |
---|
| 3 | /** |
---|
| 4 | * @author Ninghui Li, Sandra Qiu<br> |
---|
| 5 | * |
---|
| 6 | * DataType is the super class of all data type classes in RTML. |
---|
| 7 | * Every data type must have a type name. |
---|
| 8 | */ |
---|
| 9 | public abstract class DataType |
---|
| 10 | { |
---|
| 11 | /** The name of the defined type */ |
---|
| 12 | private String name; |
---|
| 13 | |
---|
| 14 | DataType(String name) |
---|
| 15 | { |
---|
| 16 | this.name = name; |
---|
| 17 | } |
---|
| 18 | |
---|
| 19 | /** Return the name of this type. */ |
---|
| 20 | public String getName() |
---|
| 21 | { |
---|
| 22 | return name; |
---|
| 23 | } |
---|
| 24 | |
---|
| 25 | /** |
---|
| 26 | * Method toString. |
---|
| 27 | * @param indent |
---|
| 28 | * @return String |
---|
| 29 | */ |
---|
| 30 | public String toString(String indent) |
---|
| 31 | { |
---|
| 32 | return indent + " " + name; |
---|
| 33 | } |
---|
| 34 | |
---|
| 35 | public String toString() |
---|
| 36 | { |
---|
| 37 | return name; |
---|
| 38 | } |
---|
| 39 | } |
---|
| 40 | |
---|
Note: See
TracBrowser
for help on using the repository browser.