Package io.github.qishr.cascara.schema.structure
Class ScalarSchemaNode
java.lang.Object
io.github.qishr.cascara.schema.structure.AbstractSchemaNode
io.github.qishr.cascara.schema.structure.ScalarSchemaNode
public class ScalarSchemaNode
extends AbstractSchemaNode
Constructor Summary
| Constructor | Description |
|---|---|
| ScalarSchemaNode(PrimitiveType type, SchemaNode metaSchema) |
Method Summary
| Modifier and Type | Method | Description |
|---|---|---|
| public Map<String, SchemaNode> | getProperties() | |
| public SchemaNode | getItemSchema() | |
| public boolean | isPrimaryKey() | |
| public void | setPrimaryKey(boolean primaryKey) |
Methods inherited from AbstractSchemaNode
setType, getDescription, getDescriptionKey, getOriginAst, getRef, getEndColumn, isRef, getPropertySchema, getRules, validate, setRef, getExtensions, setOriginUri, getFormat, setDynamicAnchor, getEndLine, getComments, getDefinition, getMetaSchema, setFormatOption, setDescription, getChildren, setOriginAst, setReadOnly, getDefinitions, getTitle, getExtension, getFormatOption, setExtension, addAllOf, addDefinition, getStartLine, getAllOf, getOriginUri, setDefaultValue, getType, isReadOnly, getContentMediaType, getStartColumn, getDynamicAnchor, addRule, setDescriptionKey, getTitleKey, getProperty, setFormat, setTitle, setTitleKey, getDefaultValue, setContentMediaType
Method Details
getProperties
public Map<String, SchemaNode> getProperties()
Overrides:
getItemSchema
public SchemaNode getItemSchema()
isPrimaryKey
public boolean isPrimaryKey()
setPrimaryKey
public void setPrimaryKey(boolean primaryKey)