Codota Logo
CodeType.getCode
Code IndexAdd Codota to your IDE (free)

How to use
getCode
method
in
org.deegree.commons.tom.ows.CodeType

Best Java code snippets using org.deegree.commons.tom.ows.CodeType.getCode (Showing top 15 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
DateTime d =
  • Codota Iconnew DateTime()
  • Codota IconDateTimeFormatter formatter;String text;formatter.parseDateTime(text)
  • Codota IconObject instant;new DateTime(instant)
  • Smart code suggestions by Codota
}
origin: deegree/deegree3

private void writeIdentifier( CodeType id )
            throws XMLStreamException {
  writer.writeStartElement( "ows", "Identifier", owsNS );
  if ( id.getCodeSpace() != null ) {
    writer.writeCharacters( id.getCodeSpace() + ":" + id.getCode() );
  } else {
    writer.writeCharacters( id.getCode() );
  }
  writer.writeEndElement();
}
origin: deegree/deegree3

@Override
public OWSException inputNoSuchParameter( CodeType identifier ) {
  String msg = processMsg + " has no input parameter with identifier '" + identifier + "'.";
  return new OWSException( msg, OWSException.INVALID_PARAMETER_VALUE, identifier.getCode() );
}
origin: deegree/deegree3

private static void exportCodeTypeNew( XMLStreamWriter writer, org.deegree.commons.tom.ows.CodeType codeType,
                    String localName, String owsNS )
            throws XMLStreamException {
  if ( codeType != null ) {
    writer.writeStartElement( owsNS, localName );
    if ( codeType.getCodeSpace() != null && !"".equals( codeType.getCodeSpace() ) ) {
      writer.writeAttribute( "codeSpace", codeType.getCodeSpace() );
    }
    writer.writeCharacters( codeType.getCode() );
    writer.writeEndElement(); // localName
  }
}
origin: deegree/deegree3

@Override
public OWSException outputNoSuchParameter( CodeType outputParameterId ) {
  String msg = processMsg + " has no output parameter with identifier '" + outputParameterId + "'.";
  return new OWSException( msg, OWSException.INVALID_PARAMETER_VALUE, outputParameterId.getCode() );
}
origin: deegree/deegree3

  private static boolean equals( CodeType codeType, org.deegree.process.jaxb.java.CodeType codeType2 ) {
    if ( codeType2.getValue().equals( codeType.getCode() ) ) {
      if ( codeType2.getCodeSpace() == null ) {
        return codeType.getCodeSpace() == null;
      }
      return codeType2.getCodeSpace().equals( codeType.getCodeSpace() );
    }
    return false;
  }
}
origin: deegree/deegree3

writeElement( writer, owsNS, "Role", serviceContact.getRole().getCode() );
origin: deegree/deegree3

private static boolean equals( CodeType codeType, org.deegree.process.jaxb.java.CodeType codeType2 ) {
  if ( codeType2.getValue().equals( codeType.getCode() ) ) {
    if ( codeType2.getCodeSpace() == null ) {
      return codeType.getCodeSpace() == null;
    }
    return codeType2.getCodeSpace().equals( codeType.getCodeSpace() );
  }
  return false;
}
origin: deegree/deegree3

/**
 * Creates a new {@link WPSClient} instance.
 * 
 * @param capabilitiesURL
 *            url of a WPS capabilities document, usually this is a GetCapabilities request to a WPS service, must
 *            not be <code>null</code>
 * @throws OWSException
 *             if the server replied with an exception
 * @throws IOException
 *             if a communication/network problem occured
 */
public WPSClient( URL capabilitiesURL ) throws OWSExceptionReport, IOException {
  WPS100CapabilitiesAdapter capabilitiesDoc = retrieveCapabilities( capabilitiesURL );
  // TODO what if server only supports Get? What is optional and what is mandatory?
  describeProcessURLs[0] = capabilitiesDoc.getOperationURL( "DescribeProcess", false );
  describeProcessURLs[1] = capabilitiesDoc.getOperationURL( "DescribeProcess", true );
  executeURLs[0] = capabilitiesDoc.getOperationURL( "Execute", false );
  executeURLs[1] = capabilitiesDoc.getOperationURL( "Execute", true );
  metadata = capabilitiesDoc.parseMetadata();
  for ( ProcessInfo processInfo : capabilitiesDoc.getProcesses() ) {
    Process process = new Process( this, processInfo );
    processIdToProcess.put( process.getId(), process );
    processIdSimpleToProcess.put( process.getId().getCode(), process );
  }
}
origin: deegree/deegree3

