org.geotools.wfs.v1_0
Class QueryTypeBinding

Object
  extended by AbstractComplexBinding
      extended by AbstractComplexEMFBinding
          extended by QueryTypeBinding
              extended by QueryTypeBinding
All Implemented Interfaces:
Binding, ComplexBinding

public class QueryTypeBinding
extends QueryTypeBinding


Field Summary
 
Fields inherited from interface Binding
AFTER, BEFORE, OVERRIDE
 
Constructor Summary
QueryTypeBinding(WfsFactory factory, FilterFactory filterFactory, NamespaceContext namespaceContext)
           
 
Method Summary
 Object getProperty(Object object, QName name)
          Overrides to return the value of the "typeName" attribute as a single String instead of a List.
protected  void setProperty(EObject eObject, String property, Object value, boolean lax)
          Internal method for reflectively setting the property of an eobject.
 
Methods inherited from class QueryTypeBinding
getTarget
 
Methods inherited from class AbstractComplexEMFBinding
createEObject, getType, parse
 
Methods inherited from class AbstractComplexBinding
encode, getExecutionMode, getProperties, getProperties, initialize, initializeChildContext
 
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

QueryTypeBinding

public QueryTypeBinding(WfsFactory factory,
                        FilterFactory filterFactory,
                        NamespaceContext namespaceContext)
Method Detail

getProperty

public Object getProperty(Object object,
                          QName name)
                   throws Exception
Description copied from class: QueryTypeBinding
Overrides to return the value of the "typeName" attribute as a single String instead of a List. Otherwise typeName gets encoded as the QueryType.getTypeName() toString's value which depends on the toString implementation of the internal java.util.List.

Also, if the requested property is "SortBy" and the QueryType has an empty sortby list, returns null to avoid encoding an empty sortBy list

Specified by:
getProperty in interface ComplexBinding
Overrides:
getProperty in class QueryTypeBinding
Parameters:
object - The object being encoded.
name - The name of the property to obtain.
Returns:
The value of the property, or null.
Throws:
Exception
See Also:
ComplexBinding.getProperty(Object, QName)

setProperty

protected void setProperty(EObject eObject,
                           String property,
                           Object value,
                           boolean lax)
Description copied from class: AbstractComplexEMFBinding
Internal method for reflectively setting the property of an eobject.

Subclasses may override.

Overrides:
setProperty in class QueryTypeBinding


Copyright © 1996-2014 Geotools. All Rights Reserved.