Class AnchorSearchMatches
java.lang.Object
org.odpi.openmetadata.frameworks.openmetadata.metadataelements.ElementControlHeader
org.odpi.openmetadata.frameworks.openmetadata.properties.OpenMetadataElement
org.odpi.openmetadata.frameworks.openmetadata.properties.AnchorSearchMatches
Captures the anchor open metadata element and corresponding matches retrieved during an
Anchors-based search request such as searching within an anchor context - anchor, domain, scope
-
Field Summary
Fields inherited from class org.odpi.openmetadata.frameworks.openmetadata.metadataelements.ElementControlHeader
CURRENT_AUDIT_HEADER_VERSION -
Constructor Summary
ConstructorsConstructorDescriptionTypical ConstructorAnchorSearchMatches(AnchorSearchMatches template) Copy/clone Constructor the resulting object will return true if tested with this.equals(template) as long as the template object is not null;AnchorSearchMatches(OpenMetadataElement template) Copy/clone Constructor the resulting object will return true if tested with this.equals(template) as long as the template object is not null; -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturn comparison result based on the content of the properties.Return the list of anchored elements that match the search criteria.inthashCode()Return hash code for this objectvoidsetMatchingElements(List<OpenMetadataElement> matchingElements) Set up the list of anchored elements that match the search criteria.toString()JSON-style toStringMethods inherited from class org.odpi.openmetadata.frameworks.openmetadata.properties.OpenMetadataElement
getClassifications, getEffectiveFromTime, getEffectiveToTime, getElementGUID, getElementProperties, setClassifications, setEffectiveFromTime, setEffectiveToTime, setElementGUID, setElementPropertiesMethods inherited from class org.odpi.openmetadata.frameworks.openmetadata.metadataelements.ElementControlHeader
getHeaderVersion, getOrigin, getStatus, getType, getVersions, setHeaderVersion, setOrigin, setStatus, setType, setVersions
-
Constructor Details
-
AnchorSearchMatches
public AnchorSearchMatches()Typical Constructor -
AnchorSearchMatches
Copy/clone Constructor the resulting object will return true if tested with this.equals(template) as long as the template object is not null;- Parameters:
template- object being copied
-
AnchorSearchMatches
Copy/clone Constructor the resulting object will return true if tested with this.equals(template) as long as the template object is not null;- Parameters:
template- object being copied
-
-
Method Details
-
getMatchingElements
Return the list of anchored elements that match the search criteria.- Returns:
- list
-
setMatchingElements
Set up the list of anchored elements that match the search criteria.- Parameters:
matchingElements- list
-
toString
JSON-style toString- Overrides:
toStringin classOpenMetadataElement- Returns:
- return string containing the property names and values
-
equals
Return comparison result based on the content of the properties.- Overrides:
equalsin classOpenMetadataElement- Parameters:
objectToCompare- test object- Returns:
- result of comparison
-
hashCode
public int hashCode()Return hash code for this object- Overrides:
hashCodein classOpenMetadataElement- Returns:
- int hash code
-