|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectnet.sourceforge.nite.meta.impl.NiteResourceGroup
public class NiteResourceGroup
Handles a resource-type element in a resource file. These just group resources and virtual resources into sets that instantiate the same metadata coding.
| Constructor Summary | |
|---|---|
NiteResourceGroup(java.lang.String coding,
java.lang.String path)
Constructor for NiteResourceGroup takes two Strings: the coding instantiated by all its children and the path (if the path is relative it's relative to the resource file location). |
|
NiteResourceGroup(java.lang.String coding,
java.lang.String path,
java.lang.String description)
Constructor for NiteResourceGroup takes three Strings: the coding instantiated by all its children; the path (if the path is relative it's relative to the resource file location); and the description of this group |
|
| Method Summary | |
|---|---|
void |
addDefaultedResource(NResource resource)
add a defaulted resource to the group - defaults can be virtual or real |
void |
addRealResource(NRealResource nr)
add a real resource to the group |
void |
addResource(NResource nr)
add a resource to the group - this could be real or virtual |
void |
addVirtualResource(NVirtualResource nr)
add a virtual resource to the group |
void |
deleteResource(NResource nr)
remove a resource from the group - only insisting on implementation of the generic form where the NResource can be NRealResource or NVirtualResource. |
java.lang.String |
getCoding()
get the name of the metadata coding that each resource in this group instantiates |
java.util.List |
getDefaultedResources()
retrieve all the resources that implement the particular coding instantiated by this group and have their default attribute set to true. |
java.lang.String |
getDescription()
return the generic description of the resource group. |
java.lang.String |
getPath()
return the value of the 'path' attribute for this resource group. |
java.util.List |
getRealResources()
retrieve all the (non-virtual) resources that implement the particular coding instantiated by this group |
java.util.List |
getVirtualResources()
retrieve all the virtual resources that implement the particular coding instantiated by this group |
void |
setDescription(java.lang.String description)
Set the value of the 'description' attribute for this resource group: a short textual description. |
void |
setPath(java.lang.String path)
Set the value of the 'path' attribute for this resource group. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public NiteResourceGroup(java.lang.String coding,
java.lang.String path)
public NiteResourceGroup(java.lang.String coding,
java.lang.String path,
java.lang.String description)
| Method Detail |
|---|
public void addResource(NResource nr)
addResource in interface NResourceGrouppublic void addRealResource(NRealResource nr)
addRealResource in interface NResourceGrouppublic void addVirtualResource(NVirtualResource nr)
addVirtualResource in interface NResourceGrouppublic void addDefaultedResource(NResource resource)
addDefaultedResource in interface NResourceGrouppublic java.util.List getRealResources()
getRealResources in interface NResourceGrouppublic java.util.List getVirtualResources()
getVirtualResources in interface NResourceGrouppublic java.util.List getDefaultedResources()
getDefaultedResources in interface NResourceGrouppublic java.lang.String getCoding()
getCoding in interface NResourceGrouppublic void deleteResource(NResource nr)
deleteResource in interface NResourceGrouppublic java.lang.String getPath()
getPath in interface NResourceGrouppublic void setPath(java.lang.String path)
setPath in interface NResourceGrouppublic java.lang.String getDescription()
getDescription in interface NResourceGrouppublic void setDescription(java.lang.String description)
setDescription in interface NResourceGroup
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||