org.geotools.xsd.Node.getChildValue()方法的使用及代码示例

x33g5p2x  于2022-01-25 转载在 其他  
字(6.7k)|赞(0)|评价(0)|浏览(148)

本文整理了Java中org.geotools.xsd.Node.getChildValue()方法的一些代码示例,展示了Node.getChildValue()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Node.getChildValue()方法的具体详情如下:
包路径:org.geotools.xsd.Node
类名称:Node
方法名:getChildValue

Node.getChildValue介绍

[英]Helper method for access to child's parsed contents.

Should be in the range of getChildren().size()

Simple helper method for the contents of getChildren: return ((Node)getChildren.get( index )).getValue();
[中]用于访问子级解析内容的帮助器方法。
应在getChildren()的范围内。大小()
getChildren内容的简单助手方法:return ((Node)getChildren.get( index )).getValue();

代码示例

代码示例来源:origin: geoserver/geoserver

  1. /**
  2. *
  3. * <!-- begin-user-doc -->
  4. *
  5. * @param value an instance of {@link GetCapabilitiesType} (possibly a subclass) if a binding
  6. * for a specific service's GetCapabilities request used {@link Binding#BEFORE} {@link
  7. * #getExecutionMode() execution mode}, and thus relies on this binding to fill the common
  8. * properties. <code>null</code> otherwise.
  9. * <!-- end-user-doc -->
  10. * @generated modifiable
  11. */
  12. public Object parse(ElementInstance instance, Node node, Object value) throws Exception {
  13. GetCapabilitiesType getCapabilities;
  14. if ((value != null) && value instanceof GetCapabilitiesType) {
  15. getCapabilities = (GetCapabilitiesType) value;
  16. } else {
  17. getCapabilities = owsfactory.createGetCapabilitiesType();
  18. }
  19. getCapabilities.setAcceptVersions(
  20. (AcceptVersionsType) node.getChildValue(AcceptVersionsType.class));
  21. getCapabilities.setSections((SectionsType) node.getChildValue(SectionsType.class));
  22. getCapabilities.setAcceptFormats(
  23. (AcceptFormatsType) node.getChildValue(AcceptFormatsType.class));
  24. getCapabilities.setUpdateSequence((String) node.getAttributeValue("updateSequence"));
  25. return getCapabilities;
  26. }
  27. }

代码示例来源:origin: geotools/geotools

  1. /**
  2. *
  3. * <!-- begin-user-doc -->
  4. * <!-- end-user-doc -->
  5. *
  6. * @generated modifiable
  7. */
  8. public Object parse(ElementInstance instance, Node node, Object value) throws Exception {
  9. return node.getChildValue(SimpleFeature.class);
  10. // TODO: xlink and remoteSchema attributes, hard to do because of streaming
  11. }

代码示例来源:origin: geotools/geotools

  1. /**
  2. *
  3. * <!-- begin-user-doc -->
  4. * <!-- end-user-doc -->
  5. *
  6. * @generated modifiable
  7. */
  8. public Object parse(ElementInstance instance, Node node, Object value) throws Exception {
  9. return node.getChildValue(Expression.class);
  10. }

代码示例来源:origin: geotools/geotools

  1. /**
  2. *
  3. * <!-- begin-user-doc -->
  4. * <!-- end-user-doc -->
  5. *
  6. * @generated modifiable
  7. */
  8. public Object parse(ElementInstance instance, Node node, Object value) throws Exception {
  9. return node.getChildValue("Graphic");
  10. }
  11. }

代码示例来源:origin: geotools/geotools

  1. /**
  2. *
  3. * <!-- begin-user-doc -->
  4. * <!-- end-user-doc -->
  5. *
  6. * @generated modifiable
  7. */
  8. public Object parse(ElementInstance instance, Node node, Object value) throws Exception {
  9. return node.getChildValue(Instant.class);
  10. }
  11. }

代码示例来源:origin: geotools/geotools

  1. /**
  2. *
  3. * <!-- begin-user-doc -->
  4. * <!-- end-user-doc -->
  5. *
  6. * @generated modifiable
  7. */
  8. public Object parse(ElementInstance instance, Node node, Object value) throws Exception {
  9. return node.getChildValue(LinearRing.class);
  10. }

代码示例来源:origin: geotools/geotools

  1. /**
  2. *
  3. * <!-- begin-user-doc -->
  4. * <!-- end-user-doc -->
  5. *
  6. * @generated modifiable
  7. */
  8. public Object parse(ElementInstance instance, Node node, Object value) throws Exception {
  9. return node.getChildValue(Feature.class);
  10. }

代码示例来源:origin: geotools/geotools

  1. /**
  2. *
  3. * <!-- begin-user-doc -->
  4. * <!-- end-user-doc -->
  5. *
  6. * @generated modifiable
  7. */
  8. public Object parse(ElementInstance instance, Node node, Object value) throws Exception {
  9. return node.getChildValue(Graphic.class);
  10. }
  11. }

