Class AttributesXml

java.lang.Object
org.opengis.cite.cdb10.util.metadataXml.AttributesXml
Direct Known Subclasses:
GeomaticsAttributesXml, VendorAttributesXml

public class AttributesXml extends Object
Provides validation methods compatible with Geomatics Attributes and Vendor Attributes metadata files. See GeomaticsAttributesXml and VendorAttributesXml for more information.
  • Field Details

    • xmlFile

      protected File xmlFile
      xmlFile
    • xsdFile

      protected File xsdFile
      xsdFile
  • Constructor Details

    • AttributesXml

      public AttributesXml(String path, String filename, String schemaXPath)

      Constructor for AttributesXml.

      Parameters:
      path - a String object
      filename - a String object
      schemaXPath - a String object
  • Method Details

    • loadRemoteSchema

      protected void loadRemoteSchema(String schemaLocation)
      For this instance, download the schema from schemaLocation and set it as the schema file.
      Parameters:
      schemaLocation - HTTP/HTTPS URI pointing to schema
    • getXmlFileName

      public String getXmlFileName()

      getXmlFileName.

      Returns:
      a String object
    • getXmlFilePath

      public Path getXmlFilePath()

      getXmlFilePath.

      Returns:
      a Path object
    • getXsdFileName

      public String getXsdFileName()

      getXsdFileName.

      Returns:
      a String object
    • getXsdFilePath

      public Path getXsdFilePath()

      getXsdFilePath.

      Returns:
      a Path object
    • xmlFileExists

      public boolean xmlFileExists()

      xmlFileExists.

      Returns:
      a boolean
    • xsdFileExists

      public boolean xsdFileExists()

      xsdFileExists.

      Returns:
      a boolean
    • schemaValidationErrors

      public String schemaValidationErrors() throws SAXException, IOException

      schemaValidationErrors.

      Returns:
      a String object
      Throws:
      SAXException - if any.
      IOException - if any.