Class AttributesXml
java.lang.Object
org.opengis.cite.cdb10.util.metadataXml.AttributesXml
- Direct Known Subclasses:
GeomaticsAttributesXml,VendorAttributesXml
Provides validation methods compatible with Geomatics Attributes and Vendor Attributes
metadata files. See GeomaticsAttributesXml and VendorAttributesXml for more
information.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionAttributesXml(String path, String filename, String schemaXPath) Constructor for AttributesXml. -
Method Summary
Modifier and TypeMethodDescriptiongetXmlFileName.getXmlFilePath.getXsdFileName.getXsdFilePath.protected voidloadRemoteSchema(String schemaLocation) For this instance, download the schema from schemaLocation and set it as the schema file.schemaValidationErrors.booleanxmlFileExists.booleanxsdFileExists.
-
Field Details
-
xmlFile
xmlFile -
xsdFile
xsdFile
-
-
Constructor Details
-
Method Details
-
loadRemoteSchema
For this instance, download the schema from schemaLocation and set it as the schema file.- Parameters:
schemaLocation- HTTP/HTTPS URI pointing to schema
-
getXmlFileName
getXmlFileName.
- Returns:
- a
Stringobject
-
getXmlFilePath
getXmlFilePath.
- Returns:
- a
Pathobject
-
getXsdFileName
getXsdFileName.
- Returns:
- a
Stringobject
-
getXsdFilePath
getXsdFilePath.
- Returns:
- a
Pathobject
-
xmlFileExists
public boolean xmlFileExists()xmlFileExists.
- Returns:
- a boolean
-
xsdFileExists
public boolean xsdFileExists()xsdFileExists.
- Returns:
- a boolean
-
schemaValidationErrors
schemaValidationErrors.
- Returns:
- a
Stringobject - Throws:
SAXException- if any.IOException- if any.
-