org.apache.avalon.composition.data
Class ResourceDirective

java.lang.Object
  extended byorg.apache.avalon.composition.data.ResourceDirective
All Implemented Interfaces:
Serializable

public class ResourceDirective
extends Object
implements Serializable

Version:
$Revision: 1.1.1.1 $ $Date: 2003/08/31 14:27:03 $
Author:
Avalon Development Team
See Also:
Serialized Form

Constructor Summary
ResourceDirective(String group, String name, String version)
          Creation of a new resource directive.
ResourceDirective(String group, String name, String version, String type)
          Creation of a new resource directive.
 
Method Summary
static ResourceDirective createResourceDirective(String id, String version)
          Creation of a new resource directive.
static ResourceDirective createResourceDirective(String id, String version, String type)
          Creation of a new resource directive.
 String getGroup()
          Return the group of the artifact.
 String getId()
          Return the composite identifier.
 String getName()
          Return the artifact name
 String getType()
          Return the type of the artifact.
 String getVersion()
          Return the version of the artifact.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ResourceDirective

public ResourceDirective(String group,
                         String name,
                         String version)
Creation of a new resource directive.

Parameters:
group - the artifact group
name - the artifact name
version - the artifact version

ResourceDirective

public ResourceDirective(String group,
                         String name,
                         String version,
                         String type)
Creation of a new resource directive.

Parameters:
group - the artifact group
name - the artifact name
version - the artifact version
Method Detail

getId

public String getId()
Return the composite identifier.

Returns:
the identifier

getName

public String getName()
Return the artifact name

Returns:
the artifact name

getGroup

public String getGroup()
Return the group of the artifact.

Returns:
the artifact group

getVersion

public String getVersion()
Return the version of the artifact.

Returns:
the artifact version

getType

public String getType()
Return the type of the artifact.

Returns:
the artifact type

createResourceDirective

public static ResourceDirective createResourceDirective(String id,
                                                        String version)
Creation of a new resource directive.

Parameters:
id - the artifact id
version - the artifact version

createResourceDirective

public static ResourceDirective createResourceDirective(String id,
                                                        String version,
                                                        String type)
Creation of a new resource directive.

Parameters:
id - the artifact id
version - the artifact version


Copyright © Apache Software Foundation. All Rights Reserved.