You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@xerces.apache.org by an...@apache.org on 2001/07/09 09:23:05 UTC

cvs commit: xml-xerces/java/samples/xni DocumentTracer.java

andyc       01/07/09 00:23:04

  Modified:    java/samples/xni Tag: xerces_j_2 DocumentTracer.java
  Log:
  Forgot to include update to XNI sample when I committed the
  changes for the XMLDTDContentModelHandler interface.
  
  Revision  Changes    Path
  No                   revision
  
  
  No                   revision
  
  
  1.1.2.14  +43 -52    xml-xerces/java/samples/xni/Attic/DocumentTracer.java
  
  Index: DocumentTracer.java
  ===================================================================
  RCS file: /home/cvs/xml-xerces/java/samples/xni/Attic/DocumentTracer.java,v
  retrieving revision 1.1.2.13
  retrieving revision 1.1.2.14
  diff -u -r1.1.2.13 -r1.1.2.14
  --- DocumentTracer.java	2001/05/09 21:10:48	1.1.2.13
  +++ DocumentTracer.java	2001/07/09 07:23:02	1.1.2.14
  @@ -85,7 +85,7 @@
    * @author Andy Clark, IBM
    * @author Arnaud Le Hors, IBM
    *
  - * @version $Id: DocumentTracer.java,v 1.1.2.13 2001/05/09 21:10:48 lehors Exp $
  + * @version $Id: DocumentTracer.java,v 1.1.2.14 2001/07/09 07:23:02 andyc Exp $
    */
   public class DocumentTracer 
       extends XMLDocumentParser
  @@ -697,81 +697,72 @@
       //
   
       /** Start content model. */
  -    public void startContentModel(String elementName, short type)
  -        throws XNIException {
  +    public void startContentModel(String elementName) throws XNIException {
   
           printIndent();
           fOut.print("startContentModel(");
           fOut.print("elementName=");
           printQuotedString(elementName);
  -        fOut.print(',');
  -        fOut.print("type=");
  -        switch (type) {
  -            case XMLDTDContentModelHandler.TYPE_ANY: {
  -                fOut.print("TYPE_ANY");
  -                break;
  -            }
  -            case XMLDTDContentModelHandler.TYPE_EMPTY: {
  -                fOut.print("TYPE_EMPTY");
  -                break;
  -            }
  -            case XMLDTDContentModelHandler.TYPE_MIXED: {
  -                fOut.print("TYPE_MIXED");
  -                break;
  -            }
  -            case XMLDTDContentModelHandler.TYPE_CHILDREN: {
  -                fOut.print("TYPE_CHILDREN");
  -                break;
  -            }
  -            default: {
  -                fOut.print("??? ("+type+')');
  -            }
  -        }
           fOut.println(')');
           fOut.flush();
           fIndent++;
   
  -    } // startContentModel(String,short)
  +    } // startContentModel(String)
   
  -    /** Mixed element. */
  -    public void mixedElement(String elementName) throws XNIException {
  +    /** Any. */
  +    public void any() throws XNIException {
   
           printIndent();
  -        fOut.print("mixedElement(");
  -        fOut.print("elementName=");
  -        printQuotedString(elementName);
  -        fOut.println(')');
  +        fOut.print("any()");
  +        fOut.flush();
  +
  +    } // any()
  +
  +    /** Empty. */
  +    public void empty() throws XNIException {
  +
  +        printIndent();
  +        fOut.print("empty()");
           fOut.flush();
   
  -    } // mixedElement(String)
  +    } // empty()
   
  -    /** Children start group. */
  -    public void childrenStartGroup() throws XNIException {
  +    /** Start group. */
  +    public void startGroup() throws XNIException {
   
           printIndent();
  -        fOut.println("childrenStartGroup()");
  +        fOut.println("startGroup()");
           fOut.flush();
           fIndent++;
   
       } // childrenStartGroup()
  +
  +    /** #PCDATA. */
  +    public void pcdata() throws XNIException {
  +    
  +        printIndent();
  +        fOut.println("pcdata()");
  +        fOut.flush();
  +
  +    } // pcdata()
   
  -    /** Children element. */
  -    public void childrenElement(String elementName) throws XNIException {
  +    /** Element. */
  +    public void element(String elementName) throws XNIException {
   
           printIndent();
  -        fOut.print("childrenElement(");
  +        fOut.print("element(");
           fOut.print("elementName=");
           printQuotedString(elementName);
           fOut.println(')');
           fOut.flush();
   
  -    } // childrenElement(String)
  +    } // element(String)
   
  -    /** Children separator. */
  -    public void childrenSeparator(short separator) throws XNIException {
  +    /** separator. */
  +    public void separator(short separator) throws XNIException {
   
           printIndent();
  -        fOut.print("childrenSeparator(");
  +        fOut.print("separator(");
           fOut.print("separator=");
           switch (separator) {
               case XMLDTDContentModelHandler.SEPARATOR_CHOICE: {
  @@ -789,13 +780,13 @@
           fOut.println(')');
           fOut.flush();
   
  -    } // childrenSeparator(short)
  +    } // separator(short)
   
  -    /** Children occurrence. */
  -    public void childrenOccurrence(short occurrence) throws XNIException {
  +    /** Occurrence. */
  +    public void occurrence(short occurrence) throws XNIException {
   
           printIndent();
  -        fOut.print("childrenOccurrence(");
  +        fOut.print("occurrence(");
           fOut.print("occurrence=");
           switch (occurrence) {
               case XMLDTDContentModelHandler.OCCURS_ONE_OR_MORE: {
  @@ -817,14 +808,14 @@
           fOut.println(')');
           fOut.flush();
   
  -    } // childrenOccurrence(short)
  +    } // occurrence(short)
   
  -    /** Children end group. */
  -    public void childrenEndGroup() throws XNIException {
  +    /** End group. */
  +    public void endGroup() throws XNIException {
   
           fIndent--;
           printIndent();
  -        fOut.println("childrenEndGroup()");
  +        fOut.println("endGroup()");
           fOut.flush();
   
       } // childrenEndGroup()
  
  
  

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