You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@avalon.apache.org by do...@apache.org on 2001/12/02 17:11:22 UTC

cvs commit: jakarta-avalon-cornerstone/src/java/org/apache/avalon/cornerstone/services/dom DocumentBuilderFactory.java

donaldp     01/12/02 08:11:22

  Modified:    src/java/org/apache/avalon/cornerstone/services/dom
                        DocumentBuilderFactory.java
  Log:
  ran through styler.
  
  Revision  Changes    Path
  1.2       +14 -25    jakarta-avalon-cornerstone/src/java/org/apache/avalon/cornerstone/services/dom/DocumentBuilderFactory.java
  
  Index: DocumentBuilderFactory.java
  ===================================================================
  RCS file: /home/cvs/jakarta-avalon-cornerstone/src/java/org/apache/avalon/cornerstone/services/dom/DocumentBuilderFactory.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- DocumentBuilderFactory.java	2001/11/03 13:22:35	1.1
  +++ DocumentBuilderFactory.java	2001/12/02 16:11:22	1.2
  @@ -22,6 +22,8 @@
    */
   public interface DocumentBuilderFactory
   {
  +    String ROLE = "org.apache.avalon.cornerstone.services.dom.DocumentBuilderFactory";
  +
       /**
        * Creates a new instance of a {@link javax.xml.parsers.DocumentBuilder}
        * using the currently configured parameters.
  @@ -30,9 +32,8 @@
        * cannot be created which satisfies the configuration requested.
        * @return A new instance of a DocumentBuilder.
        */
  -
  -    DocumentBuilder newDocumentBuilder() throws ParserConfigurationException;
  -
  +    DocumentBuilder newDocumentBuilder() 
  +        throws ParserConfigurationException;
   
       /**
        * Specifies that the parser produced by this code will
  @@ -42,9 +43,8 @@
        * @param awareness true if the parser produced will provide support
        *                  for XML namespaces; false otherwise.
        */
  +    void setNamespaceAware( boolean awareness );
   
  -    void setNamespaceAware(boolean awareness);
  -
       /**
        * Specifies that the parser produced by this code will
        * validate documents as they are parsed. By default the value of this
  @@ -53,8 +53,7 @@
        * @param validating true if the parser produced will validate documents
        *                   as they are parsed; false otherwise.
        */
  -
  -    void setValidating(boolean validating);
  +    void setValidating( boolean validating );
   
       /**
        * Specifies that the parsers created by this  factory must eliminate
  @@ -70,9 +69,8 @@
        *                   in the element content when parsing XML documents;
        *                   false otherwise.
        */
  +    void setIgnoringElementContentWhitespace( boolean whitespace );
   
  -    void setIgnoringElementContentWhitespace(boolean whitespace);
  -
       /**
        * Specifies that the parser produced by this code will
        * expand entity reference nodes. By default the value of this is set to
  @@ -81,17 +79,15 @@
        * @param expandEntityRef true if the parser produced will expand entity
        *                        reference nodes; false otherwise.
        */
  -
  -    void setExpandEntityReferences(boolean expandEntityRef);
  +    void setExpandEntityReferences( boolean expandEntityRef );
   
       /**
        * Specifies that the parser produced by this code will
        * ignore comments. By default the value of this is set to <code>false
        * </code>
        */
  +    void setIgnoringComments( boolean ignoreComments );
   
  -    void setIgnoringComments(boolean ignoreComments);
  -
       /**
        * Specifies that the parser produced by this code will
        * convert CDATA nodes to Text nodes and append it to the
  @@ -102,8 +98,7 @@
        *                    to Text nodes and append it to the adjacent (if any)
        *                    text node; false otherwise.
        */
  -
  -    void setCoalescing(boolean coalescing);
  +    void setCoalescing( boolean coalescing );
   
       /**
        * Indicates whether or not the factory is configured to produce
  @@ -112,7 +107,6 @@
        * @return  true if the factory is configured to produce parsers which
        *          are namespace aware; false otherwise.
        */
  -
       boolean isNamespaceAware();
   
       /**
  @@ -122,7 +116,6 @@
        * @return  true if the factory is configured to produce parsers
        *          which validate the XML content during parse; false otherwise.
        */
  -
       boolean isValidating();
   
       /**
  @@ -133,7 +126,6 @@
        *          which ignore ignorable whitespace in element content;
        *          false otherwise.
        */
  -
       boolean isIgnoringElementContentWhitespace();
   
       /**
  @@ -143,7 +135,6 @@
        * @return  true if the factory is configured to produce parsers
        *          which expand entity reference nodes; false otherwise.
        */
  -
       boolean isExpandEntityReferences();
   
       /**
  @@ -153,7 +144,6 @@
        * @return  true if the factory is configured to produce parsers
        *          which ignores comments; false otherwise.
        */
  -
       boolean isIgnoringComments();
   
       /**
  @@ -165,7 +155,6 @@
        *          which converts CDATA nodes to Text nodes and appends it to
        *          the adjacent (if any) Text node; false otherwise.
        */
  -
       boolean isCoalescing();
   
       /**
  @@ -176,7 +165,8 @@
        * @exception IllegalArgumentException thrown if the underlying
        * implementation doesn't recognize the attribute.
        */
  -    void setAttribute(String name, Object value) throws IllegalArgumentException;
  +    void setAttribute( String name, Object value )
  +        throws IllegalArgumentException;
   
       /**
        * Allows the user to retrieve specific attributes on the underlying
  @@ -186,7 +176,6 @@
        * @exception IllegalArgumentException thrown if the underlying
        * implementation doesn't recognize the attribute.
        */
  -    Object getAttribute(String name) throws IllegalArgumentException;
  -
  -
  +    Object getAttribute( String name ) 
  +        throws IllegalArgumentException;
   }
  
  
  

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>