private void writeGML3( GMLStdProps props )
            throws XMLStreamException {
  StringOrRef description = props.getDescription();
  if ( description != null ) {
    writer.writeStartElement( "gml", "description", gmlNs );
    if ( description.getRef() != null ) {
      writer.writeAttribute( XLNNS, "xlink", description.getRef() );
    }
    if ( description.getString() != null ) {
      writer.writeCharacters( description.getString() );
    }
    writer.writeEndElement();
  }
  for ( CodeType name : props.getNames() ) {
    writer.writeStartElement( "gml", "name", gmlNs );
    if ( name.getCodeSpace() != null ) {
      writer.writeAttribute( "codeSpace", name.getCodeSpace() );
    }
    if ( name.getCode() != null ) {
      writer.writeCharacters( name.getCode() );
    }
    writer.writeEndElement();
  }
}
origin: deegree/deegree3

  private void writeGML32( GMLStdProps props )
              throws XMLStreamException {

    StringOrRef description = props.getDescription();
    if ( description != null ) {
      writer.writeStartElement( "gml", "description", gmlNs );
      if ( description.getRef() != null ) {
        writer.writeAttribute( XLNNS, "xlink", description.getRef() );
      }
      if ( description.getString() != null ) {
        writer.writeCharacters( description.getString() );
      }
      writer.writeEndElement();
    }

    for ( CodeType name : props.getNames() ) {
      writer.writeStartElement( "gml", "name", gmlNs );
      if ( name.getCodeSpace() != null ) {
        writer.writeAttribute( "codeSpace", name.getCodeSpace() );
      }
      if ( name.getCode() != null ) {
        writer.writeCharacters( name.getCode() );
      }
      writer.writeEndElement();
    }
  }
}
origin: deegree/deegree3

private void writeGML2( GMLStdProps props )
            throws XMLStreamException {
  StringOrRef description = props.getDescription();
  if ( description != null ) {
    writer.writeStartElement( "gml", "description", gmlNs );
    if ( description.getRef() != null ) {
      writer.writeAttribute( XLNNS, "xlink", description.getRef() );
    }
    if ( description.getString() != null ) {
      writer.writeCharacters( description.getString() );
    }
    writer.writeEndElement();
  }
  for ( CodeType name : props.getNames() ) {
    writer.writeStartElement( "gml", "name", gmlNs );
    if ( name.getCodeSpace() != null ) {
      writer.writeAttribute( "codeSpace", name.getCodeSpace() );
    }
    if ( name.getCode() != null ) {
      writer.writeCharacters( name.getCode() );
    }
    writer.writeEndElement();
    // in GML 2, only one gml:name is allowed
    break;
  }
}
origin: deegree/deegree3

           + URLEncoder.encode( client.getServiceVersion(), "UTF-8" )
           + "&request=DescribeProcess&identifier="
           + URLEncoder.encode( processInfo.getId().getCode(), "UTF-8" );
URL finalURL = new URL( finalURLStr );
XMLAdapter describeProcessResponse = new XMLAdapter( finalURL );
origin: deegree/deegree3

  writer.writeAttribute( "codeSpace", input.getIdentifier().getCodeSpace() );
writer.writeCharacters( input.getIdentifier().getCode() );
writer.writeEndElement();
origin: deegree/deegree3

  writer.writeAttribute( "codeSpace", output.getIdentifier().getCodeSpace() );
writer.writeCharacters( output.getIdentifier().getCode() );
writer.writeEndElement();
origin: deegree/deegree3

writer.writeCharacters( codeType.getCode() );
org.deegree.commons.tom.owsCodeTypegetCode

Javadoc

Returns the code value.

Popular methods of CodeType

  • <init>
    Returns a new CodeType instance with optional authority.
  • getCodeSpace
    Returns the authority of the code.
  • equals
  • toString

Popular in Java

  • Parsing JSON documents to java classes using gson
  • setScale (BigDecimal)
  • findViewById (Activity)
  • scheduleAtFixedRate (Timer)
    Schedules the specified task for repeated fixed-rate execution, beginning after the specified delay.
  • GridLayout (java.awt)
    The GridLayout class is a layout manager that lays out a container's components in a rectangular gri
  • Dictionary (java.util)
    The Dictionary class is the abstract parent of any class, such as Hashtable, which maps keys to valu
  • Queue (java.util)
    A collection designed for holding elements prior to processing. Besides basic java.util.Collection o
  • TimerTask (java.util)
    A task that can be scheduled for one-time or repeated execution by a Timer.
  • ExecutorService (java.util.concurrent)
    An Executor that provides methods to manage termination and methods that can produce a Future for tr
  • StringUtils (org.apache.commons.lang)
    Operations on java.lang.String that arenull safe. * IsEmpty/IsBlank - checks if a String contains
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now