public class MapSchemaField extends ComplexSchemaField implements DiffGenerating<MapSchemaField>
SchemaObjectType
.Constructor and Description |
---|
MapSchemaField() |
Modifier and Type | Method and Description |
---|---|
MapSchemaField |
clone()
Deep-clone this instance.
|
Diffs |
differencesFrom(MapSchemaField that)
Detect the differences of this instance when compared to the given instance.
|
boolean |
equals(Object obj) |
SimpleSchemaField |
getKeyField() |
Map<String,SimpleSchemaField> |
getSubFields() |
SimpleSchemaField |
getValueField() |
int |
hashCode() |
boolean |
isLockedDown()
Determine whether this instance is locked down.
|
void |
lockDown()
Lock down this instance.
|
void |
setKeyField(SimpleSchemaField keyField) |
void |
setValueField(SimpleSchemaField valueField) |
String |
toString() |
<R> R |
visit(SchemaFieldSwitch<R> target)
Apply visitor pattern.
|
differencesFrom, getName, getStorageId, setName, setStorageId
expect, expectClose, getAttr, getAttr, getBooleanAttr, getBooleanAttr, getIntAttr, getIntAttr, getLongAttr, newInvalidAttributeException, next, skip, writeElement
public SimpleSchemaField getKeyField()
public void setKeyField(SimpleSchemaField keyField)
public SimpleSchemaField getValueField()
public void setValueField(SimpleSchemaField valueField)
public Map<String,SimpleSchemaField> getSubFields()
getSubFields
in class ComplexSchemaField
public <R> R visit(SchemaFieldSwitch<R> target)
SchemaField
visit
in class SchemaField
R
- visitor return typetarget
- target to invoketarget
corresponding to this instance's typepublic Diffs differencesFrom(MapSchemaField that)
DiffGenerating
differencesFrom
in interface DiffGenerating<MapSchemaField>
that
- other instancepublic String toString()
toString
in class SchemaField
public boolean equals(Object obj)
equals
in class AbstractSchemaItem
public int hashCode()
hashCode
in class AbstractSchemaItem
public MapSchemaField clone()
The returned instance will not be locked down.
clone
in class ComplexSchemaField
public void lockDown()
Once locked down, any attempts to modify this instance (and all associated objects) will result
in a IllegalStateException
.
public boolean isLockedDown()
Copyright © 2022. All rights reserved.