Record Class DefinedBy
java.lang.Object
java.lang.Record
fr.becpg.repo.entity.remote.extractor.DefinedBy
- Record Components:
kind-KIND_TYPEorKIND_ASPECTname- the prefixed name of the declaring class, e.g.bcpg:productGeoOriginAspect
The model class that declares a field of the remote JSON schema: a type or an aspect, with its
prefixed name.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final Stringprivate static final Stringprivate final StringThe field for thekindrecord component.static final StringKind of a field declared by an aspect.static final StringKind of a field declared by a type.private final StringThe field for thenamerecord component. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.kind()Returns the value of thekindrecord component.name()Returns the value of thenamerecord component.static DefinedByof(org.alfresco.service.cmr.dictionary.ClassDefinition declaringClass, org.alfresco.service.namespace.NamespacePrefixResolver prefixResolver) Describes the class that declares a field.org.json.JSONObjecttoJson()Converts the description to its JSON schema form.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
Constructor Details
-
Method Details
-
of
public static DefinedBy of(org.alfresco.service.cmr.dictionary.ClassDefinition declaringClass, org.alfresco.service.namespace.NamespacePrefixResolver prefixResolver) Describes the class that declares a field.- Parameters:
declaringClass- the container class of a property, or the source class of an associationprefixResolver- the resolver used to prefix the class name- Returns:
- the declaring class description
-
toJson
public org.json.JSONObject toJson()Converts the description to its JSON schema form.- Returns:
- a JSON object holding
kindandname
-
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). -
kind
Returns the value of thekindrecord component.- Returns:
- the value of the
kindrecord component
-
name
Returns the value of thenamerecord component.- Returns:
- the value of the
namerecord component
-