
org.jsimpledb.schema.SetSchemaField Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of jsimpledb-coreapi Show documentation
Show all versions of jsimpledb-coreapi Show documentation
JSimpleDB core API classes which provide objects, fields, indexes, queries, and schema management on top of a key/value store.
The newest version!
/*
* Copyright (C) 2015 Archie L. Cobbs. All rights reserved.
*/
package org.jsimpledb.schema;
import javax.xml.namespace.QName;
import org.jsimpledb.util.DiffGenerating;
import org.jsimpledb.util.Diffs;
/**
* A set field in one version of a {@link SchemaObjectType}.
*/
public class SetSchemaField extends CollectionSchemaField implements DiffGenerating {
// SchemaFieldSwitch
@Override
public R visit(SchemaFieldSwitch target) {
return target.caseSetSchemaField(this);
}
// XML Writing
@Override
QName getXMLTag() {
return XMLConstants.SET_FIELD_TAG;
}
// DiffGenerating
@Override
public Diffs differencesFrom(SetSchemaField that) {
return super.differencesFrom(that);
}
// Object
@Override
public String toString() {
return "set " + super.toString();
}
// Cloneable
@Override
public SetSchemaField clone() {
return (SetSchemaField)super.clone();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy