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

dev.ikm.tinkar.composer.template.TinkarBaseModel Maven / Gradle / Ivy

/*
 * Copyright © 2024 Integrated Knowledge Management ([email protected])
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package dev.ikm.tinkar.composer.template;

import dev.ikm.tinkar.composer.SemanticTemplate;
import dev.ikm.tinkar.terms.EntityProxy.Pattern;
import dev.ikm.tinkar.terms.EntityProxy.Semantic;
import dev.ikm.tinkar.terms.TinkarTerm;
import org.eclipse.collections.api.factory.Lists;
import org.eclipse.collections.api.list.ImmutableList;

public class TinkarBaseModel extends SemanticTemplate {

    @Override
    public TinkarBaseModel semantic(Semantic semantic) {
        this.setSemantic(semantic);
        return this;
    }

    @Override
    protected Pattern assignPattern() {
        return TinkarTerm.TINKAR_BASE_MODEL_COMPONENT_PATTERN;
    }

    @Override
    protected ImmutableList assignFieldValues() {
        return Lists.immutable.empty();
    }

    @Override
    protected void validate() {
        // Nothing to validate
    }
}