Return-Path: Delivered-To: apmail-jakarta-ant-dev-archive@jakarta.apache.org Received: (qmail 55463 invoked by uid 500); 29 Jun 2001 07:39:46 -0000 Mailing-List: contact ant-dev-help@jakarta.apache.org; run by ezmlm Precedence: bulk Reply-To: ant-dev@jakarta.apache.org list-help: list-unsubscribe: list-post: Delivered-To: mailing list ant-dev@jakarta.apache.org Received: (qmail 55397 invoked by uid 500); 29 Jun 2001 07:39:43 -0000 Delivered-To: apmail-jakarta-ant-cvs@apache.org Date: 29 Jun 2001 07:39:42 -0000 Message-ID: <20010629073942.55390.qmail@apache.org> From: donaldp@apache.org To: jakarta-ant-cvs@apache.org Subject: cvs commit: jakarta-ant/proposal/myrmidon/src/java/org/apache/myrmidon/components/model TypeLib.java donaldp 01/06/29 00:39:41 Modified: proposal/myrmidon/src/java/org/apache/myrmidon/components/model TypeLib.java Log: Change terminology from Type->Role to match rest of proposal. Revision Changes Path 1.2 +11 -11 jakarta-ant/proposal/myrmidon/src/java/org/apache/myrmidon/components/model/TypeLib.java Index: TypeLib.java =================================================================== RCS file: /home/cvs/jakarta-ant/proposal/myrmidon/src/java/org/apache/myrmidon/components/model/TypeLib.java,v retrieving revision 1.1 retrieving revision 1.2 diff -u -r1.1 -r1.2 --- TypeLib.java 2001/06/27 01:17:21 1.1 +++ TypeLib.java 2001/06/29 07:39:40 1.2 @@ -20,8 +20,8 @@ //Do we need this?? //private final String m_namespace; - //The type to be imported from library - private final String m_type; + //The role of object to be imported + private final String m_role; //The name of type instance private final String m_name; @@ -31,31 +31,31 @@ this( library, null, null ); } - public TypeLib( final String library, final String type, final String name ) + public TypeLib( final String library, final String role, final String name ) { m_library = library; - m_type = type; + m_role = role; m_name = name; //If only one of name or type is null, throw an exception - if( null == m_type || null == m_name ) + if( null == m_role || null == m_name ) { - if( null != m_type || null != m_name ) + if( null != m_role || null != m_name ) { throw new IllegalArgumentException( "Can not have an import that specifies " + - "only one of name or type" ); + "only one of; name or role" ); } } } /** - * Get type + * Get role * - * @return the type + * @return the role */ - public final String getType() + public final String getRole() { - return m_type; + return m_role; } /**