当前位置: 首页>>代码示例>>Java>>正文


Java PropertyDefinition.addAllowedValue方法代码示例

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


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

示例1: SetGeoEventAllowedFields

import com.esri.ges.core.property.PropertyDefinition; //导入方法依赖的package包/类
private void SetGeoEventAllowedFields(PropertyDefinition pd) {
	Collection<GeoEventDefinition> geodefs = this.manager
			.listAllGeoEventDefinitions();
	ArrayList<String> names = new ArrayList<String>();
	HashMap<String, GeoEventDefinition> defMap = new HashMap<String, GeoEventDefinition>();
	Iterator<GeoEventDefinition> it = geodefs.iterator();
	GeoEventDefinition geoEventDef;
	while (it.hasNext()) {
		geoEventDef = it.next();
		String defName = geoEventDef.getName();
		names.add(defName);
		defMap.put(defName, geoEventDef);
	}
	Collections.sort(names);
	for (String name : names) {
		geoEventDef = defMap.get(name);
		List<FieldDefinition> fldDefs = geoEventDef.getFieldDefinitions();
		for (FieldDefinition f : fldDefs) {
			pd.addAllowedValue(name + ":" + f.getName());
		}
	}
}
 
开发者ID:Esri,项目名称:defense-solutions-proofs-of-concept,代码行数:23,代码来源:QueryReportProcessorDefinition.java

示例2: SetGeoEventAllowedFields

import com.esri.ges.core.property.PropertyDefinition; //导入方法依赖的package包/类
private void SetGeoEventAllowedFields(PropertyDefinition pd)
{
	Collection<GeoEventDefinition> geodefs = this.manager.listAllGeoEventDefinitions();
	Iterator<GeoEventDefinition> it = geodefs.iterator();
	GeoEventDefinition geoEventDef;
	while (it.hasNext())
	{
		geoEventDef = it.next();
		String defName = geoEventDef.getName();
		for(int i = 0; i < geoEventDef.getFieldDefinitions().size(); ++i)
		{
			String fld = geoEventDef.getFieldDefinitions().get(i).getName();
			pd.addAllowedValue(defName + ":" + fld);
		}
	}
}
 
开发者ID:Esri,项目名称:defense-solutions-proofs-of-concept,代码行数:17,代码来源:PolygonProcessorDefinition.java

示例3: setManager

import com.esri.ges.core.property.PropertyDefinition; //导入方法依赖的package包/类
public void setManager(GeoEventDefinitionManager m) throws PropertyException {
	this.manager = m;
	
	PropertyDefinition procSymbolIdSource = new PropertyDefinition("symbolIdSource", 
			PropertyType.String, "", "SymbolId Source", "Source of SymbolId Value", true, false);
	procSymbolIdSource.addAllowedValue("Event");
	propertyDefinitions.put(procSymbolIdSource.getPropertyName(), procSymbolIdSource);
	
	PropertyDefinition procSymbolIdEvent = new PropertyDefinition("symbolIdEvent", 
			PropertyType.String, "", "SymbolId Event Field", "Geoevent field containing SymbolId data", true, false);
	procSymbolIdEvent.setDependsOn("symbolIdSource=Event");
	SetGeoEventAllowedFields(procSymbolIdEvent);
	propertyDefinitions.put(procSymbolIdEvent.getPropertyName(), procSymbolIdEvent);
	
	PropertyDefinition procSymbolNameSource = new PropertyDefinition("symbolNameSource", 
			PropertyType.String, "", "SymbolName Source", "Source of SymbolName Value", true, false);
	procSymbolNameSource.addAllowedValue("Event");
	propertyDefinitions.put(procSymbolNameSource.getPropertyName(), procSymbolNameSource);
	
	PropertyDefinition procSymbolNameEvent = new PropertyDefinition("symbolNameEvent", 
			PropertyType.String, "", "SymbolName Event Field", "Geoevent field containing SymbolName data", true, false);
	procSymbolNameEvent.setDependsOn("symbolNameSource=Event");
	SetGeoEventAllowedFields(procSymbolNameEvent);
	propertyDefinitions.put(procSymbolNameEvent.getPropertyName(), procSymbolNameEvent);
	
}
 
开发者ID:Esri,项目名称:defense-solutions-proofs-of-concept,代码行数:27,代码来源:SymbolIdToNameProcessorDefinition.java

