Record Class Metamodel
java.lang.Object
java.lang.Record
tools.refinery.store.reasoning.translator.metamodel.Metamodel
public record Metamodel(TypeHierarchy typeHierarchy, Map<PartialRelation,ContainmentInfo> containmentHierarchy, Map<PartialRelation,DirectedCrossReferenceInfo> directedCrossReferences, Map<PartialRelation,UndirectedCrossReferenceInfo> undirectedCrossReferences, Map<PartialRelation,PartialRelation> oppositeReferences, Map<AnyPartialFunction,AttributeInfo> attributes)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionMetamodel(TypeHierarchy typeHierarchy, Map<PartialRelation, ContainmentInfo> containmentHierarchy, Map<PartialRelation, DirectedCrossReferenceInfo> directedCrossReferences, Map<PartialRelation, UndirectedCrossReferenceInfo> undirectedCrossReferences, Map<PartialRelation, PartialRelation> oppositeReferences, Map<AnyPartialFunction, AttributeInfo> attributes) Creates an instance of aMetamodelrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theattributesrecord component.static MetamodelBuilderbuilder()Returns the value of thecontainmentHierarchyrecord component.Returns the value of thedirectedCrossReferencesrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of theoppositeReferencesrecord component.final StringtoString()Returns a string representation of this record class.Returns the value of thetypeHierarchyrecord component.Returns the value of theundirectedCrossReferencesrecord component.
-
Constructor Details
-
Metamodel
public Metamodel(TypeHierarchy typeHierarchy, Map<PartialRelation, ContainmentInfo> containmentHierarchy, Map<PartialRelation, DirectedCrossReferenceInfo> directedCrossReferences, Map<PartialRelation, UndirectedCrossReferenceInfo> undirectedCrossReferences, Map<PartialRelation, PartialRelation> oppositeReferences, Map<AnyPartialFunction, AttributeInfo> attributes) Creates an instance of aMetamodelrecord class.- Parameters:
typeHierarchy- the value for thetypeHierarchyrecord componentcontainmentHierarchy- the value for thecontainmentHierarchyrecord componentdirectedCrossReferences- the value for thedirectedCrossReferencesrecord componentundirectedCrossReferences- the value for theundirectedCrossReferencesrecord componentoppositeReferences- the value for theoppositeReferencesrecord componentattributes- the value for theattributesrecord component
-
-
Method Details
-
builder
-
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. All components in this record class are compared withObjects::equals(Object,Object). -
typeHierarchy
Returns the value of thetypeHierarchyrecord component.- Returns:
- the value of the
typeHierarchyrecord component
-
containmentHierarchy
Returns the value of thecontainmentHierarchyrecord component.- Returns:
- the value of the
containmentHierarchyrecord component
-
directedCrossReferences
Returns the value of thedirectedCrossReferencesrecord component.- Returns:
- the value of the
directedCrossReferencesrecord component
-
undirectedCrossReferences
Returns the value of theundirectedCrossReferencesrecord component.- Returns:
- the value of the
undirectedCrossReferencesrecord component
-
oppositeReferences
Returns the value of theoppositeReferencesrecord component.- Returns:
- the value of the
oppositeReferencesrecord component
-
attributes
Returns the value of theattributesrecord component.- Returns:
- the value of the
attributesrecord component
-