pbwest 2002/11/20 23:50:53 Modified: src/org/apache/fop/fo/flow Tag: FOP_0-20-0_Alt-Design FoNoFo.java Log: Throw exception only. No extends clause. Revision Changes Path No revision No revision 1.1.2.6 +15 -14 xml-fop/src/org/apache/fop/fo/flow/Attic/FoNoFo.java Index: FoNoFo.java =================================================================== RCS file: /home/cvs/xml-fop/src/org/apache/fop/fo/flow/Attic/FoNoFo.java,v retrieving revision 1.1.2.5 retrieving revision 1.1.2.6 diff -u -r1.1.2.5 -r1.1.2.6 --- FoNoFo.java 17 Nov 2002 09:50:08 -0000 1.1.2.5 +++ FoNoFo.java 21 Nov 2002 07:50:53 -0000 1.1.2.6 @@ -28,7 +28,7 @@ /** * Implements the fo:no-fo flow object. */ -public class FoNoFo extends FONode { +public class FoNoFo { private static final String tag = "$Name$"; private static final String revision = "$Revision$"; @@ -38,16 +38,17 @@ position in the <i>sparsePropsSet</i> array. See {@link org.apache.fop.fo.FONode#sparsePropsSet FONode.sparsePropsSet}. */ - private static final HashMap sparsePropsMap; + //private static final HashMap sparsePropsMap; /** An <tt>int</tt> array of of the applicable property indices, in property index order. */ - private static final int[] sparseIndices; + //private static final int[] sparseIndices; /** The number of applicable properties. This is the size of the <i>sparsePropsSet</i> array. */ - private static final int numProps; + //private static final int numProps; + /* static { // Collect the sets of properties that apply BitSet propsets = new BitSet(); @@ -62,24 +63,24 @@ sparsePropsMap.put (Ints.consts.get(PropNames.NO_PROPERTY), Ints.consts.get(0)); } + */ /** + * The non-existent flow object. If it comes to this, something + * has gone wrong. A use may be found for this later. * @param foTree the FO tree being built * @param parent the parent FONode of this node * @param event the <tt>FoXMLEvent</tt> that triggered the creation of * this node - * @param attrSet the index of the attribute set applying to the node. + * @param stateFlags - passed down from the parent. Includes the + * attribute set information. + * @throws FOPException, without exception. */ public FoNoFo - (FOTree foTree, FONode parent, FoXMLEvent event, int attrSet) - throws TreeException, FOPException + (FOTree foTree, FONode parent, FoXMLEvent event, int stateFlags) + throws FOPException { - super(foTree, FObjectNames.NO_FO, parent, event, - attrSet, sparsePropsMap, sparseIndices); - FoXMLEvent ev; - String nowProcessing; - - makeSparsePropsSet(); + throw new FOPException("No such flow object as fo:no-fo."); } }
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]