package OT; /** * Feature token. * @version 1999-04-02 * @author Andrea Heiberg, University of Arizona */ public class Feature extends Node { protected FeatureType featureType; protected boolean ordered = false; public Feature(String token, FeatureType featureType) { super(token); this.featureType = featureType; } //end constructor public String toString() { return "feature(" + featureType.name + "," + super.token + ")"; } //end toString public Feature copy () { Feature f = new Feature(token, featureType); f.ordered = ordered; return f; } //end copy } //end class