public class SimpleSchemaField extends SchemaField implements DiffGenerating<SimpleSchemaField>
SchemaObjectType
.Constructor and Description |
---|
SimpleSchemaField() |
Modifier and Type | Method and Description |
---|---|
SimpleSchemaField |
clone()
Deep-clone this instance.
|
Diffs |
differencesFrom(SimpleSchemaField that)
Detect the differences of this instance when compared to the given instance.
|
boolean |
equals(Object obj) |
long |
getEncodingSignature()
Get the encoding signature associated with this field's type.
|
String |
getType()
Get the name of this field's type.
|
int |
hashCode() |
boolean |
isIndexed()
Get whether this field is indexed or not.
|
boolean |
isLockedDown()
Determine whether this instance is locked down.
|
void |
lockDown()
Lock down this instance.
|
void |
setEncodingSignature(long encodingSignature) |
void |
setIndexed(boolean indexed) |
void |
setType(String type) |
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 String getType()
"int"
for primitive integer type,
"java.util.Date"
for the built-in Date
type, any custom type name, etc.public void setType(String type)
public boolean isIndexed()
public void setIndexed(boolean indexed)
public long getEncodingSignature()
FieldType
public void setEncodingSignature(long encodingSignature)
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(SimpleSchemaField that)
DiffGenerating
differencesFrom
in interface DiffGenerating<SimpleSchemaField>
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 SimpleSchemaField clone()
The returned instance will not be locked down.
clone
in class SchemaField
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.