Class IdvResourceManager.IdvResource

java.lang.Object
ucar.unidata.idv.IdvResourceManager.IdvResource
Direct Known Subclasses:
IdvResourceManager.XmlIdvResource
Enclosing class:
IdvResourceManager

public static class IdvResourceManager.IdvResource extends Object
Class IdvResource holds the resources files for a particular type of resource
Author:
IDV development team
  • Field Details

    • extraPaths

      protected List extraPaths
      Extra paths we add on for plugin
    • fileNamePattern

      protected String fileNamePattern
      The pattern to match on files
    • pattern

      protected Pattern pattern
      Keep the file name pattern around. This is used to find files that may match this resource type
  • Constructor Details

    • IdvResource

      public IdvResource(String id)
      Create the object with the given id
      Parameters:
      id - The id (e.g., idv.resource.colortables)
    • IdvResource

      public IdvResource(String id, String description)
      Create the object with the given id and description
      Parameters:
      id - The id (e.g., idv.resource.colortables)
      description - The description
    • IdvResource

      public IdvResource(String id, String description, String fileNamePattern)
      Create the object with the given id, description and edit command
      Parameters:
      id - The id (e.g., idv.resource.colortables)
      description - The description
      fileNamePattern - The pattern to match
    • IdvResource

      public IdvResource(String id, String description, String fileNamePattern, boolean isUser)
      Create an IdvResource
      Parameters:
      id - the id
      description - a description
      fileNamePattern - the file name pattern
      isUser - 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 description
      fileNamePattern - pattern
      isXml - Flag to denote if this is an xml resource
      forUser - flat to denote if this is for the user
  • Method Details

    • getId

      public String getId()
      Get the id
      Returns:
      the id
    • getDescription

      public String getDescription()
      Get the description
      Returns:
      description
    • getPattern

      public Pattern getPattern()
      Create, if needed, and return the file pattern
      Returns:
      file pattern
    • initResourceCollection

      public ResourceCollection initResourceCollection(IdvResourceManager resourceManager)
      Create the actual ResourceCollection
      Parameters:
      resourceManager - The manager that really creates the collection
      Returns:
      The collection
    • addExtraPath

      public void addExtraPath(String path)
      Add the extra path
      Parameters:
      path - extra path
    • toString

      public String toString()
      toString
      Overrides:
      toString in class Object
      Returns:
      toString