pbwest      2004/05/10 04:47:48

  Modified:    src/java/org/apache/fop/fo Tag: FOP_0-20-0_Alt-Design
                        FONode.java
  Log:
  Added nodeType() to convert the int node type field into a String
  
  Revision  Changes    Path
  No                   revision
  No                   revision
  1.2.2.24  +12 -0     xml-fop/src/java/org/apache/fop/fo/FONode.java
  
  Index: FONode.java
  ===================================================================
  RCS file: /home/cvs/xml-fop/src/java/org/apache/fop/fo/FONode.java,v
  retrieving revision 1.2.2.23
  retrieving revision 1.2.2.24
  diff -u -r1.2.2.23 -r1.2.2.24
  --- FONode.java       8 May 2004 13:08:17 -0000       1.2.2.23
  +++ FONode.java       10 May 2004 11:47:47 -0000      1.2.2.24
  @@ -621,4 +621,16 @@
           throw new FOPException("Called from FONode");
       }
   
  +    /**
  +     * Gets a <code>String</code> with the node type
  +     * @return the name of the node type
  +     */
  +    public String nodeType() {
  +        try {
  +            return FObjectNames.getFOName(type);
  +        } catch (FOPException e) {
  +            return "Unknown";
  +        }
  +    }
  +
   }// FONode
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to