/* NodeTexter.java * * Copyright (c) 2001, Ted Nelson and Tuomas Lukka * * This file is part of Gzz. * * Gzz is free software; you can redistribute it and/or modify it under * the terms of the GNU Lesser General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * Gzz is distributed in the hope that it will be useful, but WITHOUT * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General * Public License for more details. * * You should have received a copy of the GNU Lesser General * Public License along with Gzz; if not, write to the Free * Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, * MA 02111-1307 USA * * */ /* * Written by Tuomas Lukka */ package org.fenfire; import org.nongnu.storm.*; import org.nongnu.alph.*; import com.hp.hpl.mesa.rdf.jena.model.*; // XXX import gzz.fuzzy.EnfiladeAligner; import java.util.*; /** An extension of NodeTexter for referential text. * The cells contain non-formatted vstreams. * (Formatting support to be added... sometime. *

* The vstreams are represented * as Lists containing Span1Ds and * Nodes. Nodes represent special objects * in the vstream. */ public interface VStreamNodeTexter extends NodeTexter { /** Get the vstream in this cell. * Never returns null. */ Enfilade1D getEnfilade(RDFNode node, Obs o); /** Set the vstream in this cell. */ void setEnfilade(RDFNode node, Enfilade1D vstream); /** Create an enfilade aligner instance for the enfilade in a given cell. * This can be used to externalize the content of a cell. */ // XXX EnfiladeAligner.Instance startEnfiladeAligner(RDFNode node); // --- The functions below just override the javadoc /** Return the vstream in this cell, merged into a single String. * This is the text of all TextSpans in this * cell, in order. RDFNodes and Span1Ds * that are not TextSpans are ignored. */ String getText(RDFNode node, Obs o); /** Create a new text span and make it the vstream * of this RDFNode. */ void setText(RDFNode node, String s); }