Package io.keikai.axyra.sheets.content
Record Class XmlMap
java.lang.Object
java.lang.Record
io.keikai.axyra.sheets.content.XmlMap
public record XmlMap(int id, String name, String rootElement, String schemaId, String schema, List<XmlMapBinding> bindings)
extends Record
An XML map definition (read-only) from a workbook's
xl/xmlMaps.xml:
the map's id, name, the XML root element it is anchored on, the referenced
schema id, the XSD schema text, and the cell bindings (which table
columns bind to which XPath).
XML maps bind worksheet cells to an XML schema for XML import/export. The definitions are preserved byte-exact on save.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbindings()Returns the value of thebindingsrecord component.final booleanIndicates whether some other object is "equal to" this one.static XmlMapBuilds anXmlMapfrom a decoded JSON object.final inthashCode()Returns a hash code value for this object.intid()Returns the value of theidrecord component.name()Returns the value of thenamerecord component.Returns the value of therootElementrecord component.schema()Returns the value of theschemarecord component.schemaId()Returns the value of theschemaIdrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
XmlMap
public XmlMap(int id, String name, String rootElement, String schemaId, String schema, List<XmlMapBinding> bindings) Creates an instance of aXmlMaprecord class.- Parameters:
id- the value for theidrecord componentname- the value for thenamerecord componentrootElement- the value for therootElementrecord componentschemaId- the value for theschemaIdrecord componentschema- the value for theschemarecord componentbindings- the value for thebindingsrecord component
-
-
Method Details
-
fromMap
Builds anXmlMapfrom a decoded JSON object. -
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
id
public int id()Returns the value of theidrecord component.- Returns:
- the value of the
idrecord component
-
name
Returns the value of thenamerecord component.- Returns:
- the value of the
namerecord component
-
rootElement
Returns the value of therootElementrecord component.- Returns:
- the value of the
rootElementrecord component
-
schemaId
Returns the value of theschemaIdrecord component.- Returns:
- the value of the
schemaIdrecord component
-
schema
Returns the value of theschemarecord component.- Returns:
- the value of the
schemarecord component
-
bindings
Returns the value of thebindingsrecord component.- Returns:
- the value of the
bindingsrecord component
-