Package com.io7m.jxe.core
Class JXESchemaResolutionMappings
- java.lang.Object
-
- com.io7m.jxe.core.JXESchemaResolutionMappings
-
- All Implemented Interfaces:
JXESchemaResolutionMappingsType
public final class JXESchemaResolutionMappings extends java.lang.Object implements JXESchemaResolutionMappingsType
A set of mappings from namespace URIs to schemas.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classJXESchemaResolutionMappings.BuilderBuilds instances of typeJXESchemaResolutionMappings.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static JXESchemaResolutionMappings.Builderbuilder()Creates a builder forJXESchemaResolutionMappings.static JXESchemaResolutionMappingscopyOf(JXESchemaResolutionMappingsType instance)Creates an immutable copy of aJXESchemaResolutionMappingsTypevalue.booleanequals(java.lang.Object another)This instance is equal to all instances ofJXESchemaResolutionMappingsthat have equal attribute values.inthashCode()Computes a hash code from attributes:mappings.java.util.Map<java.net.URI,JXESchemaDefinition>mappings()java.lang.StringtoString()Prints the immutable valueJXESchemaResolutionMappingswith attribute values.JXESchemaResolutionMappingswithMappings(java.util.Map<? extends java.net.URI,? extends JXESchemaDefinition> entries)Copy the current immutable object by replacing themappingsmap with the specified map.
-
-
-
Method Detail
-
mappings
public java.util.Map<java.net.URI,JXESchemaDefinition> mappings()
- Specified by:
mappingsin interfaceJXESchemaResolutionMappingsType- Returns:
- The set of mappings from namespace URIs to schemas
-
withMappings
public final JXESchemaResolutionMappings withMappings(java.util.Map<? extends java.net.URI,? extends JXESchemaDefinition> entries)
Copy the current immutable object by replacing themappingsmap 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 returningthis.- Parameters:
entries- The entries to be added to the mappings map- Returns:
- A modified copy of
thisobject
-
equals
public boolean equals(java.lang.Object another)
This instance is equal to all instances ofJXESchemaResolutionMappingsthat have equal attribute values.- Overrides:
equalsin classjava.lang.Object- Returns:
trueifthisis equal toanotherinstance
-
hashCode
public int hashCode()
Computes a hash code from attributes:mappings.- Overrides:
hashCodein classjava.lang.Object- Returns:
- hashCode value
-
toString
public java.lang.String toString()
Prints the immutable valueJXESchemaResolutionMappingswith attribute values.- Overrides:
toStringin classjava.lang.Object- Returns:
- A string representation of the value
-
copyOf
public static JXESchemaResolutionMappings copyOf(JXESchemaResolutionMappingsType instance)
Creates an immutable copy of aJXESchemaResolutionMappingsTypevalue. 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 forJXESchemaResolutionMappings.- Returns:
- A new JXESchemaResolutionMappings builder
-
-