public abstract class SchemaField extends AbstractSchemaItem
SchemaObjectType
.Constructor and Description |
---|
SchemaField() |
Modifier and Type | Method and Description |
---|---|
SchemaField |
clone()
Deep-clone this instance.
|
boolean |
isLockedDown()
Determine whether this instance is locked down.
|
void |
lockDown()
Lock down this instance.
|
String |
toString() |
abstract <R> R |
visit(SchemaFieldSwitch<R> target)
Apply visitor pattern.
|
differencesFrom, equals, getName, getStorageId, hashCode, setName, setStorageId
expect, expectClose, getAttr, getAttr, getBooleanAttr, getBooleanAttr, getIntAttr, getIntAttr, getLongAttr, newInvalidAttributeException, next, skip, writeElement
public abstract <R> R visit(SchemaFieldSwitch<R> target)
R
- visitor return typetarget
- target to invoketarget
corresponding to this instance's typeNullPointerException
- if target
is nullpublic String toString()
toString
in class AbstractSchemaItem
public SchemaField clone()
The returned instance will not be locked down.
clone
in class AbstractSchemaItem
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.