sectionstypebinding.java
来自「电子地图服务器,搭建自己的地图服务」· Java 代码 · 共 74 行
JAVA
74 行
/* Copyright (c) 2001 - 2007 TOPP - www.openplans.org. All rights reserved.
* This code is licensed under the GPL 2.0 license, availible at the root
* application directory.
*/
package org.geoserver.ows.xml.v1_0;
import net.opengis.ows.OwsFactory;
import net.opengis.ows.SectionsType;
import org.geotools.xml.AbstractComplexBinding;
import org.geotools.xml.ElementInstance;
import org.geotools.xml.Node;
import javax.xml.namespace.QName;
/**
* Binding object for the type http://www.opengis.net/ows:SectionsType.
*
* <p>
* <pre>
* <code>
* <complexType name="SectionsType">
* <annotation>
* <documentation>Unordered list of zero or more names of requested sections in complete service metadata document. Each Section value shall contain an allowed section name as specified by each OWS specification. See Sections parameter subclause for more information. </documentation>
* </annotation>
* <sequence>
* <element maxOccurs="unbounded" minOccurs="0" name="Section" type="string"/>
* </sequence>
* </complexType>
*
* </code>
* </pre>
* </p>
*
* @generated
*/
public class SectionsTypeBinding extends AbstractComplexBinding {
OwsFactory owsfactory;
public SectionsTypeBinding(OwsFactory owsfactory) {
this.owsfactory = owsfactory;
}
/**
* @generated
*/
public QName getTarget() {
return OWS.SECTIONSTYPE;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
*
* @generated modifiable
*/
public Class getType() {
return SectionsType.class;
}
/**
* <!-- 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;
}
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?