Package ucar.unidata.idv
Class IdvResourceManager.IdvResource
java.lang.Object
ucar.unidata.idv.IdvResourceManager.IdvResource
- Direct Known Subclasses:
IdvResourceManager.XmlIdvResource
- Enclosing class:
IdvResourceManager
Class IdvResource holds the resources files for a particular
type of resource
- Author:
- IDV development team
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionIdvResource(String id) Create the object with the given idIdvResource(String id, String description) Create the object with the given id and descriptionIdvResource(String id, String description, String fileNamePattern) Create the object with the given id, description and edit commandIdvResource(String id, String description, String fileNamePattern, boolean isUser) Create an IdvResourceIdvResource(String id, String description, String fileNamePattern, boolean isXml, boolean forUser) Create the object with the given id, description and edit command If isXml is true then this is an xml resource -
Method Summary
Modifier and TypeMethodDescriptionvoidaddExtraPath(String path) Add the extra pathGet the descriptiongetId()Get the idCreate, if needed, and return the file patterninitResourceCollection(IdvResourceManager resourceManager) Create the actualResourceCollectiontoString()toString
-
Field Details
-
extraPaths
Extra paths we add on for plugin -
fileNamePattern
The pattern to match on files -
pattern
Keep the file name pattern around. This is used to find files that may match this resource type
-
-
Constructor Details
-
IdvResource
Create the object with the given id- Parameters:
id- The id (e.g., idv.resource.colortables)
-
IdvResource
Create the object with the given id and description- Parameters:
id- The id (e.g., idv.resource.colortables)description- The description
-
IdvResource
Create the object with the given id, description and edit command- Parameters:
id- The id (e.g., idv.resource.colortables)description- The descriptionfileNamePattern- The pattern to match
-
IdvResource
Create an IdvResource- Parameters:
id- the iddescription- a descriptionfileNamePattern- the file name patternisUser- true if this is a use pattern
-
IdvResource
public IdvResource(String id, String description, String fileNamePattern, boolean isXml, boolean forUser) Create the object with the given id, description and edit command If isXml is true then this is an xml resource- Parameters:
id- The id (e.g., idv.resource.colortables)description- The descriptionfileNamePattern- patternisXml- Flag to denote if this is an xml resourceforUser- flat to denote if this is for the user
-
-
Method Details
-
getId
Get the id- Returns:
- the id
-
getDescription
Get the description- Returns:
- description
-
getPattern
Create, if needed, and return the file pattern- Returns:
- file pattern
-
initResourceCollection
Create the actualResourceCollection- Parameters:
resourceManager- The manager that really creates the collection- Returns:
- The collection
-
addExtraPath
Add the extra path- Parameters:
path- extra path
-
toString
toString
-