本文整理汇总了Java中net.opengis.wps.x100.ProcessDescriptionType类的典型用法代码示例。如果您正苦于以下问题:Java ProcessDescriptionType类的具体用法?Java ProcessDescriptionType怎么用?Java ProcessDescriptionType使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
ProcessDescriptionType类属于net.opengis.wps.x100包,在下文中一共展示了ProcessDescriptionType类的14个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。
示例1: isLiteralOutput
点赞 3
import net.opengis.wps.x100.ProcessDescriptionType; //导入依赖的package包/类
public boolean isLiteralOutput(String typeName) throws IOException {
OutputDescriptionType processOutput = null;
String[] typeNameContents = typeName.split("@");
ProcessDescriptionType processDescription = processes.get(
typeNameContents[0]).getProcessDescription();
OutputDescriptionType[] outputDescriptions = processDescription
.getProcessOutputs().getOutputArray();
for (int i = 0; i < outputDescriptions.length; i++) {
// there are comlexoutputs only(see WPSDataStore.getFeatureTypes()
if (outputDescriptions[i].getIdentifier().getStringValue()
.startsWith(typeNameContents[1])) {
processOutput = outputDescriptions[i];
break;
}
}
if (processOutput == null
|| processOutput.getComplexOutput() == null) {
return true;
}
return false;
}
开发者ID:52North,
项目名称:uDig-WPS-plugin,
代码行数:24,
代码来源:WPSDataStore.java
示例2: GeoResourceWPSInfo
点赞 3
import net.opengis.wps.x100.ProcessDescriptionType; //导入依赖的package包/类
GeoResourceWPSInfo() throws IOException, URISyntaxException{
ProcessDescriptionType processDescription = parent.getDS(null).getSession().getProcessDescription(process.getHost(), process.getProcessID());
OutputDescriptionType[] outputDescriptions = processDescription.getProcessOutputs().getOutputArray();;
OutputDescriptionType outputDescriptionType = null;
String [] processIDcontents = typeName.split("@");
for (int i = 0; i < outputDescriptions.length; i++) {
//there are comlexoutputs only(see WPSDataStore.getFeatureTypes()
if(outputDescriptions[i].getIdentifier().getStringValue().equals( processIDcontents[1])){
SupportedComplexDataType complexOutput = outputDescriptions[i].getComplexOutput();
this.description = outputDescriptions[i].getAbstract().getStringValue();
this.title = outputDescriptions[i].getTitle().getStringValue();
this.name = outputDescriptions[i].getIdentifier().getStringValue();
if(complexOutput.getSupported()!=null && complexOutput.getSupported().getFormatArray().length>0){
//TODO what todo with multiple supported schemas?
this.schema = new URI(complexOutput.getSupported().getFormatArray(0).getSchema());
}else{
this.schema = new URI(complexOutput.getDefault().getFormat().getSchema());
}
}
}
}
开发者ID:52North,
项目名称:uDig-WPS-plugin,
代码行数:25,
代码来源:WPSGeoResourceImpl.java
示例3: AviationProcessRepository
点赞 3
import net.opengis.wps.x100.ProcessDescriptionType; //导入依赖的package包/类
public AviationProcessRepository() {
this.algorithmNames = new HashMap<String, Class<?>>();
this.processDescriptions = new HashMap<String, ProcessDescriptionType>();
Set<String> algos = AviationConfiguration.getInstance().getAlgorithms();
try {
for (String a : algos) {
Class<?> clazz = Class.forName(a, false, getClass().getClassLoader());
AlgorithmPublicName publicName = clazz.getAnnotation(AlgorithmPublicName.class);
this.algorithmNames.put(publicName != null ? publicName.value()[0] : a, clazz);
}
} catch (ClassNotFoundException e) {
logger.warn(e.getMessage(), e);
}
}
开发者ID:52North,
项目名称:WPS4Aviation,
代码行数:18,
代码来源:AviationProcessRepository.java
示例4: MovingCodePackage
点赞 2
import net.opengis.wps.x100.ProcessDescriptionType; //导入依赖的package包/类
/**
* Constructor for zipFiles. Creates a MovingCodePackage from a zipFile on disk.
*
* @param {@link File} zipFile - a zip file with a valid package structure
*/
public MovingCodePackage(final File zipFile) {
this.archive = new ZippedPackage(zipFile);
PackageDescriptionDocument doc = this.archive.getDescription();
// assign properties fields
if (doc != null) {
ProcessDescriptionType pd = doc.getPackageDescription().getFunctionality().getWps100ProcessDescription();
functionIdentifier = pd.getIdentifier().getStringValue();
functionTitle = pd.getTitle().getStringValue();
if (pd.isSetAbstract()){
functionAbstract = pd.getAbstract().getStringValue();
} else {
functionAbstract = null;
}
supportedFuncTypes = getFunctionalTypes(doc);
DateTime timestamp = new DateTime(doc.getPackageDescription().getTimestamp());
String id = doc.getPackageDescription().getPackageId();
packageId = new PID(id, timestamp);
packageDescription = XMLUtils.toString(doc);
}
else {
functionIdentifier = null;
functionTitle = null;
functionAbstract = null;
supportedFuncTypes = null;
packageId = null;
packageDescription = null;
}
isValid = validate(doc, this);
}
开发者ID:52North,
项目名称:movingcode,
代码行数:41,
代码来源:MovingCodePackage.java
示例5: getProcessDescription
点赞 2
import net.opengis.wps.x100.ProcessDescriptionType; //导入依赖的package包/类
/**
* Finds a package for a given function identifier.
*
* @param functionIdentifier
* @return - {@link ProcessDescriptionType}
*/
public ProcessDescriptionType getProcessDescription(final String functionIdentifier) {
MovingCodePackage[] mcpArray = getPackageByFunction(functionIdentifier);
if (mcpArray != null && mcpArray.length > 0){
return mcpArray[0].getDescriptionAsDocument().getPackageDescription().getFunctionality().getWps100ProcessDescription();
} else {
return null;
}
}
开发者ID:52North,
项目名称:movingcode,
代码行数:15,
代码来源:GlobalRepositoryManager.java
示例6: processDescriptionIsValid
点赞 2
import net.opengis.wps.x100.ProcessDescriptionType; //导入依赖的package包/类
@Override
public boolean processDescriptionIsValid() {
ProcessDescriptionType desc = getDescription();
//TODO actually validate the contents
return desc.validate();
}
开发者ID:52North,
项目名称:WPS4Aviation,
代码行数:8,
代码来源:AIXMIntersection.java
示例7: getProcessDescription
点赞 2
import net.opengis.wps.x100.ProcessDescriptionType; //导入依赖的package包/类
@Override
public ProcessDescriptionType getProcessDescription(String processID) {
if (!algorithmNames.keySet().contains(processID)) {
return null;
}
return resolveProcessDescription(processID);
}
开发者ID:52North,
项目名称:WPS4Aviation,
代码行数:9,
代码来源:AviationProcessRepository.java
示例8: GeoprocessingFeedEntry
点赞 2
import net.opengis.wps.x100.ProcessDescriptionType; //导入依赖的package包/类
/**
* Constructor for a brand new GeoprocessingFeedEntry.
*
*
* @param packageDesc
* {@link PackageDescriptionDocument} - the packageDescription
* @param creationDate
* {@link Date} - the creation Date of the new entry.
* @param packageURL
* {@link String} - a URL from which the zipped content of the package can be retrieved
* @param descriptionURL
* {@link String} - a URL that links to additional documentation of the package contents
*
* TODO: decrease visibility to protected
*/
protected GeoprocessingFeedEntry(String entryID, PackageDescriptionDocument packageDesc,
Date creationDate,
String packageURL,
String descriptionURL) {
ProcessDescriptionType wpsDesc = packageDesc.getPackageDescription().getFunctionality().getWps100ProcessDescription();
this.entry = makeNewEntry();
// String title = wpsDesc.getTitle().getStringValue();
// String summary = null;
// if (wpsDesc.isSetAbstract()){
// String procAbstract = wpsDesc.getAbstract().getStringValue();
// summary = "<div><b>" + title + "</b><br/>" + procAbstract + "</div";
// } else {
// summary = "<div><b>" + title + "</b><br/>Sorry, the short description is missing.</div";
// }
// assert(summary!=null);
this.entry.setTitle(entryID); // set title
this.entry.setId(entryID); // set identifier
this.entry.setPublished(creationDate); // set published date
this.entry.setUpdated(creationDate); // set creation date
// this.entry.setSummaryAsHtml(summary); // set summary //TODO: a detailed IO description of the
// feed,
// TODO: either smaller summary or much less content
// we cannot be sure that summary is properly displayed (rss readers may discard HTML tags)
// this.entry.setContentElement(makeContent(packageURL)); // set package content
// TODO: Content should be some nice HTML stuff
this.entry.setContentElement(generateHTMLContent(wpsDesc));
this.entry.addLink(makePackageDescriptionLink(descriptionURL)); // set package description link
this.entry.addLink(makePackageLink(packageURL)); // also set package link
// TODO: add alternate link
// e.g. <link rel="alternate" href="http://www.gtfs-data-exchange.com/meta/6195524"
// type="text/html"/>
// use DETAILED_DESCRIPTION_LINK_REL
}
开发者ID:52North,
项目名称:movingcode,
代码行数:58,
代码来源:GeoprocessingFeedEntry.java
示例9: getProcessDescription
点赞 2
import net.opengis.wps.x100.ProcessDescriptionType; //导入依赖的package包/类
public ProcessDescriptionType getProcessDescription() {
return processDesc;
}
开发者ID:52North,
项目名称:uDig-WPS-plugin,
代码行数:4,
代码来源:WPSProcess.java
示例10: getDescription
点赞 2
import net.opengis.wps.x100.ProcessDescriptionType; //导入依赖的package包/类
@Override
public ProcessDescriptionType getDescription() {
// TODO Auto-generated method stub
return null;
}
开发者ID:52North,
项目名称:WPS4Aviation,
代码行数:6,
代码来源:ResolveAIXMFeatureGeometry.java
示例11: getProcessDescription
点赞 2
import net.opengis.wps.x100.ProcessDescriptionType; //导入依赖的package包/类
public ProcessDescriptionType getProcessDescription() {
return processDescription;
}
开发者ID:autermann,
项目名称:matlab-wps,
代码行数:4,
代码来源:MatlabProcessDescription.java
示例12: getProcessDescription
点赞 2
import net.opengis.wps.x100.ProcessDescriptionType; //导入依赖的package包/类
@Override
public ProcessDescriptionType getProcessDescription(String name) {
return getOptionalAlgorithm(name)
.map(IAlgorithm::getDescription).orElse(null);
}
开发者ID:autermann,
项目名称:matlab-wps,
代码行数:6,
代码来源:MatlabAlgorithmRepository.java
示例13: getDescription
点赞 2
import net.opengis.wps.x100.ProcessDescriptionType; //导入依赖的package包/类
@Override
public ProcessDescriptionType getDescription() {
return this.description.getProcessDescription();
}
开发者ID:autermann,
项目名称:matlab-wps,
代码行数:5,
代码来源:MatlabAlgorithm.java
示例14: generateHTMLContent
点赞 1
import net.opengis.wps.x100.ProcessDescriptionType; //导入依赖的package包/类
/**
* Generates a human-readable description from a PackageDescriptionDocument. This description is return as
* an Atom content object.
*
* @param wpsDesc {@link ProcessDescriptionType}
* @return {@link Content}
*/
private static Content generateHTMLContent(final ProcessDescriptionType wpsDesc) {
Content content = Abdera.getInstance().getFactory().newContent(Content.Type.HTML);
content.setText(WPSDescriptionPrinter.printAsHTML(wpsDesc));
return content;
}
开发者ID:52North,
项目名称:movingcode,
代码行数:14,
代码来源:GeoprocessingFeedEntry.java