public static class IdvResourceManager.IdvResource
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected java.util.List |
extraPaths
Extra paths we add on for plugin
|
protected java.lang.String |
fileNamePattern
The pattern to match on files
|
protected java.util.regex.Pattern |
pattern
Keep the file name pattern around.
|
Constructor and Description |
---|
IdvResource(java.lang.String id)
Create the object with the given id
|
IdvResource(java.lang.String id,
java.lang.String description)
Create the object with the given id and description
|
IdvResource(java.lang.String id,
java.lang.String description,
java.lang.String fileNamePattern)
Create the object with the given id, description and edit command
|
IdvResource(java.lang.String id,
java.lang.String description,
java.lang.String fileNamePattern,
boolean isUser)
Create an IdvResource
|
IdvResource(java.lang.String id,
java.lang.String description,
java.lang.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
|
Modifier and Type | Method and Description |
---|---|
void |
addExtraPath(java.lang.String path)
Add the extra path
|
java.lang.String |
getDescription()
Get the description
|
java.lang.String |
getId()
Get the id
|
java.util.regex.Pattern |
getPattern()
Create, if needed, and return the file pattern
|
ResourceCollection |
initResourceCollection(IdvResourceManager resourceManager)
Create the actual
ResourceCollection |
java.lang.String |
toString()
toString
|
protected java.util.List extraPaths
protected java.lang.String fileNamePattern
protected java.util.regex.Pattern pattern
public IdvResource(java.lang.String id)
id
- The id (e.g., idv.resource.colortables)public IdvResource(java.lang.String id, java.lang.String description)
id
- The id (e.g., idv.resource.colortables)description
- The descriptionpublic IdvResource(java.lang.String id, java.lang.String description, java.lang.String fileNamePattern)
id
- The id (e.g., idv.resource.colortables)description
- The descriptionfileNamePattern
- The pattern to matchpublic IdvResource(java.lang.String id, java.lang.String description, java.lang.String fileNamePattern, boolean isUser)
id
- the iddescription
- a descriptionfileNamePattern
- the file name patternisUser
- true if this is a use patternpublic IdvResource(java.lang.String id, java.lang.String description, java.lang.String fileNamePattern, boolean isXml, boolean forUser)
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 userpublic java.lang.String getId()
public java.lang.String getDescription()
public java.util.regex.Pattern getPattern()
public ResourceCollection initResourceCollection(IdvResourceManager resourceManager)
ResourceCollection
resourceManager
- The manager that really creates the collectionpublic void addExtraPath(java.lang.String path)
path
- extra pathpublic java.lang.String toString()
toString
in class java.lang.Object