Class Association
java.lang.Object
org.mbari.vars.annosaurus.sdk.r1.models.Association
-
Field Summary
Modifier and TypeFieldDescriptionstatic final Comparator
<Association> static final Function
<Association, Optional<Integer>> Function to convert an association containing an identity reference to a integer.static final Comparator
<Association> Comparator for identity reference associations.static final String
static final String
static final Association
static final String
static final String
-
Constructor Summary
ConstructorDescriptionAssociation
(String linkName, String toConcept, String linkValue) Association
(String linkName, String toConcept, String linkValue, String mimeType) Association
(String linkName, String toConcept, String linkValue, String mimeType, UUID uuid, Instant lastUpdatedTime) Association
(UUID uuid, Association a) -
Method Summary
Modifier and TypeMethodDescriptionstatic Association
Create a standard text only Association from a generic details objectgetUuid()
static Optional
<Association> void
toString()
-
Field Details
-
VALUE_NIL
- See Also:
-
VALUE_SELF
- See Also:
-
NIL
-
NAME_LOCALIZATION
- See Also:
-
MIME_TYPE_DEFAULT
- See Also:
-
ASSOCATION_TO_IDENTITY_REF_NUM
Function to convert an association containing an identity reference to a integer. Note that this handles cases where the identity ref isn't an integer as sometimes happens. -
IDENTITY_REF_NUM_COMPARATOR
Comparator for identity reference associations. Typically the linkvalue is an integer, but we have to handle the cases where it's not an int. -
ALPHABETICAL_COMPARATOR
-
-
Constructor Details
-
Association
-
Association
-
Association
-
Association
-
Association
-
Association
-
-
Method Details
-
fromDetails
Create a standard text only Association from a generic details object- Parameters:
d
-- Returns:
-
resetUuid
public void resetUuid() -
getUuid
-
getLinkName
- Specified by:
getLinkName
in interfaceDetails
-
getToConcept
- Specified by:
getToConcept
in interfaceDetails
-
getLinkValue
- Specified by:
getLinkValue
in interfaceDetails
-
getMimeType
-
getLastUpdatedTime
-
toString
-
parse
-