net.sourceforge.nite.meta
Interface NResource

All Known Subinterfaces:
NRealResource, NVirtualResource
All Known Implementing Classes:
NiteResource, NiteVirtualResource

public interface NResource

A single resource in a resource file, provides access methods for its ID, coding and dependencies. Subclassed by NRealResource and NVirtualResource

Author:
jonathan

Method Summary
 void addDependency(NResource res, java.lang.String observation)
          add a dependency with resource resolved and observation (regexp) as a String
 void addDependency(java.lang.String res, java.lang.String observation)
          add a dependency with resource and observation (regexp) as Strings
 boolean dependsOn(NResource depresource)
          returns true if this resource can trace a dependency on the given resource for any observation (i.e.
 java.lang.String getCoding()
          return the name of the coding this resource implements
 java.util.List getDependencies()
          return a List of NResourceDependency elements
 java.lang.String getDescription()
          return the textual description of this resource
 java.lang.String getID()
          return the ID of this resource
 java.lang.String getIncompatibleID()
          return the value of the 'notloadedwith' attribute - i.e.
 NResourceGroup getResourceGroup()
          return the NResourceGroup to which this NResource belongs
 boolean isDefault()
          return true if this resource has a 'default' attribute that is set to 'true'
 void setIncompatibleID(java.lang.String inc)
          set the value of the 'notloadedwith' attribute - i.e.
 

Method Detail

addDependency

void addDependency(java.lang.String res,
                   java.lang.String observation)
add a dependency with resource and observation (regexp) as Strings


addDependency

void addDependency(NResource res,
                   java.lang.String observation)
add a dependency with resource resolved and observation (regexp) as a String


getCoding

java.lang.String getCoding()
return the name of the coding this resource implements


getID

java.lang.String getID()
return the ID of this resource


getDependencies

java.util.List getDependencies()
return a List of NResourceDependency elements


getResourceGroup

NResourceGroup getResourceGroup()
return the NResourceGroup to which this NResource belongs


isDefault

boolean isDefault()
return true if this resource has a 'default' attribute that is set to 'true'


getDescription

java.lang.String getDescription()
return the textual description of this resource


getIncompatibleID

java.lang.String getIncompatibleID()
return the value of the 'notloadedwith' attribute - i.e. an ID of a resource that should never be loaded with this one.


setIncompatibleID

void setIncompatibleID(java.lang.String inc)
set the value of the 'notloadedwith' attribute - i.e. an ID of a resource that should never be loaded with this one.


dependsOn

boolean dependsOn(NResource depresource)
returns true if this resource can trace a dependency on the given resource for any observation (i.e. it has a direct or indirect dependency)