2 * Portions Copyright 2001 Sun Microsystems, Inc.
3 * Portions Copyright 1999-2001 Language Technologies Institute,
4 * Carnegie Mellon University.
5 * All Rights Reserved. Use is subject to license terms.
7 * See the file "license.terms" for information on usage and
8 * redistribution of this file, and for a DISCLAIMER OF ALL
11 package com.sun.speech.freetts;
15 * Manages a feature or item path. Allows navigation
16 * to the corresponding feature or item.
18 public interface PathExtractor {
21 * Finds the item associated with this object.
23 * @param item the starting point for the path navigation
25 * @return the item associated with the path or null
27 public Item findItem(Item item);
30 * Finds the feature associated with this object.
32 * @param item the starting point for the path navigation
34 * @return the feature associated or "0" if the
35 * feature was not found
37 public Object findFeature(Item item);
40 // TODO: add these to the interface should we support binary
43 public void writeBinary();
44 public void readBinary();