Package guru.interlis.convconf.km
Record Class KmSchema.KmClassInfo
java.lang.Object
java.lang.Record
guru.interlis.convconf.km.KmSchema.KmClassInfo
- Enclosing class:
KmSchema
-
Constructor Summary
ConstructorsConstructorDescriptionKmClassInfo(String name, boolean structure, String superClass, Map<String, KmSchema.KmAttributeInfo> attributes, Set<String> structureAttributes) Creates an instance of aKmClassInforecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theattributesrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.name()Returns the value of thenamerecord component.booleanReturns the value of thestructurerecord component.Returns the value of thestructureAttributesrecord component.Returns the value of thesuperClassrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
KmClassInfo
public KmClassInfo(String name, boolean structure, String superClass, Map<String, KmSchema.KmAttributeInfo> attributes, Set<String> structureAttributes) Creates an instance of aKmClassInforecord class.- Parameters:
name- the value for thenamerecord componentstructure- the value for thestructurerecord componentsuperClass- the value for thesuperClassrecord componentattributes- the value for theattributesrecord componentstructureAttributes- the value for thestructureAttributesrecord component
-
-
Method Details
-
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 '=='. -
name
Returns the value of thenamerecord component.- Returns:
- the value of the
namerecord component
-
structure
public boolean structure()Returns the value of thestructurerecord component.- Returns:
- the value of the
structurerecord component
-
superClass
Returns the value of thesuperClassrecord component.- Returns:
- the value of the
superClassrecord component
-
attributes
Returns the value of theattributesrecord component.- Returns:
- the value of the
attributesrecord component
-
structureAttributes
Returns the value of thestructureAttributesrecord component.- Returns:
- the value of the
structureAttributesrecord component
-