當前位置: 首頁>>代碼示例>>Java>>正文


Java MathExpressionImpl類代碼示例

本文整理匯總了Java中org.geotools.filter.MathExpressionImpl的典型用法代碼示例。如果您正苦於以下問題:Java MathExpressionImpl類的具體用法?Java MathExpressionImpl怎麽用?Java MathExpressionImpl使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。


MathExpressionImpl類屬於org.geotools.filter包,在下文中一共展示了MathExpressionImpl類的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。

示例1: setValue

import org.geotools.filter.MathExpressionImpl; //導入依賴的package包/類
@Override
public void setValue(Object aValue) {
    this.value = null;
    this.expression = null;

    if (aValue instanceof LiteralExpressionImpl) {
        value = ((Expression) aValue).toString();
    } else if ((aValue instanceof AttributeExpressionImpl)
            || (aValue instanceof FunctionExpressionImpl)
            || (aValue instanceof MathExpressionImpl)) {
        this.expression = (Expression) aValue;
    } else {
        if (aValue instanceof String) {
            value = ((String) aValue);
        }
    }
}
 
開發者ID:robward-scisys,項目名稱:sldeditor,代碼行數:18,代碼來源:EnumValues.java

示例2: setValue

import org.geotools.filter.MathExpressionImpl; //導入依賴的package包/類
@Override
public void setValue(Object aValue) {
    this.value = null;
    this.expression = null;

    if (aValue instanceof Integer) {
        this.value = (Integer) aValue;
    } else if (aValue instanceof LiteralExpressionImpl) {
        LiteralExpressionImpl literal = (LiteralExpressionImpl) aValue;
        value = literal.evaluate(value, Integer.class);
    } else if ((aValue instanceof AttributeExpressionImpl)
            || (aValue instanceof FunctionExpressionImpl)
            || (aValue instanceof MathExpressionImpl)) {
        this.expression = (Expression) aValue;
    }
}
 
開發者ID:robward-scisys,項目名稱:sldeditor,代碼行數:17,代碼來源:IntegerValues.java

示例3: setValue

import org.geotools.filter.MathExpressionImpl; //導入依賴的package包/類
@Override
public void setValue(Object aValue) {
    this.value = null;
    this.expression = null;

    if (aValue instanceof LiteralExpressionImpl) {
        LiteralExpressionImpl literal = (LiteralExpressionImpl) aValue;
        if (literal.getValue() != null) {
            value = literal.toString();
        }
    } else if ((aValue instanceof AttributeExpressionImpl)
            || (aValue instanceof FunctionExpressionImpl)
            || (aValue instanceof MathExpressionImpl)) {
        this.expression = (Expression) aValue;
    } else {
        if (aValue instanceof String) {
            value = ((String) aValue);
        }
    }
}
 
開發者ID:robward-scisys,項目名稱:sldeditor,代碼行數:21,代碼來源:CoordinateReferenceSystemValues.java

示例4: setValue

import org.geotools.filter.MathExpressionImpl; //導入依賴的package包/類
@Override
public void setValue(Object aValue) {
    this.value = null;
    this.expression = null;

    if (aValue instanceof Double) {
        this.value = (Double) aValue;
    } else if (aValue instanceof LiteralExpressionImpl) {
        LiteralExpressionImpl literal = (LiteralExpressionImpl) aValue;
        value = literal.evaluate(value, Double.class);
    } else if ((aValue instanceof AttributeExpressionImpl)
            || (aValue instanceof FunctionExpressionImpl)
            || (aValue instanceof MathExpressionImpl)) {
        this.expression = (Expression) aValue;
    }
}
 
開發者ID:robward-scisys,項目名稱:sldeditor,代碼行數:17,代碼來源:DoubleValues.java

示例5: setValue

import org.geotools.filter.MathExpressionImpl; //導入依賴的package包/類
@Override
public void setValue(Object aValue) {
    this.value = null;
    this.expression = null;

    if (aValue instanceof String) {
        this.value = (String) aValue;
    } else if (aValue instanceof LiteralExpressionImpl) {
        LiteralExpressionImpl literal = (LiteralExpressionImpl) aValue;
        value = literal.evaluate(value, String.class);
    } else if ((aValue instanceof AttributeExpressionImpl)
            || (aValue instanceof FunctionExpressionImpl)
            || (aValue instanceof MathExpressionImpl)) {
        this.expression = (Expression) aValue;
    } else {
        this.value = aValue.toString();
    }
}
 
