本文整理汇总了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);
}
}
}
示例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);
}
}
}
示例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