本文整理了Java中org.geotools.xsd.Node.getChildValues()
方法的一些代码示例,展示了Node.getChildValues()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Node.getChildValues()
方法的具体详情如下:
包路径:org.geotools.xsd.Node
类名称:Node
方法名:getChildValues
[英]Helper method for access to the set of parsed child values which are instances of the specified class.
[中]用于访问指定类实例的已解析子值集的Helper方法。
代码示例来源:origin: geoserver/geoserver
/**
*
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
*
* @generated modifiable
*/
public Object parse(ElementInstance instance, Node node, Object value) throws Exception {
AcceptVersionsType acceptVersions = owsfactory.createAcceptVersionsType();
acceptVersions.getVersion().addAll(node.getChildValues("Version"));
return acceptVersions;
}
}
代码示例来源:origin: geoserver/geoserver
/**
*
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
*
* @generated modifiable
*/
public Object parse(ElementInstance instance, Node node, Object value) throws Exception {
AcceptFormatsType acceptFormats = owsfactory.createAcceptFormatsType();
acceptFormats.getOutputFormat().addAll(node.getChildValues("OutputFormat"));
return acceptFormats;
}
}
代码示例来源:origin: geoserver/geoserver
/**
*
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
*
* @generated modifiable
*/
public Object parse(ElementInstance instance, Node node, Object value) throws Exception {
SectionsType sections = owsfactory.createSectionsType();
sections.getSection().addAll(node.getChildValues("Section"));
return sections;
}
}
代码示例来源:origin: geotools/geotools
/**
*
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
*
* @generated modifiable
*/
public Object parse(ElementInstance instance, Node node, Object value) throws Exception {
List l = node.getChildValues(Polygon.class);
return l.toArray(new Polygon[l.size()]);
}
代码示例来源:origin: geotools/geotools
/**
*
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
*
* @generated modifiable
*/
public Object parse(ElementInstance instance, Node node, Object value) throws Exception {
List lines = node.getChildValues(LineString.class);
return lines.toArray(new LineString[lines.size()]);
}
代码示例来源:origin: geotools/geotools
/**
*
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
*
* @generated modifiable
*/
public Object parse(ElementInstance instance, Node node, Object value) throws Exception {
List functions = node.getChildValues(FunctionName.class);
return functions.toArray(new FunctionName[functions.size()]);
}
代码示例来源:origin: geotools/geotools
/**
*
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
*
* @generated modifiable
*/
public Object parse(ElementInstance instance, Node node, Object value) throws Exception {
// <xsd:element maxOccurs="unbounded" name="SortProperty"
// type="ogc:SortPropertyType"/>
List sortBy = node.getChildValues(SortBy.class);
return sortBy.toArray(new SortBy[sortBy.size()]);
}
代码示例来源:origin: geotools/geotools
/**
*
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
*
* @generated modifiable
*/
public Object parse(ElementInstance instance, Node node, Object value) throws Exception {
List points = node.getChildValues(Point.class);
return (Point[]) points.toArray(new Point[points.size()]);
}
}
代码示例来源:origin: geotools/geotools
/**
*
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
*
* @generated modifiable
*/
public Object parse(ElementInstance instance, Node node, Object value) throws Exception {
List gops = node.getChildValues(GeometryOperand.class);
return gops.toArray(new GeometryOperand[gops.size()]);
}
代码示例来源:origin: geotools/geotools
/**
*
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
*
* @generated modifiable
*/
public Object parse(ElementInstance instance, Node node, Object value) throws Exception {
List surfaces = node.getChildValues(Polygon.class);
return surfaces.toArray(new Polygon[surfaces.size()]);
}
}
代码示例来源:origin: geotools/geotools
/**
*
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
*
* @generated modifiable
*/
public Object parse(ElementInstance instance, Node node, Object value) throws Exception {
List curves = node.getChildValues(MultiLineString.class);
// pick up any regular line strings as well
for (LineString l : (List<LineString>) node.getChildValues(LineString.class)) {
curves.add(gf.createMultiLineString(new LineString[] {l}));
}
return curves.toArray(new MultiLineString[curves.size()]);
}
}
代码示例来源:origin: geotools/geotools
/**
*
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
*
* @generated modifiable
*/
public Object parse(ElementInstance instance, Node node, Object value) throws Exception {
List lines = node.getChildValues(LineString.class);
return gFactory.createMultiLineString(
(LineString[]) lines.toArray(new LineString[lines.size()]));
}
代码示例来源:origin: geotools/geotools
/**
*
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
*
* @generated modifiable
*/
public Object parse(ElementInstance instance, Node node, Object value) throws Exception {
List polys = node.getChildValues(Polygon.class);
return gFactory.createMultiPolygon((Polygon[]) polys.toArray(new Polygon[polys.size()]));
}
代码示例来源:origin: geotools/geotools
/**
*
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
*
* @generated modifiable
*/
public Object parse(ElementInstance instance, Node node, Object value) throws Exception {
List sops = node.getChildValues(SpatialOperator.class);
return factory.spatialOperators(
(SpatialOperator[]) sops.toArray(new SpatialOperator[sops.size()]));
}
代码示例来源:origin: geotools/geotools
/**
*
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
*
* @generated modifiable
*/
public Object parse(ElementInstance instance, Node node, Object value) throws Exception {
List ops = node.getChildValues(Operator.class);
return factory.comparisonOperators((Operator[]) ops.toArray(new Operator[ops.size()]));
}
代码示例来源:origin: geotools/geotools
/**
*
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
*
* @generated modifiable
*/
public Object parse(ElementInstance instance, Node node, Object value) throws Exception {
List ftc = node.getChildValues("FeatureTypeConstraint");
return styleFactory.createLayerFeatureConstraints(
(FeatureTypeConstraint[]) ftc.toArray(new FeatureTypeConstraint[ftc.size()]));
}
}
代码示例来源:origin: geotools/geotools
/**
*
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
*
* @generated modifiable
*/
public Object parse(ElementInstance instance, Node node, Object value) throws Exception {
ColorMap colorMap = styleFactory.createColorMap();
List entries = (List) node.getChildValues("ColorMapEntry");
for (Iterator itr = entries.iterator(); itr.hasNext(); ) {
colorMap.addColorMapEntry((ColorMapEntry) itr.next());
}
return colorMap;
}
}
代码示例来源:origin: geotools/geotools
/**
*
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
*
* @generated modifiable
*/
public Object parse(ElementInstance instance, Node node, Object value) throws Exception {
ThemesType themes = factory.createThemesType();
themes.getTheme().addAll(node.getChildValues("theme"));
return themes;
}
}
代码示例来源:origin: geotools/geotools
public Object parse(ElementInstance instance, Node node, Object value) {
InsertResultsType resultType = wfsfactory.createInsertResultsType();
for (Object featureid : node.getChildValues("FeatureId")) {
if (!"none".equals(featureid.toString())) {
InsertedFeatureType feature = wfsfactory.createInsertedFeatureType();
feature.getFeatureId().add(featureid);
resultType.getFeature().add(feature);
}
}
return resultType;
}
代码示例来源:origin: geotools/geotools
/**
*
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
*
* @generated modifiable
*/
public Object parse(ElementInstance instance, Node node, Object value) throws Exception {
Envelope envelope = (Envelope) node.getChildValue("envelope");
String body = (String) node.getChildValue("body");
BigInteger id = (BigInteger) node.getAttributeValue("id");
List atts = node.getChildValues("attachment");
Attachment[] attachments = (Attachment[]) atts.toArray(new Attachment[atts.size()]);
return new Mail(id, body, envelope, attachments);
}
内容来源于网络,如有侵权,请联系作者删除!