Java PropertyName.getPropertyName方法代码示例(javapropertyname.getpropertyname.getpropertyname方法的典型用法代码示例)

本文整理汇总了Java中org.opengis.filter.expression.PropertyName.getPropertyName方法的典型用法代码示例。如果您正苦于以下问题:Java PropertyName.getPropertyName方法的具体用法?Java PropertyName.getPropertyName怎么用?Java PropertyName.getPropertyName使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在org.opengis.filter.expression.PropertyName的用法示例。


Java PropertyName.getPropertyName方法代码示例(javapropertyname.getpropertyname.getpropertyname方法的典型用法代码示例)

在下文中一共展示了PropertyName.getPropertyName方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。

示例1: visit

import org.opengis.filter.expression.PropertyName; //导入方法依赖的package包/类
@Override
public Object visit(
		final PropertyName expression,
		final Object data ) {
	final String name = expression.getPropertyName();
	if (validateName(expression.getPropertyName())) {
		// for (final String[] range : validParamRanges) {
		// if (range[0].equals(name) || range[1].equals(name)) {
		// return new ParameterTimeConstraint(
		// range[0] + "_" + range[1]);
		// }
		// }
		return new ParameterTimeConstraint(
				name);
	}
	return new TemporalConstraints();
} 
开发者ID:locationtech,项目名称:geowave,代码行数:18,代码来源:ExtractTimeFilterVisitor.java

示例2: validateSortBy

import org.opengis.filter.expression.PropertyName; //导入方法依赖的package包/类
void validateSortBy(List<SortBy> sortBys, FeatureTypeInfo meta, final GetFeatureRequest3D request)
        throws IOException {
    FeatureType featureType = meta.getFeatureType();
    for (SortBy sortBy : sortBys) {
        PropertyName name = sortBy.getPropertyName();
        if (name.evaluate(featureType) == null) {
            throw new WFSException(request, "Illegal property name: " + name.getPropertyName()
                    + " for feature type " + meta.prefixedName(), "InvalidParameterValue");
        }
    }
} 
开发者ID:STEMLab,项目名称:geoserver-3d-extension,代码行数:12,代码来源:GetFeature3D.java

示例3: visit

import org.opengis.filter.expression.PropertyName; //导入方法依赖的package包/类
/**
 * Writes the FilterBuilder for the attribute Expression.
 * 
 * @param expression the attribute.
 *
 */
@Override
public Object visit(PropertyName expression, Object extraData) {
    LOGGER.finest("exporting PropertyName");

    SimpleFeatureType featureType = this.featureType;

    Class target = null;
    if(extraData instanceof Class) {
        target = (Class) extraData;
    }

    //first evaluate expression against feature type get the attribute, 
    AttributeDescriptor attType = (AttributeDescriptor) expression.evaluate(featureType);

    String encodedField; 
    if ( attType != null ) {
        encodedField = attType.getLocalName();
        if(target != null && target.isAssignableFrom(attType.getType().getBinding())) {
            // no need for casting, it's already the right type
            target = null;
        }
    } else {
        // fall back to just encoding the property name
        encodedField = expression.getPropertyName();
    }

    if (target != null) {
        LOGGER.fine("PropertyName type casting not implemented");
    }
    field = encodedField;

    return extraData;
} 
开发者ID:ngageoint,项目名称:elasticgeo,代码行数:40,代码来源:FilterToElastic.java

示例4: visit

import org.opengis.filter.expression.PropertyName; //导入方法依赖的package包/类
@Override
public Object visit(
		final PropertyName expression,
		final Object data ) {
	return new ByteArrayId(
			expression.getPropertyName());

} 
开发者ID:locationtech,项目名称:geowave,代码行数:9,代码来源:PropertyFilterVisitor.java

本文标签属性:

示例:示例英文

代码:代码编程

java:java模拟器

PropertyName:PropertyName

getPropertyName:getPropertyName

上一篇:毒贩去报案当场被抓(毒贩去报案当场被抓怎么处理)(关于毒贩去报案当场被抓的1点解答)
下一篇:Java InputFile类代码示例(javainputfile类代码示例汇总)

为您推荐