Tabnine Logo
LockType.setTypeName
Code IndexAdd Tabnine to your IDE (free)

How to use
setTypeName
method
in
net.opengis.wfs.LockType

Best Java code snippets using net.opengis.wfs.LockType.setTypeName (Showing top 4 results out of 315)

origin: org.geoserver.extension/monitor-core

@Test
public void testWFSLockFeature() throws Exception {
  LockFeatureType lf = WfsFactory.eINSTANCE.createLockFeatureType();
  
  LockType l = WfsFactory.eINSTANCE.createLockType();
  l.setTypeName(new QName("http://acme.org", "foo", "acme"));
  lf.getLock().add(l);
  
  Operation op = op("LockFeature", "WFS", "1.0.0", lf);
  callback.operationDispatched(new Request(), op);
  
  assertEquals("acme:foo", data.getResources().get(0));
}

origin: org.geoserver.extension/gs-monitor-core

@Test
public void testWFSLockFeature() throws Exception {
  LockFeatureType lf = WfsFactory.eINSTANCE.createLockFeatureType();
  LockType l = WfsFactory.eINSTANCE.createLockType();
  l.setTypeName(new QName("http://acme.org", "foo", "acme"));
  lf.getLock().add(l);
  Operation op = op("LockFeature", "WFS", "1.0.0", lf);
  callback.operationDispatched(new Request(), op);
  assertEquals("acme:foo", data.getResources().get(0));
}
origin: org.geoserver/gs-wfs

  /**
   *
   * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
   *
   * @generated modifiable
   */
  public Object parse(ElementInstance instance, Node node, Object value) throws Exception {
    LockType lock = wfsfactory.createLockType();

    // &lt;xsd:element maxOccurs="1" minOccurs="0" ref="ogc:Filter"/&gt;
    if (node.hasChild(Filter.class)) {
      lock.setFilter((Filter) node.getChildValue(Filter.class));
    }

    // &lt;xsd:attribute name="handle" type="xsd:string" use="optional"/&gt;
    if (node.hasAttribute("handle")) {
      lock.setHandle((String) node.getAttributeValue("handle"));
    }

    // &lt;xsd:attribute name="typeName" type="xsd:QName" use="required"/&gt;
    lock.setTypeName((QName) node.getAttributeValue("typeName"));

    return lock;
  }
}
origin: org.geoserver/gs-wfs

  /**
   *
   * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
   *
   * @generated modifiable
   */
  public Object parse(ElementInstance instance, Node node, Object value) throws Exception {
    LockType lock = wfsfactory.createLockType();

    // &lt;xsd:element maxOccurs="1" minOccurs="0" ref="ogc:Filter"/&gt;
    if (node.hasChild(Filter.class)) {
      lock.setFilter((Filter) node.getChildValue(Filter.class));
    }

    // &lt;xsd:attribute name="handle" type="xsd:string" use="optional"&gt;
    if (node.hasAttribute("handle")) {
      lock.setHandle((String) node.getAttributeValue("handle"));
    }

    // &lt;xsd:attribute name="typeName" type="xsd:QName" use="required"&gt;
    lock.setTypeName((QName) node.getAttributeValue("typeName"));

    return lock;
  }
}
net.opengis.wfsLockTypesetTypeName

Javadoc

Sets the value of the ' net.opengis.wfs.LockType#getTypeName' attribute.

Popular methods of LockType

  • set
  • setFilter
    Sets the value of the ' net.opengis.wfs.LockType#getFilter' attribute.
  • setHandle
    Sets the value of the ' net.opengis.wfs.LockType#getHandle' attribute.

Popular in Java

  • Creating JSON documents from java classes using gson
  • requestLocationUpdates (LocationManager)
  • getSupportFragmentManager (FragmentActivity)
  • getSharedPreferences (Context)
  • BorderLayout (java.awt)
    A border layout lays out a container, arranging and resizing its components to fit in five regions:
  • BufferedImage (java.awt.image)
    The BufferedImage subclass describes an java.awt.Image with an accessible buffer of image data. All
  • File (java.io)
    An "abstract" representation of a file system entity identified by a pathname. The pathname may be a
  • FileReader (java.io)
    A specialized Reader that reads from a file in the file system. All read requests made by calling me
  • Set (java.util)
    A Set is a data structure which does not allow duplicate elements.
  • JButton (javax.swing)
  • Best plugins for Eclipse
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