代码示例来源:origin: geotools/geotools

  1. /**
  2. *
  3. * <!-- begin-user-doc -->
  4. * <!-- end-user-doc -->
  5. *
  6. * @generated modifiable
  7. */
  8. public Object parse(ElementInstance instance, Node node, Object value) throws Exception {
  9. return node.getChildValue(0);
  10. }
  11. }

代码示例来源:origin: geotools/geotools

  1. /**
  2. *
  3. * <!-- begin-user-doc -->
  4. * <!-- end-user-doc -->
  5. *
  6. * @generated modifiable
  7. */
  8. public Object parse(ElementInstance instance, Node node, Object value) throws Exception {
  9. return node.getChildValue(Point.class);
  10. }

代码示例来源:origin: geotools/geotools

  1. /**
  2. *
  3. * <!-- begin-user-doc -->
  4. * <!-- end-user-doc -->
  5. *
  6. * @generated modifiable
  7. */
  8. public Object parse(ElementInstance instance, Node node, Object value) throws Exception {
  9. return node.getChildValue(GeometryCollection.class);
  10. }

代码示例来源:origin: geotools/geotools

  1. /**
  2. *
  3. * <!-- begin-user-doc -->
  4. * Returns an object of type @link LineString
  5. * <!-- end-user-doc -->
  6. *
  7. * @generated modifiable
  8. */
  9. public Object parse(ElementInstance instance, Node node, Object value) throws Exception {
  10. return node.getChildValue(LineString.class);
  11. }

代码示例来源:origin: geotools/geotools

  1. /**
  2. *
  3. * <!-- begin-user-doc -->
  4. * <!-- end-user-doc -->
  5. *
  6. * @generated modifiable
  7. */
  8. public Object parse(ElementInstance instance, Node node, Object value) throws Exception {
  9. return node.getChildValue(MultiLineString.class);
  10. }

代码示例来源:origin: geotools/geotools

  1. /**
  2. *
  3. * <!-- begin-user-doc -->
  4. * This object returns an object of type @link org.locationtech.jts.geom.Polygon
  5. * <!-- end-user-doc -->
  6. *
  7. * @generated modifiable
  8. */
  9. public Object parse(ElementInstance instance, Node node, Object value) throws Exception {
  10. return node.getChildValue(Polygon.class);
  11. }

代码示例来源:origin: geotools/geotools

  1. @Override
  2. public Object parse(ElementInstance instance, Node node, Object value) throws Exception {
  3. Polygon polygon = (Polygon) node.getChildValue(Polygon.class);
  4. MultiPolygon surface = (MultiPolygon) node.getChildValue(MultiPolygon.class);
  5. if (polygon != null) {
  6. return gf.createMultiPolygon(new Polygon[] {polygon});
  7. } else {
  8. return surface;
  9. }
  10. }

代码示例来源:origin: geotools/geotools

  1. /**
  2. *
  3. * <!-- begin-user-doc -->
  4. * <!-- end-user-doc -->
  5. *
  6. * @generated modifiable
  7. */
  8. public Object parse(ElementInstance instance, Node node, Object value) throws Exception {
  9. return filterfactory.add(
  10. (Expression) node.getChildValue(0), (Expression) node.getChildValue(1));
  11. }
  12. }

代码示例来源:origin: geotools/geotools

  1. /**
  2. *
  3. * <!-- begin-user-doc -->
  4. * <!-- end-user-doc -->
  5. *
  6. * @generated modifiable
  7. */
  8. public Object parse(ElementInstance instance, Node node, Object value) throws Exception {
  9. return filterfactory.multiply(
  10. (Expression) node.getChildValue(0), (Expression) node.getChildValue(1));
  11. }
  12. }

代码示例来源:origin: geotools/geotools

  1. /**
  2. *
  3. * <!-- begin-user-doc -->
  4. * <!-- end-user-doc -->
  5. *
  6. * @generated modifiable
  7. */
  8. public Object parse(ElementInstance instance, Node node, Object value) throws Exception {
  9. return filterfactory.divide(
  10. (Expression) node.getChildValue(0), (Expression) node.getChildValue(1));
  11. }
  12. }

代码示例来源:origin: geotools/geotools

  1. /**
  2. *
  3. * <!-- begin-user-doc -->
  4. * <!-- end-user-doc -->
  5. *
  6. * @generated modifiable
  7. */
  8. public Object parse(ElementInstance instance, Node node, Object value) throws Exception {
  9. return factory.isNull((Expression) node.getChildValue(Expression.class));
  10. }

代码示例来源:origin: geotools/geotools

  1. /**
  2. *
  3. * <!-- begin-user-doc -->
  4. * <!-- end-user-doc -->
  5. *
  6. * @generated modifiable
  7. */
  8. public Object parse(ElementInstance instance, Node node, Object value) throws Exception {
  9. Expression e = (Expression) node.getChildValue("StringValue");
  10. return filterFactory.function("strLength", e);
  11. }
  12. }

相关文章