開發者ID:robward-scisys,項目名稱:sldeditor,代碼行數:19,代碼來源:StringValues.java

示例6: setValue

import org.geotools.filter.MathExpressionImpl; //導入依賴的package包/類
@Override
public void setValue(Object aValue) {
    this.value = null;
    this.expression = null;

    if (aValue instanceof Boolean) {
        this.value = (Boolean) aValue;
    } else if (aValue instanceof LiteralExpressionImpl) {
        LiteralExpressionImpl literal = (LiteralExpressionImpl) aValue;
        value = literal.evaluate(value, Boolean.class);
    } else if ((aValue instanceof AttributeExpressionImpl)
            || (aValue instanceof FunctionExpressionImpl)
            || (aValue instanceof MathExpressionImpl)) {
        this.expression = (Expression) aValue;
    }
}
 
開發者ID:robward-scisys,項目名稱:sldeditor,代碼行數:17,代碼來源:BooleanValues.java

示例7: setValue

import org.geotools.filter.MathExpressionImpl; //導入依賴的package包/類
@Override
public void setValue(Object aValue) {
    this.value = null;
    this.expression = null;

    if (aValue instanceof Number) {
        this.value = (Number) aValue;
    } else if (aValue instanceof LiteralExpressionImpl) {
        LiteralExpressionImpl literal = (LiteralExpressionImpl) aValue;
        value = literal.evaluate(value, Number.class);
    } else if ((aValue instanceof AttributeExpressionImpl)
            || (aValue instanceof FunctionExpressionImpl)
            || (aValue instanceof MathExpressionImpl)) {
        this.expression = (Expression) aValue;
    }
}
 
開發者ID:robward-scisys,項目名稱:sldeditor,代碼行數:17,代碼來源:NumberValues.java

示例8: setValue

import org.geotools.filter.MathExpressionImpl; //導入依賴的package包/類
@Override
public void setValue(Object aValue) {
    this.value = null;
    this.expression = null;

    if (aValue instanceof Float) {
        this.value = (Float) aValue;
    } else if (aValue instanceof Double) {
        this.value = ((Double) aValue).floatValue();
    } else if (aValue instanceof LiteralExpressionImpl) {
        LiteralExpressionImpl literal = (LiteralExpressionImpl) aValue;
        value = literal.evaluate(value, Float.class);
    } else if ((aValue instanceof AttributeExpressionImpl)
            || (aValue instanceof FunctionExpressionImpl)
            || (aValue instanceof MathExpressionImpl)) {
        this.expression = (Expression) aValue;
    }
}
 
開發者ID:robward-scisys,項目名稱:sldeditor,代碼行數:19,代碼來源:FloatValues.java

示例9: setValue

import org.geotools.filter.MathExpressionImpl; //導入依賴的package包/類
@Override
public void setValue(Object aValue) {
    this.value = null;
    this.expression = null;

    if (aValue instanceof Long) {
        this.value = (Long) aValue;
    } else if (aValue instanceof LiteralExpressionImpl) {
        LiteralExpressionImpl literal = (LiteralExpressionImpl) aValue;
        value = literal.evaluate(value, Long.class);
    } else if ((aValue instanceof AttributeExpressionImpl)
            || (aValue instanceof FunctionExpressionImpl)
            || (aValue instanceof MathExpressionImpl)) {
        this.expression = (Expression) aValue;
    }
}
 
開發者ID:robward-scisys,項目名稱:sldeditor,代碼行數:17,代碼來源:LongValues.java

示例10: addExpression

import org.geotools.filter.MathExpressionImpl; //導入依賴的package包/類
/**
 * Adds the expression.
 *
 * @param node the node
 * @return the expression
 */
