|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectnet.sourceforge.nite.meta.impl.NiteResource
public class NiteResource
represents a single resource in a resource file, containing all its attributes and dependencies.
| Field Summary |
|---|
| Fields inherited from interface net.sourceforge.nite.meta.NRealResource |
|---|
AUTOMATIC, MANUAL |
| Constructor Summary | |
|---|---|
NiteResource(NResourceGroup gr,
java.lang.String id,
java.lang.String description,
java.lang.String rtype,
java.lang.String annotator,
java.lang.String path,
java.lang.String def)
the NiteResource constructor takes its parent resourceGroup and its attributes. |
|
| 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 |
getAnnotator()
return the annotator for this resource - null if this is an automatic process. |
java.lang.String |
getCoding()
return the name of the coding this resource implements |
java.lang.String |
getCodingManualReference()
return the coding manual reference or URL as a String |
java.lang.String |
getCoverage()
return the responsible person or organisation as a String |
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. |
java.lang.String |
getLastEdit()
return some details about the last edit to this resource as a String |
java.lang.String |
getPath()
return the value of the 'path' attribute for this resource. |
java.lang.String |
getQuality()
return the responsible person or organisation as a String |
NResourceGroup |
getResourceGroup()
return the NResourceGroup to which this NResource belongs |
java.lang.String |
getResponsible()
return the responsible person or organisation as a String |
int |
getType()
return the type of this resource: AUTOMATIC or MANUAL |
boolean |
isDefault()
return true if this resource has a 'default' attribute that is set to 'true' |
void |
setAnnotator(java.lang.String annotator)
set the annotator for this resource - should remain null if this is an automatic process. |
void |
setCodingManualReference(java.lang.String manual)
set the coding manual reference or URL as a String |
void |
setCoverage(java.lang.String coverage)
set the responsible person or organisation as a String |
void |
setDescription(java.lang.String description)
set the textual description of this resource |
void |
setIncompatibleID(java.lang.String inc)
set the value of the 'notloadedwith' attribute - i.e. |
void |
setLastEdit(java.lang.String edit)
return some details about the last edit to this resource as a String |
void |
setPath(java.lang.String path)
Set the value of the 'path' attribute for this resource group. |
void |
setQuality(java.lang.String quality)
set the responsible person or organisation as a String |
void |
setResponsible(java.lang.String responsible)
set the responsible person or organisation as a String |
void |
setType(int type)
set the type of this resource: AUTOMATIC or MANUAL |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public NiteResource(NResourceGroup gr,
java.lang.String id,
java.lang.String description,
java.lang.String rtype,
java.lang.String annotator,
java.lang.String path,
java.lang.String def)
throws NiteMetaException
NiteMetaException| Method Detail |
|---|
public void addDependency(java.lang.String res,
java.lang.String observation)
addDependency in interface NResource
public void addDependency(NResource res,
java.lang.String observation)
addDependency in interface NResourcepublic boolean dependsOn(NResource depresource)
dependsOn in interface NResourcepublic java.lang.String getCoding()
getCoding in interface NResourcepublic java.lang.String getID()
getID in interface NResourcepublic java.util.List getDependencies()
getDependencies in interface NResourcepublic java.lang.String getPath()
getPath in interface NRealResourcepublic void setPath(java.lang.String path)
setPath in interface NRealResourcepublic java.lang.String getDescription()
getDescription in interface NRealResourcegetDescription in interface NResourcepublic void setDescription(java.lang.String description)
setDescription in interface NRealResourcepublic java.lang.String getAnnotator()
getAnnotator in interface NRealResourcepublic void setAnnotator(java.lang.String annotator)
setAnnotator in interface NRealResourcepublic int getType()
getType in interface NRealResourcepublic void setType(int type)
setType in interface NRealResourcepublic NResourceGroup getResourceGroup()
getResourceGroup in interface NResourcepublic boolean isDefault()
isDefault in interface NResourcepublic java.lang.String getResponsible()
getResponsible in interface NRealResourcepublic void setResponsible(java.lang.String responsible)
setResponsible in interface NRealResourcepublic java.lang.String getCodingManualReference()
getCodingManualReference in interface NRealResourcepublic void setCodingManualReference(java.lang.String manual)
setCodingManualReference in interface NRealResourcepublic java.lang.String getQuality()
getQuality in interface NRealResourcepublic void setQuality(java.lang.String quality)
setQuality in interface NRealResourcepublic java.lang.String getCoverage()
getCoverage in interface NRealResourcepublic void setCoverage(java.lang.String coverage)
setCoverage in interface NRealResourcepublic java.lang.String getLastEdit()
getLastEdit in interface NRealResourcepublic void setLastEdit(java.lang.String edit)
setLastEdit in interface NRealResourcepublic java.lang.String getIncompatibleID()
getIncompatibleID in interface NResourcepublic void setIncompatibleID(java.lang.String inc)
setIncompatibleID in interface NResource
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||