You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@xalan.apache.org by zo...@apache.org on 2003/08/01 03:03:15 UTC

cvs commit: xml-xalan/java/src/org/apache/xml/serializer ElemDesc.java

zongaro     2003/07/31 18:03:15

  Modified:    java/src/org/apache/xml/serializer ElemDesc.java
  Log:
  Added a getFlags() method to allow all flags on an ElemDesc object to be
  retrieved at once, rather than forcing multiple calls to ElemDesc.is(int).
  Also, marked class final.
  
  Reviewed by Brian Minchau (minchau@ca.ibm.com).
  
  Revision  Changes    Path
  1.3       +5 -1      xml-xalan/java/src/org/apache/xml/serializer/ElemDesc.java
  
  Index: ElemDesc.java
  ===================================================================
  RCS file: /home/cvs/xml-xalan/java/src/org/apache/xml/serializer/ElemDesc.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- ElemDesc.java	25 Jun 2003 14:40:36 -0000	1.2
  +++ ElemDesc.java	1 Aug 2003 01:03:15 -0000	1.3
  @@ -61,7 +61,7 @@
   /**
    * This class has a series of flags (bit values) that describe an HTML element
    */
  -public class ElemDesc
  +public final class ElemDesc
   {
       /** Bit flags to tell about this element type. */
       int m_flags;
  @@ -168,6 +168,10 @@
   
           // int which = (m_flags & flags);
           return (m_flags & flags) != 0;
  +    }
  +
  +    public int getFlags() {
  +        return m_flags;
       }
   
       /**
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: xalan-cvs-unsubscribe@xml.apache.org
For additional commands, e-mail: xalan-cvs-help@xml.apache.org