org.apache.avalon.tools.model
Class ResourceRef

java.lang.Object
  extended byorg.apache.avalon.tools.model.ResourceRef

public class ResourceRef
extends Object

Delcaration of a repository resource reference.

Version:
$Revision: 1.2 $ $Date: 2004/03/17 10:30:09 $
Author:
Avalon Development Team

Field Summary
static int ANY
           
static int API
           
static int IMPL
           
static int SPI
           
 
Constructor Summary
ResourceRef(String key)
           
ResourceRef(String key, Policy policy, int tag)
           
 
Method Summary
 boolean equals(Object other)
           
static int getCategory(String category)
           
static String getCategoryName(int category)
           
 String getKey()
           
 Policy getPolicy()
           
 int getTag()
           
 boolean matches(int category)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

ANY

public static final int ANY
See Also:
Constant Field Values

API

public static final int API
See Also:
Constant Field Values

SPI

public static final int SPI
See Also:
Constant Field Values

IMPL

public static final int IMPL
See Also:
Constant Field Values
Constructor Detail

ResourceRef

public ResourceRef(String key)

ResourceRef

public ResourceRef(String key,
                   Policy policy,
                   int tag)
Method Detail

getCategory

public static int getCategory(String category)

getCategoryName

public static String getCategoryName(int category)

getKey

public String getKey()

getTag

public int getTag()

getPolicy

public Policy getPolicy()

matches

public boolean matches(int category)

equals

public boolean equals(Object other)

toString

public String toString()