Class SchemaAttribute
- java.lang.Object
-
- org.odpi.openmetadata.accessservices.analyticsmodeling.synchronization.beans.Referenceable
-
- org.odpi.openmetadata.accessservices.analyticsmodeling.synchronization.beans.SchemaElement
-
- org.odpi.openmetadata.accessservices.analyticsmodeling.synchronization.beans.SchemaAttribute
-
- Direct Known Subclasses:
AnalyticsMetadata
public class SchemaAttribute extends SchemaElement
SchemaAttribute describes a single attribute within a schema. The attribute has a name, order within the parent schema element.
-
-
Field Summary
Fields Modifier and Type Field Description protected intelementPositionprotected StringnativeJavaClass-
Fields inherited from class org.odpi.openmetadata.accessservices.analyticsmodeling.synchronization.beans.SchemaElement
description, displayName
-
Fields inherited from class org.odpi.openmetadata.accessservices.analyticsmodeling.synchronization.beans.Referenceable
additionalProperties, guid, qualifiedName
-
-
Constructor Summary
Constructors Constructor Description SchemaAttribute()Default constructorSchemaAttribute(SchemaAttribute template)Copy/clone constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SchemaElementcloneSchemaElement()Return a clone of this schema element.booleanequals(Object objectToCompare)Compare the values of the supplied object with those stored in the current object.intgetElementPosition()Return the position of this schema attribute in its parent schema.StringgetNativeJavaClass()inthashCode()Return a number that represents the contents of this object.voidsetElementPosition(int elementPosition)Set up the position of this schema attribute in its parent schema.voidsetNativeJavaClass(String nativeJavaClass)StringtoString()Standard toString method.-
Methods inherited from class org.odpi.openmetadata.accessservices.analyticsmodeling.synchronization.beans.SchemaElement
getDescription, getDisplayName, setDescription, setDisplayName
-
Methods inherited from class org.odpi.openmetadata.accessservices.analyticsmodeling.synchronization.beans.Referenceable
getAdditionalProperties, getGuid, getQualifiedName, setAdditionalProperties, setGuid, setQualifiedName
-
-
-
-
Field Detail
-
elementPosition
protected int elementPosition
-
nativeJavaClass
protected String nativeJavaClass
-
-
Constructor Detail
-
SchemaAttribute
public SchemaAttribute()
Default constructor
-
SchemaAttribute
public SchemaAttribute(SchemaAttribute template)
Copy/clone constructor.- Parameters:
template- template schema attribute to copy.
-
-
Method Detail
-
cloneSchemaElement
public SchemaElement cloneSchemaElement()
Return a clone of this schema element. This method is needed because schema element is abstract.- Specified by:
cloneSchemaElementin classSchemaElement- Returns:
- Clone of subclass.
-
getElementPosition
public int getElementPosition()
Return the position of this schema attribute in its parent schema.- Returns:
- int position in schema - 0 means first
-
setElementPosition
public void setElementPosition(int elementPosition)
Set up the position of this schema attribute in its parent schema.- Parameters:
elementPosition- int position in schema - 0 means first
-
getNativeJavaClass
public String getNativeJavaClass()
- Returns:
- the nativeJavaClass
-
setNativeJavaClass
public void setNativeJavaClass(String nativeJavaClass)
- Parameters:
nativeJavaClass- the nativeJavaClass to set
-
toString
public String toString()
Standard toString method.- Overrides:
toStringin classSchemaElement- Returns:
- print out of variables in a JSON-style
-
equals
public boolean equals(Object objectToCompare)
Compare the values of the supplied object with those stored in the current object.- Overrides:
equalsin classSchemaElement- Parameters:
objectToCompare- supplied object- Returns:
- boolean result of comparison
-
hashCode
public int hashCode()
Return a number that represents the contents of this object.- Overrides:
hashCodein classSchemaElement- Returns:
- int
-
-