public class Schema extends SchemaElement
| Modifier and Type | Field and Description |
|---|---|
protected int |
maximumElements |
protected SchemaType |
schemaType |
author, encodingStandard, schemaProperties, usage, versionNumberadditionalProperties, qualifiedNameclassifications, guid, type, url| Constructor and Description |
|---|
Schema()
Default constructor
|
Schema(Schema templateSchema)
Copy/clone Constructor the parentAsset is passed separately to the template because it is also
likely to be being cloned in the same operation and we want the definitions clone to point to the
asset clone and not the original asset.
|
| Modifier and Type | Method and Description |
|---|---|
SchemaElement |
cloneSchemaElement()
Returns a clone of this object as the abstract SchemaElement class.
|
boolean |
equals(Object objectToCompare)
Compare the values of the supplied object with those stored in the current object.
|
int |
getMaximumElements()
Return the maximum elements that can be stored in this schema.
|
SchemaType |
getSchemaType()
Return the type of the schema.
|
void |
setMaximumElements(int maximumElements)
Set up the maximum elements that can be stored in this schema.
|
void |
setSchemaType(SchemaType schemaType)
Set up the type of schema.
|
String |
toString()
Standard toString method.
|
getAuthor, getEncodingStandard, getSchemaProperties, getUsage, getVersionNumber, setAuthor, setEncodingStandard, setSchemaProperties, setUsage, setVersionNumbergetAdditionalProperties, getQualifiedName, setAdditionalProperties, setQualifiedNamegetClassifications, getGUID, getType, getURL, hashCode, setClassifications, setGUID, setType, setURLprotected SchemaType schemaType
protected int maximumElements
public Schema()
public Schema(Schema templateSchema)
templateSchema - template object to copy.public SchemaType getSchemaType()
public void setSchemaType(SchemaType schemaType)
schemaType - SchemaType enumpublic int getMaximumElements()
public void setMaximumElements(int maximumElements)
maximumElements - int maximum number of elementspublic SchemaElement cloneSchemaElement()
cloneSchemaElement in class SchemaElementpublic String toString()
toString in class SchemaElementpublic boolean equals(Object objectToCompare)
equals in class SchemaElementobjectToCompare - supplied objectCopyright © 2018 ODPi. All rights reserved.