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

io.xream.x7.common.bean.X Maven / Gradle / Ivy

There is a newer version: 2.3.13.RELEASE
Show newest version
/*
 * Licensed to the Apache Software Foundation (ASF) under one or more
 * contributor license agreements.  See the NOTICE file distributed with
 * this work for additional information regarding copyright ownership.
 * The ASF licenses this file to You 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 io.xream.x7.common.bean;


import java.util.List;

public class X {

    private ConjunctionAndOtherScript conjunction;
    private PredicateAndOtherScript predicate;
    private String key;
    private Object value;
    private List subList;
    private X parent;
    private transient String script;
    public X(){}
    public X(boolean isOr){
        if (isOr)
            conjunction = ConjunctionAndOtherScript.OR;
        else
            conjunction = ConjunctionAndOtherScript.AND;
    }
    public ConjunctionAndOtherScript getConjunction() {
        return conjunction;
    }
    public void setConjunction(ConjunctionAndOtherScript conjunction) {
        this.conjunction = conjunction;
    }
    public PredicateAndOtherScript getPredicate() {
        return predicate;
    }
    public void setPredicate(PredicateAndOtherScript predicate) {
        this.predicate = predicate;
    }
    public String getKey() {
        return key;
    }
    public void setKey(String key) {
        this.key = key;
    }
    public Object getValue() {
        return value;
    }
    public void setValue(Object value) {
        this.value = value;
    }
    public List getSubList() {
        return subList;
    }
    public void setSubList(List subList) {
        this.subList = subList;
    }
    public X getParent() {
        return parent;
    }
    public void setParent(X parent) {
        this.parent = parent;
    }
    public String getScript() {
        return script;
    }
    public void setScript(String script) {
        this.script = script;
    }

    @Override
    public String toString() {
        return "X{" +
                "conjunction=" + conjunction +
                ", predicate=" + predicate +
                ", key=" + key +
                ", value=" + value +
                ", subList=" + subList +
                ", script=" + script +
                '}';
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy