Tabnine Logo
CodeSpacePropertyType.setHref
Code IndexAdd Tabnine to your IDE (free)

How to use
setHref
method
in
net.opengis.swe.x101.CodeSpacePropertyType

Best Java code snippets using net.opengis.swe.x101.CodeSpacePropertyType.setHref (Showing top 4 results out of 315)

origin: org.n52.svalbard/svalbard-xmlbeans

/**
 * Creates the classification section of the SensorML description.
 *
 * @param classifications
 *            SOS classifications
 *
 * @return XML Classification array
 */
private Classification[] createClassification(List<SmlClassifier> classifications) {
  Classification xbClassification = Classification.Factory.newInstance(getXmlOptions());
  ClassifierList xbClassifierList = xbClassification.addNewClassifierList();
  classifications.forEach(sosSMLClassifier -> {
    Classifier xbClassifier = xbClassifierList.addNewClassifier();
    if (sosSMLClassifier.getName() != null) {
      xbClassifier.setName(sosSMLClassifier.getName());
    }
    Term xbTerm = xbClassifier.addNewTerm();
    xbTerm.setValue(sosSMLClassifier.getValue());
    if (sosSMLClassifier.isSetDefinition()) {
      xbTerm.setDefinition(sosSMLClassifier.getDefinition());
    }
    if (sosSMLClassifier.isSetCodeSpace()) {
      xbTerm.addNewCodeSpace().setHref(sosSMLClassifier.getCodeSpace());
    }
  });
  return new Classification[] { xbClassification };
}
origin: org.n52.svalbard/svalbard-xmlbeans

private Category createCategory(SweCategory component) {
  Category xml = Category.Factory.newInstance(getXmlOptions());
  if (component.isSetValue()) {
    xml.setValue(component.getValue());
  }
  if (component.isSetCodeSpace()) {
    xml.addNewCodeSpace().setHref(component.getCodeSpace());
  }
  if (component.isSetQuality()) {
    xml.setQuality(createQuality(component.getQuality())[0]);
  }
  if (component.isSetContstraint()) {
    createConstraint(xml.getConstraint(), component.getConstraint());
  }
  return xml;
}
origin: org.n52.sensorweb.sos/coding-sensorML-v101

private Category createCategory(final SweCategory category) throws OwsExceptionReport {
  final Category xbCategory = Category.Factory.newInstance(XmlOptionsHelper.getInstance().getXmlOptions());
  if (category.isSetValue()) {
    xbCategory.setValue(category.getValue());
  }
  if (category.isSetCodeSpace()) {
    xbCategory.addNewCodeSpace().setHref(category.getCodeSpace());
  }
  if (category.isSetQuality()) {
    xbCategory.setQuality(createQuality(category.getQuality())[0]);
  }
  if (category.isSetContstraint()) {
    createConstraint(xbCategory.addNewConstraint(), category.getConstraint());
  }
  return xbCategory;
}
origin: org.n52.sensorweb.sos/coding-sensorML-v101

/**
 * Creates the classification section of the SensorML description.
 * 
 * @param classifications
 *            SOS classifications
 * @return XML Classification array
 */
private Classification[] createClassification(final List<SmlClassifier> classifications) {
  final Classification xbClassification = Classification.Factory.newInstance(getOptions());
  final ClassifierList xbClassifierList = xbClassification.addNewClassifierList();
  for (final SmlClassifier sosSMLClassifier : classifications) {
    final Classifier xbClassifier = xbClassifierList.addNewClassifier();
    if (sosSMLClassifier.getName() != null) {
      xbClassifier.setName(sosSMLClassifier.getName());
    }
    final Term xbTerm = xbClassifier.addNewTerm();
    xbTerm.setValue(sosSMLClassifier.getValue());
    if (sosSMLClassifier.isSetDefinition()) {
      xbTerm.setDefinition(sosSMLClassifier.getDefinition());
    }
    if (sosSMLClassifier.isSetCodeSpace()) {
      xbTerm.addNewCodeSpace().setHref(sosSMLClassifier.getCodeSpace());
    }
  }
  return new Classification[] { xbClassification };
}
net.opengis.swe.x101CodeSpacePropertyTypesetHref

Javadoc

Sets the "href" attribute

Popular methods of CodeSpacePropertyType

  • getHref
    Gets the "href" attribute
  • set

Popular in Java

  • Start an intent from android
  • getExternalFilesDir (Context)
  • onCreateOptionsMenu (Activity)
  • getSupportFragmentManager (FragmentActivity)
  • BorderLayout (java.awt)
    A border layout lays out a container, arranging and resizing its components to fit in five regions:
  • BufferedWriter (java.io)
    Wraps an existing Writer and buffers the output. Expensive interaction with the underlying reader is
  • MalformedURLException (java.net)
    This exception is thrown when a program attempts to create an URL from an incorrect specification.
  • Stack (java.util)
    Stack is a Last-In/First-Out(LIFO) data structure which represents a stack of objects. It enables u
  • Callable (java.util.concurrent)
    A task that returns a result and may throw an exception. Implementors define a single method with no
  • Annotation (javassist.bytecode.annotation)
    The annotation structure.An instance of this class is returned bygetAnnotations() in AnnotationsAttr
  • Top 12 Jupyter Notebook extensions
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now