Package org.ehrbase.util
Record Class StoredQueryQualifiedName
java.lang.Object
java.lang.Record
org.ehrbase.util.StoredQueryQualifiedName
- Record Components:
reverseDomainName- reverse domain name likerg.example.departmentx.test::diabetes-patient-overviewsemanticId- semantic identifier of the queryprodsemVer- semantic version of the query like1.2.3
public record StoredQueryQualifiedName(String reverseDomainName, String semanticId, SemVer semVer)
extends Record
Represents a stored
AQL Query, as described in
openEHR Platform Service Model: 8. Query Service
with format
reverse-domain-name '::' semantic-id [ '/' version ] org.example.departmentx.test::diabetes-patient-overview/1.0.2
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionStoredQueryQualifiedName(String reverseDomainName, String semanticId, SemVer semVer) Creates an instance of aStoredQueryQualifiedNamerecord class. -
Method Summary
Modifier and TypeMethodDescriptionstatic StoredQueryQualifiedNamefinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of thereverseDomainNamerecord component.Returns the value of thesemanticIdrecord component.semVer()Returns the value of thesemVerrecord component.toName()Returns the name part of the qualified query name:Returns the fully qualified query nametoString()
-
Constructor Details
-
StoredQueryQualifiedName
public StoredQueryQualifiedName(@NonNull String reverseDomainName, @NonNull String semanticId, @NonNull SemVer semVer) Creates an instance of aStoredQueryQualifiedNamerecord class.- Parameters:
reverseDomainName- the value for thereverseDomainNamerecord componentsemanticId- the value for thesemanticIdrecord componentsemVer- the value for thesemVerrecord component
-
-
Method Details
-
create
public static StoredQueryQualifiedName create(@NonNull String qualifiedName, @Nullable SemVer version) -
toName
Returns the name part of the qualified query name:reverse-domain-name '::' semantic-id [ '/' version ] org.example.departmentx.test::diabetes-patient-overview/1.0.2
- Returns:
- name part concatenated
reverseDomainName::semanticId
-
toQualifiedNameString
Returns the fully qualified query namereverse-domain-name '::' semantic-id org.example.departmentx.test::diabetes-patient-overview
- Returns:
- qualifiedName part concatenated
reverseDomainName::semanticId/semVer
-
toString
- Specified by:
toStringin classRecord- Returns:
- qualifiedName from
toQualifiedNameString()
-
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). -
reverseDomainName
Returns the value of thereverseDomainNamerecord component.- Returns:
- the value of the
reverseDomainNamerecord component
-
semanticId
Returns the value of thesemanticIdrecord component.- Returns:
- the value of the
semanticIdrecord component
-
semVer
Returns the value of thesemVerrecord component.- Returns:
- the value of the
semVerrecord component
-