public class FeatureTypeBinding extends AbstractComplexBinding
<complexType abstract="true" name="FeatureType">
<complexContent>
<extension base="kml:ObjectType">
<sequence>
<element minOccurs="0" name="name" type="string"/>
<element default="1" minOccurs="0" name="visibility" type="boolean"/>
<element default="1" minOccurs="0" name="open" type="boolean"/>
<element minOccurs="0" name="address" type="string"/>
<element minOccurs="0" name="phoneNumber" type="string"/>
<element minOccurs="0" name="Snippet" type="kml:SnippetType"/>
<element minOccurs="0" name="description" type="string"/>
<element minOccurs="0" ref="kml:LookAt"/>
<element minOccurs="0" ref="kml:TimePrimitive"/>
<element minOccurs="0" ref="kml:styleUrl"/>
<element maxOccurs="unbounded" minOccurs="0" ref="kml:StyleSelector"/>
<element minOccurs="0" ref="kml:Region"/>
<element minOccurs="0" name="Metadata" type="kml:MetadataType"/>
</sequence>
</extension>
</complexContent>
</complexType>
Modifier and Type | Field and Description |
---|---|
protected static SimpleFeatureType |
FeatureType
base feature type for kml features, used when no Schema element is specified
|
Constructor and Description |
---|
FeatureTypeBinding(StyleMap styleMap,
FolderStack folderStack,
SchemaRegistry schemaRegistry) |
Modifier and Type | Method and Description |
---|---|
Object |
getProperty(Object object,
QName name)
Subclasses should override this method if need be, the default implementation returns
null . |
QName |
getTarget() |
Class |
getType() |
Object |
parse(ElementInstance instance,
Node node,
Object value) |
encode, getExecutionMode, getProperties, initialize, initializeChildContext
protected static final SimpleFeatureType FeatureType
public FeatureTypeBinding(StyleMap styleMap, FolderStack folderStack, SchemaRegistry schemaRegistry)
public QName getTarget()
public Class getType()
public Object parse(ElementInstance instance, Node node, Object value) throws Exception
parse
in interface ComplexBinding
parse
in class AbstractComplexBinding
instance
- The element being parsed.node
- The node in the parse tree representing the element being parsed.value
- The result of the parse from another strategy in the type hierarchy. Could be
null if this is the first strategy being executed.Exception
- Strategy objects should not attempt to handle any exceptions.public Object getProperty(Object object, QName name) throws Exception
AbstractComplexBinding
null
.getProperty
in interface ComplexBinding
getProperty
in class AbstractComplexBinding
object
- The object being encoded.name
- The name of the property to obtain.null
.Exception
ComplexBinding.getProperty(Object, QName)
Copyright © 1996–2023 Geotools. All rights reserved.