Class AdditionalProperties
- java.lang.Object
-
- org.odpi.openmetadata.frameworks.connectors.properties.AssetPropertyElementBase
-
- org.odpi.openmetadata.frameworks.connectors.properties.AssetPropertyBase
-
- org.odpi.openmetadata.frameworks.connectors.properties.AdditionalProperties
-
- All Implemented Interfaces:
Serializable
public class AdditionalProperties extends AssetPropertyBase
The AdditionalProperties class provides support for arbitrary properties to be added to a properties object. It wraps a java.util.Map map object built around HashMap.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected Map<String,String>additionalProperties-
Fields inherited from class org.odpi.openmetadata.frameworks.connectors.properties.AssetPropertyBase
parentAsset
-
-
Constructor Summary
Constructors Constructor Description AdditionalProperties(Map<String,String> additionalProperties)Constructor for a new set of additional properties that are not connected either directly or indirectly to an asset.AdditionalProperties(AssetDescriptor parentAsset, Map<String,String> additionalProperties)Constructor for a new set of additional properties that are connected either directly or indirectly to an asset.AdditionalProperties(AssetDescriptor parentAsset, AdditionalProperties templateProperties)Copy/clone Constructor for additional properties that are connected to an asset.
-
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.StringgetProperty(String name)Returns the requested additional stored property for the element.Iterator<String>getPropertyNames()Returns a list of the additional stored properties for the element.inthashCode()Hash of propertiesStringtoString()Standard toString method.-
Methods inherited from class org.odpi.openmetadata.frameworks.connectors.properties.AssetPropertyBase
getParentAsset, getParentAssetName, getParentAssetTypeName
-
-
-
-
Constructor Detail
-
AdditionalProperties
public AdditionalProperties(Map<String,String> additionalProperties)
Constructor for a new set of additional properties that are not connected either directly or indirectly to an asset.- Parameters:
additionalProperties- map of properties for the metadata element.
-
AdditionalProperties
public AdditionalProperties(AssetDescriptor parentAsset, Map<String,String> additionalProperties)
Constructor for a new set of additional properties that are connected either directly or indirectly to an asset.- Parameters:
parentAsset- description of the asset that these additional properties are attached to.additionalProperties- map of properties for the metadata element.
-
AdditionalProperties
public AdditionalProperties(AssetDescriptor parentAsset, AdditionalProperties templateProperties)
Copy/clone Constructor for additional properties that are connected to an asset.- Parameters:
parentAsset- description of the asset that these additional properties are attached to.templateProperties- template object to copy.
-
-
Method Detail
-
getPropertyNames
public Iterator<String> getPropertyNames()
Returns a list of the additional stored properties for the element. If no stored properties are present then null is returned.- Returns:
- list of additional properties
-
getProperty
public String getProperty(String name)
Returns the requested additional stored property for the element. If no stored property with that name is present then null is returned.- Parameters:
name- String name of the property to return.- Returns:
- requested property value.
-
toString
public String toString()
Standard toString method.
-
equals
public boolean equals(Object objectToCompare)
Compare the values of the supplied object with those stored in the current object.- Overrides:
equalsin classAssetPropertyBase- Parameters:
objectToCompare- supplied object- Returns:
- boolean result of comparison
-
hashCode
public int hashCode()
Hash of properties- Overrides:
hashCodein classAssetPropertyBase- Returns:
- int
-
-