Class JXESchemaResolutionMappings

java.lang.Object
com.io7m.jxe.core.JXESchemaResolutionMappings
All Implemented Interfaces:
JXESchemaResolutionMappingsType

public final class JXESchemaResolutionMappings extends Object implements JXESchemaResolutionMappingsType
A set of mappings from namespace URIs to schemas.
  • Method Details

    • mappings

      public Map<URI,JXESchemaDefinition> mappings()
      Specified by:
      mappings in interface JXESchemaResolutionMappingsType
      Returns:
      The set of mappings from namespace URIs to schemas
    • withMappings

      public final JXESchemaResolutionMappings withMappings(Map<? extends URI,? extends JXESchemaDefinition> entries)
      Copy the current immutable object by replacing the mappings map with the specified map. Nulls are not permitted as keys or values. A shallow reference equality check is used to prevent copying of the same value by returning this.
      Parameters:
      entries - The entries to be added to the mappings map
      Returns:
      A modified copy of this object
    • equals

      public boolean equals(Object another)
      This instance is equal to all instances of JXESchemaResolutionMappings that have equal attribute values.
      Overrides:
      equals in class Object
      Returns:
      true if this is equal to another instance
    • hashCode

      public int hashCode()
      Computes a hash code from attributes: mappings.
      Overrides:
      hashCode in class Object
      Returns:
      hashCode value
    • toString

      public String toString()
      Prints the immutable value JXESchemaResolutionMappings with attribute values.
      Overrides:
      toString in class Object
      Returns:
      A string representation of the value
    • copyOf

      Creates an immutable copy of a JXESchemaResolutionMappingsType value. Uses accessors to get values to initialize the new immutable instance. If an instance is already immutable, it is returned as is.
      Parameters:
      instance - The instance to copy
      Returns:
      A copied immutable JXESchemaResolutionMappings instance
    • builder

      public static JXESchemaResolutionMappings.Builder builder()
      Creates a builder for JXESchemaResolutionMappings.
       JXESchemaResolutionMappings.builder()
          .putMappings|putAllMappings(java.net.URI => JXESchemaDefinition) // mappings mappings
          .build();
       
      Returns:
      A new JXESchemaResolutionMappings builder