Class SchemaLocation

java.lang.Object
org.n52.shetland.w3c.SchemaLocation
All Implemented Interfaces:
Comparable<SchemaLocation>

public class SchemaLocation extends Object implements Comparable<SchemaLocation>
Class represents a XML schema location with namespace and schema file URL.
Since:
1.0.0
  • Constructor Details

    • SchemaLocation

      public SchemaLocation(String namespace, String schemaFileUrl)
      Constructor
      Parameters:
      namespace - Namespace
      schemaFileUrl - Schema file URL
  • Method Details

    • getNamespace

      public String getNamespace()
      Get namespace of schema location
      Returns:
      namespace
    • getSchemaFileUrl

      public String getSchemaFileUrl()
      Get schema file URL
      Returns:
      schema file URL
    • getSchemaLocationString

      public String getSchemaLocationString()
      Returns:
      Schema location string
    • compareTo

      public int compareTo(SchemaLocation other)
      Specified by:
      compareTo in interface Comparable<SchemaLocation>
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object