Coverage Report - org.codehaus.plexus.util.xml.pull.XmlSerializer
 
Classes in this File Line Coverage Branch Coverage Complexity
XmlSerializer
N/A
N/A
1
 
 1  
 package org.codehaus.plexus.util.xml.pull;
 2  
 
 3  
 /*
 4  
  * Licensed to the Apache Software Foundation (ASF) under one
 5  
  * or more contributor license agreements.  See the NOTICE file
 6  
  * distributed with this work for additional information
 7  
  * regarding copyright ownership.  The ASF licenses this file
 8  
  * to you under the Apache License, Version 2.0 (the
 9  
  * "License"); you may not use this file except in compliance
 10  
  * with the License.  You may obtain a copy of the License at
 11  
  *
 12  
  *  http://www.apache.org/licenses/LICENSE-2.0
 13  
  *
 14  
  * Unless required by applicable law or agreed to in writing,
 15  
  * software distributed under the License is distributed on an
 16  
  * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
 17  
  * KIND, either express or implied.  See the License for the
 18  
  * specific language governing permissions and limitations
 19  
  * under the License.
 20  
  */
 21  
 
 22  
 import java.io.IOException;
 23  
 import java.io.OutputStream;
 24  
 import java.io.Writer;
 25  
 
 26  
 public interface XmlSerializer
 27  
 {
 28  
 
 29  
     void setFeature( String name, boolean state )
 30  
         throws IllegalArgumentException, IllegalStateException;
 31  
 
 32  
     boolean getFeature( String name );
 33  
 
 34  
     void setProperty( String name, Object value )
 35  
         throws IllegalArgumentException, IllegalStateException;
 36  
 
 37  
     Object getProperty( String name );
 38  
 
 39  
     void setOutput( OutputStream os, String encoding )
 40  
         throws IOException, IllegalArgumentException, IllegalStateException;
 41  
 
 42  
     void setOutput( Writer writer )
 43  
         throws IOException, IllegalArgumentException, IllegalStateException;
 44  
 
 45  
     void startDocument( String encoding, Boolean standalone )
 46  
         throws IOException, IllegalArgumentException, IllegalStateException;
 47  
 
 48  
     void endDocument()
 49  
         throws IOException, IllegalArgumentException, IllegalStateException;
 50  
 
 51  
     void setPrefix( String prefix, String namespace )
 52  
         throws IOException, IllegalArgumentException, IllegalStateException;
 53  
 
 54  
     String getPrefix( String namespace, boolean generatePrefix )
 55  
         throws IllegalArgumentException;
 56  
 
 57  
     int getDepth();
 58  
 
 59  
     String getNamespace();
 60  
 
 61  
     String getName();
 62  
 
 63  
     XmlSerializer startTag( String namespace, String name )
 64  
         throws IOException, IllegalArgumentException, IllegalStateException;
 65  
 
 66  
     XmlSerializer attribute( String namespace, String name, String value )
 67  
         throws IOException, IllegalArgumentException, IllegalStateException;
 68  
 
 69  
     XmlSerializer endTag( String namespace, String name )
 70  
         throws IOException, IllegalArgumentException, IllegalStateException;
 71  
 
 72  
     XmlSerializer text( String text )
 73  
         throws IOException, IllegalArgumentException, IllegalStateException;
 74  
 
 75  
     XmlSerializer text( char[] buf, int start, int len )
 76  
         throws IOException, IllegalArgumentException, IllegalStateException;
 77  
 
 78  
     void cdsect( String text )
 79  
         throws IOException, IllegalArgumentException, IllegalStateException;
 80  
 
 81  
     void entityRef( String text )
 82  
         throws IOException, IllegalArgumentException, IllegalStateException;
 83  
 
 84  
     void processingInstruction( String text )
 85  
         throws IOException, IllegalArgumentException, IllegalStateException;
 86  
 
 87  
     void comment( String text )
 88  
         throws IOException, IllegalArgumentException, IllegalStateException;
 89  
 
 90  
     void docdecl( String text )
 91  
         throws IOException, IllegalArgumentException, IllegalStateException;
 92  
 
 93  
     void ignorableWhitespace( String text )
 94  
         throws IOException, IllegalArgumentException, IllegalStateException;
 95  
 
 96  
     void flush()
 97  
         throws IOException;
 98  
 }