ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From adammurd...@apache.org
Subject cvs commit: jakarta-ant-myrmidon/api/src/java/org/apache/myrmidon/api/metadata ModelElement.java
Date Fri, 05 Jul 2002 06:51:04 GMT
adammurdoch    2002/07/04 23:51:04

  Modified:    api/src/java/org/apache/myrmidon/api/metadata
                        ModelElement.java
  Log:
  Added ModelElement.setName()
  
  Revision  Changes    Path
  1.8       +12 -2     jakarta-ant-myrmidon/api/src/java/org/apache/myrmidon/api/metadata/ModelElement.java
  
  Index: ModelElement.java
  ===================================================================
  RCS file: /home/cvs/jakarta-ant-myrmidon/api/src/java/org/apache/myrmidon/api/metadata/ModelElement.java,v
  retrieving revision 1.7
  retrieving revision 1.8
  diff -u -r1.7 -r1.8
  --- ModelElement.java	13 Jun 2002 05:29:47 -0000	1.7
  +++ ModelElement.java	5 Jul 2002 06:51:04 -0000	1.8
  @@ -31,7 +31,7 @@
       private static final ModelElement[] EMPTY_MODEL_ELEMENT_ARRAY =
           new ModelElement[ 0 ];
   
  -    private final String m_name;
  +    private String m_name;
       private final String m_location;
       private HashMap m_attributes;
       private ArrayList m_children;
  @@ -65,6 +65,16 @@
       public String getName()
       {
           return m_name;
  +    }
  +
  +    /**
  +     * Sets the name of the <code>ModelElement</code>.
  +     * The name should be a well formed XML name.
  +     */
  +    public void setName( final String name )
  +    {
  +        checkWriteable();
  +        m_name = name;
       }
   
       /**
  
  
  

--
To unsubscribe, e-mail:   <mailto:ant-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:ant-dev-help@jakarta.apache.org>


Mime
View raw message