示例4: setManager

import com.esri.ges.core.property.PropertyDefinition; //导入方法依赖的package包/类
public void setManager(GeoEventDefinitionManager m) throws PropertyException {
	this.manager = m;
			
	PropertyDefinition procSymbolNameSource = new PropertyDefinition("symbolNameSource", 
			PropertyType.String, "", "SymbolName Source", "Source of SymbolName Value", true, false);
	procSymbolNameSource.addAllowedValue("Event");
	propertyDefinitions.put(procSymbolNameSource.getPropertyName(), procSymbolNameSource);
	
	PropertyDefinition procSymbolNameEvent = new PropertyDefinition("symbolNameEvent", 
			PropertyType.String, "", "SymbolName Event Field", "Geoevent field containing SymbolName data", true, false);
	procSymbolNameEvent.setDependsOn("symbolNameSource=Event");
	SetGeoEventAllowedFields(procSymbolNameEvent);
	propertyDefinitions.put(procSymbolNameEvent.getPropertyName(), procSymbolNameEvent);
	
	PropertyDefinition procSymbolIdSource = new PropertyDefinition("symbolIdSource", 
			PropertyType.String, "", "SymbolId Source", "Source of SymbolId Value", true, false);
	procSymbolIdSource.addAllowedValue("Event");
	propertyDefinitions.put(procSymbolIdSource.getPropertyName(), procSymbolIdSource);
	
	PropertyDefinition procSymbolIdEvent = new PropertyDefinition("symbolIdEvent", 
			PropertyType.String, "", "SymbolId Event Field", "Geoevent field containing SymbolId data", true, false);
	procSymbolIdEvent.setDependsOn("symbolIdSource=Event");
	SetGeoEventAllowedFields(procSymbolIdEvent);
	propertyDefinitions.put(procSymbolIdEvent.getPropertyName(), procSymbolIdEvent);
	
}
 
开发者ID:Esri,项目名称:defense-solutions-proofs-of-concept,代码行数:27,代码来源:SymbolNameToIdProcessorDefinition.java

示例5: SetGeoEventAllowedFields

import com.esri.ges.core.property.PropertyDefinition; //导入方法依赖的package包/类
private void SetGeoEventAllowedFields(PropertyDefinition pd) {
	Collection<GeoEventDefinition> geodefs = this.manager
			.listAllGeoEventDefinitions();
	Iterator<GeoEventDefinition> it = geodefs.iterator();
	GeoEventDefinition geoEventDef;
	while (it.hasNext()) {
		geoEventDef = it.next();
		String defName = geoEventDef.getName();
		for (int i = 0; i < geoEventDef.getFieldDefinitions().size(); ++i) {
			String fld = geoEventDef.getFieldDefinitions().get(i).getName();
			pd.addAllowedValue(defName + ":" + fld);
		}
	}
}
 
开发者ID:Esri,项目名称:defense-solutions-proofs-of-concept,代码行数:15,代码来源:BufferProcessorDefinition.java

示例6: SetGeoEventAllowedFields

import com.esri.ges.core.property.PropertyDefinition; //导入方法依赖的package包/类
private void SetGeoEventAllowedFields(PropertyDefinition pd)
{
	if (this.manager == null)
		return;
	
	Collection<GeoEventDefinition> geodefs = this.manager.listAllGeoEventDefinitions();
	if (geodefs == null)
		return;
	
	Iterator<GeoEventDefinition> it = geodefs.iterator();
	GeoEventDefinition geoEventDef;
	while (it.hasNext())
	{
		geoEventDef = it.next();
		String defName = geoEventDef.getName();
		List<FieldDefinition> fieldDefs = geoEventDef.getFieldDefinitions();
		
		if (fieldDefs != null)
		{
			int fieldDefSize = fieldDefs.size();
		
			for(int i = 0; i < fieldDefSize; ++i)
			{
				String fld = geoEventDef.getFieldDefinitions().get(i).getName();
				pd.addAllowedValue(defName + ":" + fld);
			}
		}
	}
}
 
开发者ID:Esri,项目名称:defense-solutions-proofs-of-concept,代码行数:30,代码来源:SymbolIdToNameProcessorDefinition.java


注:本文中的com.esri.ges.core.property.PropertyDefinition.addAllowedValue方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。