本文整理汇总了Java中com.esri.ges.core.property.PropertyType.Boolean方法的典型用法代码示例。如果您正苦于以下问题:Java PropertyType.Boolean方法的具体用法?Java PropertyType.Boolean怎么用?Java PropertyType.Boolean使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类com.esri.ges.core.property.PropertyType
的用法示例。
在下文中一共展示了PropertyType.Boolean方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: UpdateOnlyProcessorDefinition
import com.esri.ges.core.property.PropertyType; //导入方法依赖的package包/类
public UpdateOnlyProcessorDefinition()
{
try
{
// When defining properties, first create the property definition.
// The first parameter is the internal name of the property and is not exposed to the user.
// The second parameter is the property type, and allows the server to validate property values provided by the user (e.g. "hello" is not a valid integer value).
// The third parameter is the default value, and is shown to the user as a suggested value. This is optional.
// The fourth parameter is the name shown to users when the look at a list of properties for your processor.
// The fifth parameter is the Detailed description, which is shown to users when they hover over the property.
// The sixth parameter specifies if the property is mandatory (must be provided by the user)
// The seventh parameter specifies if the property is read-only, meaning it is shown to the user but cannot be modified.
// Additional parameters can be added to the constructor as a list of allowed values.
PropertyDefinition clearCacheProperty = new PropertyDefinition( CLEAR_CACHE_PROPERTY, PropertyType.Boolean, false, "Clear Cache", "Set this property to clear the cache. For example, if anything has gone wrong in GeoEvent Processing, such that outputs have not been reached their destination(s), then this Processor may prevent those outputs from being re-processed immediately unless the cache is cleared. ", false, false );
// after creating the property definition, put it in the base class's "propertyDefinitions" structure. These definitions will be provided to the
// server when the processor is installed, and provided to client applications on-demand
propertyDefinitions.put( CLEAR_CACHE_PROPERTY, clearCacheProperty );
}
catch (PropertyException e)
{
;
}
}
示例2: BearingProcessorDefinition
import com.esri.ges.core.property.PropertyType; //导入方法依赖的package包/类
public BearingProcessorDefinition() throws PropertyException {
List<LabeledValue> oSrcValues = new ArrayList<LabeledValue>();
oSrcValues.add(new LabeledValue(srcGeoLbl, "geo"));
oSrcValues.add(new LabeledValue(srcCoordLbl, "coord"));
List<LabeledValue> dSrcValues = new ArrayList<LabeledValue>();
dSrcValues.add(new LabeledValue(srcGeoLbl, "geo"));
dSrcValues.add(new LabeledValue(srcCoordLbl, "coord"));
PropertyDefinition pdOriginSource = new PropertyDefinition("osrc", PropertyType.String, srcGeoLbl, lblOSrc, descOSrc, true, false, oSrcValues);
propertyDefinitions.put(pdOriginSource.getPropertyName(), pdOriginSource);
PropertyDefinition pdOGeoFld = new PropertyDefinition("oGeoFld", PropertyType.String, "ORIGIN_GEOMETRY_FIELD", lblOFld, descOFld, false, false);
pdOGeoFld.setDependsOn("osrc=geo");
propertyDefinitions.put(pdOGeoFld.getPropertyName(), pdOGeoFld);
PropertyDefinition pdOXField = new PropertyDefinition("oxFld", PropertyType.String, "ORIGIN_X_FIELD", lblOX, descOX, false, false);
pdOXField.setDependsOn("osrc=coord");
propertyDefinitions.put(pdOXField.getPropertyName(), pdOXField);
PropertyDefinition pdOYField = new PropertyDefinition("oyFld", PropertyType.String, "ORIGIN_Y_FIELD", lblOY, descOY, false, false);
pdOYField.setDependsOn("osrc=coord");
propertyDefinitions.put(pdOYField.getPropertyName(),pdOYField);
PropertyDefinition pdDestinationSource = new PropertyDefinition("dsrc", PropertyType.String, defaultSrc, lblDSrc, "", true, false, dSrcValues);
propertyDefinitions.put(pdDestinationSource.getPropertyName(),pdDestinationSource);
PropertyDefinition pdDGeoFld = new PropertyDefinition("dGeoFld", PropertyType.String, "DESTINATION_GEOMETRY_FIELD", lblDFld, descDFld, false, false);
pdDGeoFld.setDependsOn("dsrc=geo");
propertyDefinitions.put(pdDGeoFld.getPropertyName(),pdDGeoFld);
PropertyDefinition pdDXField = new PropertyDefinition("dxFld", PropertyType.String, "DESTINATION_X_FIELD", lblDX, descDX, false, false);
pdDXField.setDependsOn("dsrc=coord");
propertyDefinitions.put(pdDXField.getPropertyName(),pdDXField);
PropertyDefinition pdDYField = new PropertyDefinition("dyFld", PropertyType.String, "DESTINATION_Y_FIELD", lblDY, descDY, false, false);
pdDYField.setDependsOn("dsrc=coord");
propertyDefinitions.put(pdDYField.getPropertyName(),pdDYField);
PropertyDefinition pdBearingField = new PropertyDefinition("newfld", PropertyType.String, "bearing", lblNewFld, descNewFld, true, false);
propertyDefinitions.put(pdBearingField.getPropertyName(), pdBearingField);
PropertyDefinition pdGenerateGeometry = new PropertyDefinition("generateGeo", PropertyType.Boolean, true, lblGenerateGeo, descGenerateGeo, true, false);
propertyDefinitions.put(pdGenerateGeometry.getPropertyName(), pdGenerateGeometry);
PropertyDefinition pdOutWkid = new PropertyDefinition("wkidout", PropertyType.Integer, 4326, lblWkidOut, descWkidOut, "generateGeo=true", false, false);
propertyDefinitions.put(pdOutWkid.getPropertyName(), pdOutWkid);
PropertyDefinition pdNewGeoDef = new PropertyDefinition("newdef", PropertyType.String, "calculate_bearing", lblEventDefName, descEventDefName, true, false);
propertyDefinitions.put(pdNewGeoDef.getPropertyName(), pdNewGeoDef);
}