Class ResourceListProperties
- java.lang.Object
-
- org.odpi.openmetadata.accessservices.governanceprogram.properties.RelationshipProperties
-
- org.odpi.openmetadata.accessservices.governanceprogram.properties.ResourceListProperties
-
- All Implemented Interfaces:
Serializable
public class ResourceListProperties extends RelationshipProperties
ResourceListProperties provides a details of why an element providing resources (such as a community) has been attached to an initiative such as a governance domain.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ResourceListProperties()Default constructorResourceListProperties(ResourceListProperties template)Copy/clone constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object objectToCompare)Compare the values of the supplied object with those stored in the current object.StringgetResourceUse()Return the reason why the resource has been attached to the initiative.booleangetWatchResource()Return whether changes to the resource result in notifications to the initiative.inthashCode()Return has code based on properties.voidsetResourceUse(String resourceUse)Set up the reason why the resource has been attached to the initiative.voidsetWatchResource(boolean watchResource)Set up whether changes to the resource result in notifications to the initiative.StringtoString()JSON-style toString-
Methods inherited from class org.odpi.openmetadata.accessservices.governanceprogram.properties.RelationshipProperties
getEffectiveFrom, getEffectiveTo, getExtendedProperties, setEffectiveFrom, setEffectiveTo, setExtendedProperties
-
-
-
-
Constructor Detail
-
ResourceListProperties
public ResourceListProperties()
Default constructor
-
ResourceListProperties
public ResourceListProperties(ResourceListProperties template)
Copy/clone constructor- Parameters:
template- object to copy
-
-
Method Detail
-
getResourceUse
public String getResourceUse()
Return the reason why the resource has been attached to the initiative.- Returns:
- description
-
setResourceUse
public void setResourceUse(String resourceUse)
Set up the reason why the resource has been attached to the initiative.- Parameters:
resourceUse- description
-
getWatchResource
public boolean getWatchResource()
Return whether changes to the resource result in notifications to the initiative.- Returns:
- flag
-
setWatchResource
public void setWatchResource(boolean watchResource)
Set up whether changes to the resource result in notifications to the initiative.- Parameters:
watchResource- flag
-
toString
public String toString()
JSON-style toString- Overrides:
toStringin classRelationshipProperties- Returns:
- return string containing the property names and values
-
equals
public boolean equals(Object objectToCompare)
Compare the values of the supplied object with those stored in the current object.- Overrides:
equalsin classRelationshipProperties- Parameters:
objectToCompare- supplied object- Returns:
- boolean result of comparison
-
hashCode
public int hashCode()
Return has code based on properties.- Overrides:
hashCodein classRelationshipProperties- Returns:
- int
-
-