本文整理匯總了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())));
}