/** * Returns the output parameters with the given identifier. * * @param parameterId * identifier of the output parameters to be looked up * @param codeSpace * codeSpace of the parameter identifier * @return the output parameters with the given identifier */ public ProcessletOutput getParameter( String parameterId, String codeSpace ) { return idToOutput.get( new CodeType( parameterId, codeSpace ) ); }
/** * Returns the input parameters with the given identifier. * * @param parameterId * identifier of the input parameters to be looked up * @param codeSpace * codeSpace of the parameter identifier * @return the input parameters with the given identifier */ public List<ProcessletInput> getParameters( String parameterId, String codeSpace ) { return idsToInputs.get( new CodeType( parameterId, codeSpace ) ); }
/** * Returns the input parameters with the given identifier (convenience method for identifiers with a * <code>null</code> codeSpace). * * @param parameterId * identifier of the input parameters to be looked up * @return the input parameters with the given identifier */ public List<ProcessletInput> getParameters( String parameterId ) { return idsToInputs.get( new CodeType( parameterId ) ); }
/** * Returns the output parameters with the given identifier (convenience method for identifiers with a * <code>null</code> codeSpace). * * @param parameterId * identifier of the output parameters to be looked up * @return the output parameters with the given identifier */ public ProcessletOutput getParameter( String parameterId ) { return idToOutput.get( new CodeType( parameterId ) ); }
/** * Returns the output with the specified identifier. * * @param id * output identifier, never <code>null</code> * @param idCodeSpace * codespace of the output identifier, may be <code>null</code> (for identifiers that don't use a code * space) * @return output with the specified identifier, may be <code>null</code> (if no such output exists) */ public ExecutionOutput get( String id, String idCodeSpace ) { return paramIdToOutput.get( new CodeType( id, idCodeSpace ) ); }
private CodeType readName( XMLStreamReader xmlStream ) throws XMLStreamException { String codeSpace = xmlStream.getAttributeValue( null, "codeSpace" ); String code = xmlStream.getElementText().trim(); return new CodeType( code, codeSpace ); } }
private CodeType readIdentifier( XMLStreamReader xmlStream ) throws XMLStreamException { String codeSpace = xmlStream.getAttributeValue( null, "codeSpace" ); String code = xmlStream.getElementText().trim(); if ( codeSpace == null ) { throw new XMLStreamException( "The gml:identifier property must have a codeSpace attribute." ); } return new CodeType( code, codeSpace ); }
private CodeType parseId( OMElement omProcess ) { OMElement omId = omProcess.getFirstChildWithName( new QName( OWS_11_NS, "Identifier" ) ); String codeSpace = omId.getAttributeValue( new QName( null, "codeSpace" ) ); if ( codeSpace != null ) { return new CodeType( omId.getText(), codeSpace ); } return new CodeType( omId.getText() ); } }
private CodeType parseId( OMElement omElement ) { OMElement omId = omElement.getFirstChildWithName( new QName( owsNS, "Identifier" ) ); String codeSpace = omId.getAttributeValue( new QName( null, "codeSpace" ) ); if ( codeSpace != null ) { return new CodeType( omId.getText(), codeSpace ); } return new CodeType( omId.getText() ); }
private CodeType parseCodeType( OMElement codeTypeElement ) { // codeSpace attribute (optional) String codeSpace = codeTypeElement.getAttributeValue( new QName( "codeSpace" ) ); // text value String value = codeTypeElement.getText(); return new CodeType( value, codeSpace ); } }
/** * @param omelement * context {@link OMElement} * @return an {@link CodeType} instance, never <code>null</code> */ protected CodeType parseCodeSpace( OMElement omelement ) { String codeSpace = getNodeAsString( omelement, new XPath( "codeSpace", nsContext ), null ); if ( codeSpace != null ) { return new CodeType( omelement.getText(), codeSpace ); } return new CodeType( omelement.getText() ); }
@Override public CodeType apply( org.deegree.commons.metadata.description.jaxb.CodeType u ) { if ( u == null ) { return null; } return new CodeType( u.getValue(), u.getCodeSpace() ); } };
@Override public CodeType apply( org.deegree.services.jaxb.metadata.CodeType u ) { return new CodeType( u.getValue(), u.getCodeSpace() ); } };
public StyleProcessProvider( String processId, ResourceMetadata<ProcessProvider> metadata ) { this.metadata = metadata; idtoProcess.put( new CodeType( processId ), new GenericWPSProcess( getDescription( processId ), new StyleProcesslet() ) ); }
private Property parseCodeProperty( XMLStreamReaderWrapper xmlStream, CodePropertyType propDecl ) throws NoSuchElementException, XMLStreamException, XMLParsingException { QName propName = xmlStream.getName(); Map<QName, PrimitiveValue> attrs = parseAttributes( xmlStream, propDecl.getElementDecl() ); boolean isNilled = attrs.containsKey( XSI_NIL ) && (Boolean) attrs.get( XSI_NIL ).getValue(); String codeSpace = xmlStream.getAttributeValue( null, "codeSpace" ); String code = xmlStream.getElementText().trim(); CodeType value = new CodeType( code, codeSpace ); return new GenericProperty( propDecl, propName, value, isNilled ); }
/** * Returns the identifier of the output parameter. * * @return the identifier of the output parameter */ public CodeType getIdentifier() { return new CodeType( outputType.getIdentifier().getValue(), outputType.getIdentifier().getCodeSpace() ); }
/** * Returns the identifier or name of the input parameter as defined in the process description. * * @return the identifier of the input parameter */ public CodeType getIdentifier() { return new CodeType( definition.getIdentifier().getValue(), definition.getIdentifier().getCodeSpace() ); }
/** * Returns the identifier of the process to be executed. * * @return the identifier of the process to be executed */ public CodeType getProcessId() { return new CodeType(processDef.getIdentifier().getValue(), processDef.getIdentifier().getCodeSpace()); }
@Override public CodeType getIdentifier() { return new CodeType( definition.getIdentifier().getValue(), definition.getIdentifier().getCodeSpace() ); }
private Pair<List<LanguageString>, CodeType> fromJaxb( final KeywordsType jaxbEl ) { final CodeType type = jaxbEl.getType() == null ? null : new CodeType( jaxbEl.getType().getValue(), jaxbEl.getType().getCodeSpace() ); final List<LanguageString> languageStrings = fromJaxb( jaxbEl.getKeyword() ); return new Pair<List<LanguageString>, CodeType>( languageStrings, type ); } }