本文整理汇总了Java中org.n52.wps.PropertyDocument.Property类的典型用法代码示例。如果您正苦于以下问题:Java Property类的具体用法?Java Property怎么用?Java Property使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
Property类属于org.n52.wps.PropertyDocument包,在下文中一共展示了Property类的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: AviationConfiguration
import org.n52.wps.PropertyDocument.Property; //导入依赖的package包/类
private AviationConfiguration() {
this.activeProperties = new HashSet<String>();
this.algorithms = new HashSet<String>();
for (Property prop : WPSConfig.getInstance().getPropertiesForRepositoryClass(AviationProcessRepository.class.getName())) {
if (prop.getActive() && prop.getName().equals(ALGORITHM_KEY)) {
this.algorithms.add(prop.getStringValue());
}
else {
this.setProperty(prop.getName(), prop.getStringValue());
if (prop.getActive()) this.activeProperties.add(prop.getName());
}
}
initializeComponents();
}
示例2: getPropertiesForGeneratorClass
import org.n52.wps.PropertyDocument.Property; //导入依赖的package包/类
public Property[] getPropertiesForGeneratorClass(String className){
Generator[] generators = wpsConfigXMLBeans.getDatahandlers().getGeneratorList().getGeneratorArray();
for(int i = 0; i<generators.length; i++) {
Generator generator = generators[i];
if(generator.getClassName().equals(className)){
return generator.getPropertyArray();
}
}
return (Property[]) Array.newInstance(Property.class,0);
}
示例3: getPropertiesForParserClass
import org.n52.wps.PropertyDocument.Property; //导入依赖的package包/类
public Property[] getPropertiesForParserClass(String className){
Parser[] parsers = wpsConfigXMLBeans.getDatahandlers().getParserList().getParserArray();
for(int i = 0; i<parsers.length; i++) {
Parser parser = parsers[i];
if(parser.getClassName().equals(className)){
return parser.getPropertyArray();
}
}
return (Property[]) Array.newInstance(Property.class,0);
}
示例4: getPropertiesForRepositoryClass
import org.n52.wps.PropertyDocument.Property; //导入依赖的package包/类
public Property[] getPropertiesForRepositoryClass(String className){
Repository[] repositories = getRegisterdAlgorithmRepositories();
for(int i = 0; i<repositories.length; i++) {
Repository repository = repositories[i];
if(repository.getClassName().equals(className)){
return repository.getPropertyArray();
}
}
return (Property[]) Array.newInstance(Property.class,0);
}
示例5: getPropertyForKey
import org.n52.wps.PropertyDocument.Property; //导入依赖的package包/类
public Property getPropertyForKey(Property[] properties, String key){
for(Property property: properties){
if(property.getName().equalsIgnoreCase(key)){
return property;
}
}
return null;
}
示例6: getProperties
import org.n52.wps.PropertyDocument.Property; //导入依赖的package包/类
private static Map<String, List<String>> getProperties() {
String name = MatlabAlgorithmRepository.class.getCanonicalName();
return Optional.of(getConfig().getPropertiesForRepositoryClass(name))
.map(Arrays::stream)
.orElseGet(Stream::empty)
.filter(Property::getActive)
.collect(groupingBy(Property::getName,
mapping(Property::getStringValue, toList())));
}