Class WFSBindingUtils


  • public class WFSBindingUtils
    extends Object
    Utility class to be used by bindings.
    Author:
    Justin Deoliveira, The Open Planning Project, jdeolive@openplans.org
    • Constructor Summary

      Constructors 
      Constructor Description
      WFSBindingUtils()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static BigInteger asBigInteger​(Number number)  
      static void outputFormat​(EObject object, Node node, String defalt)
      Sets the outputFormat feature of the object passed in.
      static void service​(EObject object, Node node)
      Sets the service feature of the object passed in.
      static void version​(EObject object, Node node)
      Sets the version feature of the object passed in.
      • Methods inherited from class Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • WFSBindingUtils

        public WFSBindingUtils()
    • Method Detail

      • service

        public static void service​(EObject object,
                                   Node node)
        Sets the service feature of the object passed in.

        The service value is retreived as an attribute from the node, if null, the default "WFS" is used.

        Parameters:
        object - An object which contains a feature named "service"
        node - The parse node.
      • version

        public static void version​(EObject object,
                                   Node node)
        Sets the version feature of the object passed in.

        The version value is retreived as an attribute from the node, if null, the default "1.0.0" is used.

        Parameters:
        object - An object which contains a feature named "version"
        node - The parse node.
      • outputFormat

        public static void outputFormat​(EObject object,
                                        Node node,
                                        String defalt)
        Sets the outputFormat feature of the object passed in.

        The outputFormat value is retreived as an attribute from the node, if null, the default default is used.

        Parameters:
        object - An object which contains a feature named "version"
        node - The parse node.
      • asBigInteger

        public static BigInteger asBigInteger​(Number number)
        Parameters:
        number - A number
        Returns:
        The number as a BigInteger.