private Expression addExpression(ExpressionNode node) {
    Expression expression = node.getExpression();

    if (expression instanceof LiteralExpressionImpl) {
        return expression;
    } else if (expression instanceof AttributeExpressionImpl) {
        return expression;
    } else if (expression instanceof FunctionExpressionImpl) {
        FunctionExpressionImpl functionExpression = (FunctionExpressionImpl) expression;

        List<Expression> parameterlist = new ArrayList<Expression>();
        for (int childIndex = 0; childIndex < node.getChildCount(); childIndex++) {
            ExpressionNode childNode = (ExpressionNode) node.getChildAt(childIndex);

            parameterlist.add(addExpression(childNode));
        }

        functionExpression.setParameters(parameterlist);

        return functionExpression;
    } else if (expression instanceof MathExpressionImpl) {
        MathExpressionImpl mathExpression = (MathExpressionImpl) expression;
        ExpressionNode leftChildNode = (ExpressionNode) node.getChildAt(0);
        mathExpression.setExpression1(addExpression(leftChildNode));
        ExpressionNode rightChildNode = (ExpressionNode) node.getChildAt(1);
        mathExpression.setExpression2(addExpression(rightChildNode));

        return mathExpression;
    }
    return null;
}
 
開發者ID:robward-scisys,項目名稱:sldeditor,代碼行數:38,代碼來源:FilterPanelv2.java

示例11: setValue

import org.geotools.filter.MathExpressionImpl; //導入依賴的package包/類
@Override
public void setValue(Object aValue) {
    this.value = null;
    this.expression = null;

    if (aValue instanceof Geometry) {
        this.value = (Geometry) aValue;
    } else if ((aValue instanceof AttributeExpressionImpl)
            || (aValue instanceof LiteralExpressionImpl)
            || (aValue instanceof FunctionExpressionImpl)
            || (aValue instanceof MathExpressionImpl)) {
        this.expression = (Expression) aValue;
    }
}
 
開發者ID:robward-scisys,項目名稱:sldeditor,代碼行數:15,代碼來源:GeometryValues.java

示例12: setValue

import org.geotools.filter.MathExpressionImpl; //導入依賴的package包/類
@Override
public void setValue(Object aValue) {
    this.value = null;
    this.expression = null;

    if (aValue instanceof FeatureCollection) {
        this.value = (FeatureCollection) aValue;
    } else if ((aValue instanceof AttributeExpressionImpl)
            || (aValue instanceof LiteralExpressionImpl)
            || (aValue instanceof FunctionExpressionImpl)
            || (aValue instanceof MathExpressionImpl)) {
        this.expression = (Expression) aValue;
    }
}
 
開發者ID:robward-scisys,項目名稱:sldeditor,代碼行數:15,代碼來源:FeatureCollectionValues.java

示例13: setValue

import org.geotools.filter.MathExpressionImpl; //導入依賴的package包/類
@Override
public void setValue(Object aValue) {
    this.value = null;
    this.expression = null;

    if (aValue instanceof Envelope) {
        this.value = (Envelope) aValue;
    } else if ((aValue instanceof AttributeExpressionImpl)
            || (aValue instanceof FunctionExpressionImpl)
            || (aValue instanceof LiteralExpressionImpl)
            || (aValue instanceof MathExpressionImpl)) {
        this.expression = (Expression) aValue;
    }
}
 
開發者ID:robward-scisys,項目名稱:sldeditor,代碼行數:15,代碼來源:ReferencedEnvelopeValues.java

示例14: setValue

import org.geotools.filter.MathExpressionImpl; //導入依賴的package包/類
@Override
public void setValue(Object aValue) {
    this.value = null;
    this.expression = null;

    if (aValue instanceof Range) {
        this.value = (Range) aValue;
    } else if ((aValue instanceof AttributeExpressionImpl)
            || (aValue instanceof LiteralExpressionImpl)
            || (aValue instanceof FunctionExpressionImpl)
            || (aValue instanceof MathExpressionImpl)) {
        this.expression = (Expression) aValue;
    }
}
 
開發者ID:robward-scisys,項目名稱:sldeditor,代碼行數:15,代碼來源:JAIExtRangeValues.java

示例15: setValue

import org.geotools.filter.MathExpressionImpl; //導入依賴的package包/類
@Override
public void setValue(Object aValue) {
    this.value = null;
    this.expression = null;

    if (aValue instanceof Date) {
        this.value = (Date) aValue;
    } else if ((aValue instanceof AttributeExpressionImpl)
            || (aValue instanceof LiteralExpressionImpl)
            || (aValue instanceof FunctionExpressionImpl)
            || (aValue instanceof MathExpressionImpl)) {
        this.expression = (Expression) aValue;
    }
}
 
開發者ID:robward-scisys,項目名稱:sldeditor,代碼行數:15,代碼來源:DateValues.java


注:本文中的org.geotools.filter.MathExpressionImpl類示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。