donaldp 2002/06/08 00:43:26
Added: container/src/java/org/apache/myrmidon/interfaces/workspace
ProjectRef.java
Log:
Start to move ProectRef to Workspace
Revision Changes Path
1.1
jakarta-ant-myrmidon/container/src/java/org/apache/myrmidon/interfaces/workspace/ProjectRef.java
Index: ProjectRef.java
===================================================================
/*
* Copyright (C) The Apache Software Foundation. All rights reserved.
*
* This software is published under the terms of the Apache Software License
* version 1.1, a copy of which has been included with this distribution in
* the LICENSE.txt file.
*/
package org.apache.myrmidon.interfaces.workspace;
import org.apache.myrmidon.interfaces.workspace.ProjectDescriptor;
/**
* A object modeling a project reference.
*
* @author <a href="mailto:[EMAIL PROTECTED]">Peter Donald</a>
* @version $Revision: 1.1 $ $Date: 2002/06/08 07:43:26 $
*/
public class ProjectRef
{
private final String m_name;
private final ProjectDescriptor m_project;
/**
* Create a reference.
*
* @param name The local name used to refer to project
* @param project the project descriptor.
*/
public ProjectRef( final String name,
final ProjectDescriptor project )
{
m_name = name;
m_project = project;
}
/**
* @return The name of the project containing the depended-on target.
*/
public String getName()
{
return m_name;
}
/**
* Return the descriptor for project referred to.
*
* @return the descriptor for project referred to.
*/
public ProjectDescriptor getProject()
{
return m_project;
}
/**
* Return human readable string for Project reference.
*
* @return human readable string.
*/
public String toString()
{
return m_name + ": " + m_project;
}
}
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>