Class CollectionProperties
- java.lang.Object
-
- org.odpi.openmetadata.accessservices.communityprofile.properties.ReferenceableProperties
-
- org.odpi.openmetadata.accessservices.communityprofile.properties.CollectionProperties
-
- All Implemented Interfaces:
Serializable
public class CollectionProperties extends ReferenceableProperties
CollectionProperties describes the core properties of a collection.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description CollectionProperties()Default constructorCollectionProperties(CollectionProperties template)Copy/clone constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object objectToCompare)Return comparison result based on the content of the properties.CollectionOrdergetCollectionOrdering()Return the property to use to determine the order that assets are returned.StringgetDescription()Return the description of the collection.StringgetName()Return the name of the collection.StringgetOrderPropertyName()Return the property name for CollectionOrder.OTHER.inthashCode()Return hash code for this objectvoidsetCollectionOrdering(CollectionOrder collectionOrdering)Set up the property to use to determine the order that assets are returned.voidsetDescription(String description)Set up the description of the collection.voidsetName(String name)Set up the name of the collection.voidsetOrderPropertyName(String orderPropertyName)Set up the property name for CollectionOrder.OTHER.StringtoString()JSON-style toString-
Methods inherited from class org.odpi.openmetadata.accessservices.communityprofile.properties.ReferenceableProperties
getAdditionalProperties, getEffectiveFrom, getEffectiveTo, getExtendedProperties, getQualifiedName, getTypeName, getVendorProperties, setAdditionalProperties, setEffectiveFrom, setEffectiveTo, setExtendedProperties, setQualifiedName, setTypeName, setVendorProperties
-
-
-
-
Constructor Detail
-
CollectionProperties
public CollectionProperties()
Default constructor
-
CollectionProperties
public CollectionProperties(CollectionProperties template)
Copy/clone constructor- Parameters:
template- object to copy
-
-
Method Detail
-
getName
public String getName()
Return the name of the collection.- Returns:
- string name
-
setName
public void setName(String name)
Set up the name of the collection.- Parameters:
name- string name
-
getDescription
public String getDescription()
Return the description of the collection.- Returns:
- text
-
setDescription
public void setDescription(String description)
Set up the description of the collection.- Parameters:
description- text
-
getCollectionOrdering
public CollectionOrder getCollectionOrdering()
Return the property to use to determine the order that assets are returned.- Returns:
- CollectionOrder enum
-
setCollectionOrdering
public void setCollectionOrdering(CollectionOrder collectionOrdering)
Set up the property to use to determine the order that assets are returned.- Parameters:
collectionOrdering- CollectionOrder enum
-
getOrderPropertyName
public String getOrderPropertyName()
Return the property name for CollectionOrder.OTHER.- Returns:
- string property name
-
setOrderPropertyName
public void setOrderPropertyName(String orderPropertyName)
Set up the property name for CollectionOrder.OTHER.- Parameters:
orderPropertyName- string property name
-
toString
public String toString()
JSON-style toString- Overrides:
toStringin classReferenceableProperties- Returns:
- return string containing the property names and values
-
equals
public boolean equals(Object objectToCompare)
Return comparison result based on the content of the properties.- Overrides:
equalsin classReferenceableProperties- Parameters:
objectToCompare- test object- Returns:
- result of comparison
-
hashCode
public int hashCode()
Return hash code for this object- Overrides:
hashCodein classReferenceableProperties- Returns:
- int hash code
-
-