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 int
elementPosition
protected java.lang.String
nativeJavaClass
-
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 SchemaElement
cloneSchemaElement()
Return a clone of this schema element.boolean
equals(java.lang.Object objectToCompare)
Compare the values of the supplied object with those stored in the current object.int
getElementPosition()
Return the position of this schema attribute in its parent schema.java.lang.String
getNativeJavaClass()
int
hashCode()
Return a number that represents the contents of this object.void
setElementPosition(int elementPosition)
Set up the position of this schema attribute in its parent schema.void
setNativeJavaClass(java.lang.String nativeJavaClass)
java.lang.String
toString()
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
-
-
-
-
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:
cloneSchemaElement
in 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 java.lang.String getNativeJavaClass()
- Returns:
- the nativeJavaClass
-
setNativeJavaClass
public void setNativeJavaClass(java.lang.String nativeJavaClass)
- Parameters:
nativeJavaClass
- the nativeJavaClass to set
-
toString
public java.lang.String toString()
Standard toString method.- Overrides:
toString
in classSchemaElement
- Returns:
- print out of variables in a JSON-style
-
equals
public boolean equals(java.lang.Object objectToCompare)
Compare the values of the supplied object with those stored in the current object.- Overrides:
equals
in 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:
hashCode
in classSchemaElement
- Returns:
- int
-
-