All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.jsimpledb.schema.SchemaField Maven / Gradle / Ivy

Go to download

JSimpleDB core API classes which provide objects, fields, indexes, queries, and schema management on top of a key/value store.

There is a newer version: 3.6.1
Show newest version

/*
 * Copyright (C) 2015 Archie L. Cobbs. All rights reserved.
 */

package org.jsimpledb.schema;

/**
 * A field in a {@link SchemaObjectType}.
 */
public abstract class SchemaField extends AbstractSchemaItem {

    /**
     * Apply visitor pattern.
     *
     * @param target target to invoke
     * @param  visitor return type
     * @return value from the method of {@code target} corresponding to this instance's type
     * @throws NullPointerException if {@code target} is null
     */
    public abstract  R visit(SchemaFieldSwitch target);

// Object

    @Override
    public String toString() {
        return "field " + super.toString();
    }

// Cloneable

    @Override
    public SchemaField clone() {
        return (SchemaField)super.clone();
    }
}





© 2015 - 2025 Weber Informatics LLC | Privacy Policy