You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ant.apache.org by do...@apache.org on 2001/06/29 09:39:42 UTC
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;
}
/**