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

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

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

Node.getChildValues介绍

[英]Helper method for access to the set of parsed child values which are instances of the specified class.
[中]用于访问指定类实例的已解析子值集的Helper方法。

代码示例

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

  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. AcceptVersionsType acceptVersions = owsfactory.createAcceptVersionsType();
  10. acceptVersions.getVersion().addAll(node.getChildValues("Version"));
  11. return acceptVersions;
  12. }
  13. }

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

  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. AcceptFormatsType acceptFormats = owsfactory.createAcceptFormatsType();
  10. acceptFormats.getOutputFormat().addAll(node.getChildValues("OutputFormat"));
  11. return acceptFormats;
  12. }
  13. }

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

  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. SectionsType sections = owsfactory.createSectionsType();
  10. sections.getSection().addAll(node.getChildValues("Section"));
  11. return sections;
  12. }
  13. }

代码示例来源: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. List l = node.getChildValues(Polygon.class);
  10. return l.toArray(new Polygon[l.size()]);
  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. List lines = node.getChildValues(LineString.class);
  10. return lines.toArray(new LineString[lines.size()]);
  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. List functions = node.getChildValues(FunctionName.class);
  10. return functions.toArray(new FunctionName[functions.size()]);
  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. // &lt;xsd:element maxOccurs="unbounded" name="SortProperty"
  10. // type="ogc:SortPropertyType"/&gt;
  11. List sortBy = node.getChildValues(SortBy.class);
  12. return sortBy.toArray(new SortBy[sortBy.size()]);
  13. }

代码示例来源: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. List points = node.getChildValues(Point.class);
  10. return (Point[]) points.toArray(new Point[points.size()]);
  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. List gops = node.getChildValues(GeometryOperand.class);
  10. return gops.toArray(new GeometryOperand[gops.size()]);
  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. List surfaces = node.getChildValues(Polygon.class);
  10. return surfaces.toArray(new Polygon[surfaces.size()]);
  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. List curves = node.getChildValues(MultiLineString.class);
  10. // pick up any regular line strings as well
  11. for (LineString l : (List<LineString>) node.getChildValues(LineString.class)) {
  12. curves.add(gf.createMultiLineString(new LineString[] {l}));
  13. }
  14. return curves.toArray(new MultiLineString[curves.size()]);
  15. }
  16. }

代码示例来源: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. List lines = node.getChildValues(LineString.class);
  10. return gFactory.createMultiLineString(
  11. (LineString[]) lines.toArray(new LineString[lines.size()]));
  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. List polys = node.getChildValues(Polygon.class);
  10. return gFactory.createMultiPolygon((Polygon[]) polys.toArray(new Polygon[polys.size()]));
  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. List sops = node.getChildValues(SpatialOperator.class);
  10. return factory.spatialOperators(
  11. (SpatialOperator[]) sops.toArray(new SpatialOperator[sops.size()]));
  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. List ops = node.getChildValues(Operator.class);
  10. return factory.comparisonOperators((Operator[]) ops.toArray(new Operator[ops.size()]));
  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. List ftc = node.getChildValues("FeatureTypeConstraint");
  10. return styleFactory.createLayerFeatureConstraints(
  11. (FeatureTypeConstraint[]) ftc.toArray(new FeatureTypeConstraint[ftc.size()]));
  12. }
  13. }

代码示例来源: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. ColorMap colorMap = styleFactory.createColorMap();
  10. List entries = (List) node.getChildValues("ColorMapEntry");
  11. for (Iterator itr = entries.iterator(); itr.hasNext(); ) {
  12. colorMap.addColorMapEntry((ColorMapEntry) itr.next());
  13. }
  14. return colorMap;
  15. }
  16. }

代码示例来源: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. ThemesType themes = factory.createThemesType();
  10. themes.getTheme().addAll(node.getChildValues("theme"));
  11. return themes;
  12. }
  13. }

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

  1. public Object parse(ElementInstance instance, Node node, Object value) {
  2. InsertResultsType resultType = wfsfactory.createInsertResultsType();
  3. for (Object featureid : node.getChildValues("FeatureId")) {
  4. if (!"none".equals(featureid.toString())) {
  5. InsertedFeatureType feature = wfsfactory.createInsertedFeatureType();
  6. feature.getFeatureId().add(featureid);
  7. resultType.getFeature().add(feature);
  8. }
  9. }
  10. return resultType;
  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. Envelope envelope = (Envelope) node.getChildValue("envelope");
  10. String body = (String) node.getChildValue("body");
  11. BigInteger id = (BigInteger) node.getAttributeValue("id");
  12. List atts = node.getChildValues("attachment");
  13. Attachment[] attachments = (Attachment[]) atts.toArray(new Attachment[atts.size()]);
  14. return new Mail(id, body, envelope, attachments);
  15. }

相关文章