public abstract class SchemaElement extends Referenceable
The SchemaElement object provides a base class for the pieces that make up a schema for an asset. A schema provides information about how the data is structured in the asset. Schemas are typically described as nested structures of schema elements. There are two basic types:
Assets are linked to a SchemaType.
| Modifier and Type | Field and Description |
|---|---|
protected String |
anchorGUID |
protected String |
description |
protected String |
displayName |
protected String |
expression |
protected boolean |
isCalculatedValue |
protected boolean |
isDeprecated |
additionalProperties, confidenceGovernanceClassification, confidentialityGovernanceClassification, criticalityGovernanceClassification, latestChange, latestChangeDetails, meanings, qualifiedName, retentionGovernanceClassification, searchKeywords, securityTagsclassifications, extendedProperties, guid, type, urlCURRENT_AUDIT_HEADER_VERSION| Constructor and Description |
|---|
SchemaElement()
Default constructor
|
SchemaElement(SchemaElement template)
Copy/clone Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
abstract SchemaElement |
cloneSchemaElement()
Return a clone of this schema element.
|
boolean |
equals(Object objectToCompare)
Compare the values of the supplied object with those stored in the current object.
|
String |
getAnchorGUID()
Return the unique identifier of the asset that this schema is ultimately connected to.
|
String |
getDescription()
Returns the stored description property for the schema element.
|
String |
getDisplayName()
Return the simple name of the schema element.
|
String |
getExpression()
Return the expression used to calculate the value for the schema attribute.
|
boolean |
getIsDeprecated()
Is the schema element deprecated?
|
int |
hashCode()
Return a number that represents the contents of this object.
|
boolean |
isCalculatedValue()
Return a boolean to indicate if the value for this attribute is stored or calculated.
|
void |
setAnchorGUID(String anchorGUID)
Set up the unique identifier of the asset that this schema is ultimately connected to.
|
void |
setCalculatedValue(boolean calculatedValue)
Set up a boolean to indicate if the value for this attribute is stored or calculated.
|
void |
setDescription(String description)
Set up the stored description property for the schema element.
|
void |
setDisplayName(String name)
Set up the simple name of the schema element.
|
void |
setExpression(String expression)
Set up the expression used to calculate the value for the schema attribute.
|
void |
setIsDeprecated(boolean deprecated)
Set whether the schema element deprecated or not.
|
String |
toString()
Standard toString method.
|
getAdditionalProperties, getConfidenceGovernanceClassification, getConfidentialityGovernanceClassification, getCriticalityGovernanceClassification, getLatestChange, getLatestChangeDetails, getMeanings, getQualifiedName, getRetentionGovernanceClassification, getSearchKeywords, getSecurityTags, setAdditionalProperties, setConfidenceGovernanceClassification, setConfidentialityGovernanceClassification, setCriticalityGovernanceClassification, setLatestChange, setLatestChangeDetails, setMeanings, setQualifiedName, setRetentionGovernanceClassification, setSearchKeywords, setSecurityTagsgetClassifications, getExtendedProperties, getGUID, getType, getURL, setClassifications, setExtendedProperties, setGUID, setType, setURLgetHeaderVersion, setHeaderVersionprotected boolean isDeprecated
protected String displayName
protected String description
protected String anchorGUID
protected boolean isCalculatedValue
protected String expression
public SchemaElement()
public SchemaElement(SchemaElement template)
template - template object to copy.public boolean getIsDeprecated()
public void setIsDeprecated(boolean deprecated)
deprecated - boolean flagpublic String getDisplayName()
public void setDisplayName(String name)
name - String display namepublic String getDescription()
public void setDescription(String description)
description - string descriptionpublic String getAnchorGUID()
public void setAnchorGUID(String anchorGUID)
anchorGUID - string guidpublic boolean isCalculatedValue()
public void setCalculatedValue(boolean calculatedValue)
calculatedValue - boolean true for calculated value; false for stored valuepublic String getExpression()
public void setExpression(String expression)
expression - string expression (any language)public abstract SchemaElement cloneSchemaElement()
public String toString()
toString in class Referenceablepublic boolean equals(Object objectToCompare)
equals in class ReferenceableobjectToCompare - supplied objectpublic int hashCode()
hashCode in class ReferenceableCopyright © 2018–2021 LF AI & Data Foundation. All rights reserved.