Class XMLSchema

java.lang.Object
edu.ucsb.nceas.metacat.service.XMLSchema
Direct Known Subclasses:
XMLNoNamespaceSchema

public class XMLSchema extends Object
  • Constructor Details

    • XMLSchema

      public XMLSchema(String fileNamespace, String externalFileUri, String formatId)
      Constructor - the schema file name will be extracted from the external file uri. The local file uri and local file dir will be constructed using system values and the file name.
      Parameters:
      fileNamespace - the file's name space
      externalFileUri - the external uri where the schema is located
  • Method Details

    • setFileName

      public void setFileName(String fileName)
      Set the file name. The local file uri and local file dir will also get set using system context url and dir values and the schema directory value.
      Parameters:
      fileName - the file name to set
    • getFileName

      public String getFileName()
      Gets the file name
      Returns:
      string holding the file name
    • setFileNamespace

      public void setFileNamespace(String fileNamespace)
      Sets the file namespace
      Parameters:
      fileNamespace - the namespace to set
    • getFileNamespace

      public String getFileNamespace()
      Gets the file namespace
      Returns:
      a string holding the file namespace
    • setExternalFileUri

      public void setExternalFileUri(String externalFileUri)
      Sets the external file uri. Extracts the file name from the uri and sets the file name as well.
      Parameters:
      externalFileUri - the external file uri to set
    • getExternalFileUri

      public String getExternalFileUri()
      Gets the external file uri
      Returns:
      a string holding the external file uri
    • getLocalFileUri

      public String getLocalFileUri()
      Gets the local file uri
      Returns:
      a string holding the local file uri
    • getLocalFileDir

      public String getLocalFileDir()
      Gets the local file directory path
      Returns:
      a string holding the local file directory path
    • getFormatId

      public String getFormatId()
      Get the format id
      Returns:
      the format id
    • setFormatId

      public void setFormatId(String formatId)
      Set the format id.
      Parameters:
      formatId - .
    • getType

      public static String getType()
      Return the type of the schema. It always is "Schema"
      Returns: