本文整理了Java中org.geotools.xsd.Node.getChildValue()
方法的一些代码示例,展示了Node.getChildValue()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Node.getChildValue()
方法的具体详情如下:
包路径:org.geotools.xsd.Node
类名称: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
/**
*
* <!-- begin-user-doc -->
*
* @param value an instance of {@link GetCapabilitiesType} (possibly a subclass) if a binding
* for a specific service's GetCapabilities request used {@link Binding#BEFORE} {@link
* #getExecutionMode() execution mode}, and thus relies on this binding to fill the common
* properties. <code>null</code> otherwise.
* <!-- end-user-doc -->
* @generated modifiable
*/
public Object parse(ElementInstance instance, Node node, Object value) throws Exception {
GetCapabilitiesType getCapabilities;
if ((value != null) && value instanceof GetCapabilitiesType) {
getCapabilities = (GetCapabilitiesType) value;
} else {
getCapabilities = owsfactory.createGetCapabilitiesType();
}
getCapabilities.setAcceptVersions(
(AcceptVersionsType) node.getChildValue(AcceptVersionsType.class));
getCapabilities.setSections((SectionsType) node.getChildValue(SectionsType.class));
getCapabilities.setAcceptFormats(
(AcceptFormatsType) node.getChildValue(AcceptFormatsType.class));
getCapabilities.setUpdateSequence((String) node.getAttributeValue("updateSequence"));
return getCapabilities;
}
}
代码示例来源:origin: geotools/geotools
/**
*
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
*
* @generated modifiable
*/
public Object parse(ElementInstance instance, Node node, Object value) throws Exception {
return node.getChildValue(SimpleFeature.class);
// TODO: xlink and remoteSchema attributes, hard to do because of streaming
}
代码示例来源:origin: geotools/geotools
/**
*
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
*
* @generated modifiable
*/
public Object parse(ElementInstance instance, Node node, Object value) throws Exception {
return node.getChildValue(Expression.class);
}
代码示例来源:origin: geotools/geotools
/**
*
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
*
* @generated modifiable
*/
public Object parse(ElementInstance instance, Node node, Object value) throws Exception {
return node.getChildValue("Graphic");
}
}
代码示例来源:origin: geotools/geotools
/**
*
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
*
* @generated modifiable
*/
public Object parse(ElementInstance instance, Node node, Object value) throws Exception {
return node.getChildValue(Instant.class);
}
}
代码示例来源:origin: geotools/geotools
/**
*
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
*
* @generated modifiable
*/
public Object parse(ElementInstance instance, Node node, Object value) throws Exception {
return node.getChildValue(LinearRing.class);
}
代码示例来源:origin: geotools/geotools
/**
*
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
*
* @generated modifiable
*/
public Object parse(ElementInstance instance, Node node, Object value) throws Exception {
return node.getChildValue(Feature.class);
}
代码示例来源:origin: geotools/geotools
/**
*
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
*
* @generated modifiable
*/
public Object parse(ElementInstance instance, Node node, Object value) throws Exception {
return node.getChildValue(Graphic.class);
}
}
代码示例来源:origin: geotools/geotools
/**
*
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
*
* @generated modifiable
*/
public Object parse(ElementInstance instance, Node node, Object value) throws Exception {
return node.getChildValue(0);
}
}
代码示例来源:origin: geotools/geotools
/**
*
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
*
* @generated modifiable
*/
public Object parse(ElementInstance instance, Node node, Object value) throws Exception {
return node.getChildValue(Point.class);
}
代码示例来源:origin: geotools/geotools
/**
*
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
*
* @generated modifiable
*/
public Object parse(ElementInstance instance, Node node, Object value) throws Exception {
return node.getChildValue(GeometryCollection.class);
}
代码示例来源:origin: geotools/geotools
/**
*
* <!-- begin-user-doc -->
* Returns an object of type @link LineString
* <!-- end-user-doc -->
*
* @generated modifiable
*/
public Object parse(ElementInstance instance, Node node, Object value) throws Exception {
return node.getChildValue(LineString.class);
}
代码示例来源:origin: geotools/geotools
/**
*
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
*
* @generated modifiable
*/
public Object parse(ElementInstance instance, Node node, Object value) throws Exception {
return node.getChildValue(MultiLineString.class);
}
代码示例来源:origin: geotools/geotools
/**
*
* <!-- begin-user-doc -->
* This object returns an object of type @link org.locationtech.jts.geom.Polygon
* <!-- end-user-doc -->
*
* @generated modifiable
*/
public Object parse(ElementInstance instance, Node node, Object value) throws Exception {
return node.getChildValue(Polygon.class);
}
代码示例来源:origin: geotools/geotools
@Override
public Object parse(ElementInstance instance, Node node, Object value) throws Exception {
Polygon polygon = (Polygon) node.getChildValue(Polygon.class);
MultiPolygon surface = (MultiPolygon) node.getChildValue(MultiPolygon.class);
if (polygon != null) {
return gf.createMultiPolygon(new Polygon[] {polygon});
} else {
return surface;
}
}
代码示例来源:origin: geotools/geotools
/**
*
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
*
* @generated modifiable
*/
public Object parse(ElementInstance instance, Node node, Object value) throws Exception {
return filterfactory.add(
(Expression) node.getChildValue(0), (Expression) node.getChildValue(1));
}
}
代码示例来源:origin: geotools/geotools
/**
*
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
*
* @generated modifiable
*/
public Object parse(ElementInstance instance, Node node, Object value) throws Exception {
return filterfactory.multiply(
(Expression) node.getChildValue(0), (Expression) node.getChildValue(1));
}
}
代码示例来源:origin: geotools/geotools
/**
*
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
*
* @generated modifiable
*/
public Object parse(ElementInstance instance, Node node, Object value) throws Exception {
return filterfactory.divide(
(Expression) node.getChildValue(0), (Expression) node.getChildValue(1));
}
}
代码示例来源:origin: geotools/geotools
/**
*
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
*
* @generated modifiable
*/
public Object parse(ElementInstance instance, Node node, Object value) throws Exception {
return factory.isNull((Expression) node.getChildValue(Expression.class));
}
代码示例来源:origin: geotools/geotools
/**
*
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
*
* @generated modifiable
*/
public Object parse(ElementInstance instance, Node node, Object value) throws Exception {
Expression e = (Expression) node.getChildValue("StringValue");
return filterFactory.function("strLength", e);
}
}
内容来源于网络,如有侵权,请联系作者删除!