<?xml version="1.0" encoding="iso-8859-1"?>
<module name="Ft.Rdf.Parsers.Versa.DataTypes" file="/work/a/ports/textproc/py-4suite/work/4Suite-1.0b1/build/lib.freebsd-8.0-RELEASE-p2-i386-2.4/Ft/Rdf/Parsers/Versa/DataTypes.py">
  <modification-date>2005-02-26 01:18:34</modification-date>
  <abstract>Data type checking, conversion and ordering for Versa</abstract>
  <description>Copyright 2005 Fourthought, Inc. (USA).
Detailed license and copyright information: http://4suite.org/COPYRIGHT
Project home, documentation, distributions: http://4suite.org/</description>
  <classes>
    <class name="NumberFunction" public="yes">
      <bases>
      </bases>
      <abstract>Create a new number</abstract>
      <description/>
      <method-resolution-order>
        <base name="NumberFunction" module="Ft.Rdf.Parsers.Versa.DataTypes"/>
      </method-resolution-order>
      <methods documented="yes" class="NumberFunction" module="Ft.Rdf.Parsers.Versa.DataTypes" inherited="no">
        <method public="no" name="__init__" id="NumberFunction-__init__">
          <abstract/>
          <description/>
          <arguments>
            <arg name="self"/>
            <arg name="args"/>
          </arguments>
        </method>
        <method public="yes" name="evaluate" id="NumberFunction-evaluate">
          <abstract/>
          <description/>
          <arguments>
            <arg name="self"/>
            <arg name="con"/>
          </arguments>
        </method>
      </methods>
    </class>
    <class name="Resource" public="yes">
      <bases>
        <base documented="no" class="unicode" module="__builtin__"/>
      </bases>
      <abstract/>
      <description/>
      <method-resolution-order>
        <base name="Resource" module="Ft.Rdf.Parsers.Versa.DataTypes"/>
        <base name="unicode" module="__builtin__"/>
        <base name="basestring" module="__builtin__"/>
        <base name="object" module="__builtin__"/>
      </method-resolution-order>
      <methods documented="yes" class="Resource" module="Ft.Rdf.Parsers.Versa.DataTypes" inherited="no">
        <method public="no" name="__init__" id="Resource-__init__">
          <abstract/>
          <description/>
          <arguments>
            <arg name="self"/>
            <arg name="s"/>
          </arguments>
          <overrides name="unicode" module="__builtin__"/>
        </method>
      </methods>
      <fields documented="yes" class="Resource" module="Ft.Rdf.Parsers.Versa.DataTypes" inherited="no">
        <field public="no" name="__dict__" id="Resource-__dict__">
          <abstract>dictionary for instance variables (if defined)</abstract>
          <description/>
          <value>&lt;attribute '__dict__' of 'Resource' objects&gt;</value>
        </field>
        <field public="no" name="__weakref__" id="Resource-__weakref__">
          <abstract>list of weak references to the object (if defined)</abstract>
          <description/>
          <value>&lt;attribute '__weakref__' of 'Resource' objects&gt;</value>
        </field>
      </fields>
      <methods documented="no" class="unicode" module="__builtin__" inherited="yes">
        <member-reference name="__add__" public="no"/>
        <member-reference name="__cmp__" public="no"/>
        <member-reference name="__contains__" public="no"/>
        <member-reference name="__getattribute__" public="no"/>
        <member-reference name="__getitem__" public="no"/>
        <member-reference name="__getnewargs__" public="no"/>
        <member-reference name="__getslice__" public="no"/>
        <member-reference name="__hash__" public="no"/>
        <member-reference name="__len__" public="no"/>
        <member-reference name="__mod__" public="no"/>
        <member-reference name="__mul__" public="no"/>
        <member-reference name="__new__" public="no"/>
        <member-reference name="__repr__" public="no"/>
        <member-reference name="__rmod__" public="no"/>
        <member-reference name="__rmul__" public="no"/>
        <member-reference name="__str__" public="no"/>
        <member-reference name="capitalize" public="yes"/>
        <member-reference name="center" public="yes"/>
        <member-reference name="count" public="yes"/>
        <member-reference name="decode" public="yes"/>
        <member-reference name="encode" public="yes"/>
        <member-reference name="endswith" public="yes"/>
        <member-reference name="expandtabs" public="yes"/>
        <member-reference name="find" public="yes"/>
        <member-reference name="index" public="yes"/>
        <member-reference name="isalnum" public="yes"/>
        <member-reference name="isalpha" public="yes"/>
        <member-reference name="isdecimal" public="yes"/>
        <member-reference name="isdigit" public="yes"/>
        <member-reference name="islower" public="yes"/>
        <member-reference name="isnumeric" public="yes"/>
        <member-reference name="isspace" public="yes"/>
        <member-reference name="istitle" public="yes"/>
        <member-reference name="isupper" public="yes"/>
        <member-reference name="join" public="yes"/>
        <member-reference name="ljust" public="yes"/>
        <member-reference name="lower" public="yes"/>
        <member-reference name="lstrip" public="yes"/>
        <member-reference name="replace" public="yes"/>
        <member-reference name="rfind" public="yes"/>
        <member-reference name="rindex" public="yes"/>
        <member-reference name="rjust" public="yes"/>
        <member-reference name="rsplit" public="yes"/>
        <member-reference name="rstrip" public="yes"/>
        <member-reference name="split" public="yes"/>
        <member-reference name="splitlines" public="yes"/>
        <member-reference name="startswith" public="yes"/>
        <member-reference name="strip" public="yes"/>
        <member-reference name="swapcase" public="yes"/>
        <member-reference name="title" public="yes"/>
        <member-reference name="translate" public="yes"/>
        <member-reference name="upper" public="yes"/>
        <member-reference name="zfill" public="yes"/>
      </methods>
      <methods documented="no" class="object" module="__builtin__" inherited="yes">
        <member-reference name="__delattr__" public="no"/>
        <member-reference name="__reduce__" public="no"/>
        <member-reference name="__reduce_ex__" public="no"/>
        <member-reference name="__setattr__" public="no"/>
      </methods>
      <fields documented="no" class="object" module="__builtin__" inherited="yes">
        <member-reference name="__class__" public="no"/>
      </fields>
    </class>
    <class name="Set" public="yes">
      <bases>
      </bases>
      <abstract>#FIXME: Implement more efficiently</abstract>
      <description/>
      <method-resolution-order>
        <base name="Set" module="Ft.Rdf.Parsers.Versa.DataTypes"/>
      </method-resolution-order>
      <methods documented="yes" class="Set" module="Ft.Rdf.Parsers.Versa.DataTypes" inherited="no">
        <method public="no" name="__add__" id="Set-__add__">
          <abstract>#__get/set/delitem__ &amp;  __get/set/delslice__ are shaky ground without 2.2 iterators</abstract>
          <description/>
          <arguments>
            <arg name="self"/>
            <arg name="other"/>
          </arguments>
        </method>
        <method public="no" name="__cmp__" id="Set-__cmp__">
          <abstract/>
          <description/>
          <arguments>
            <arg name="self"/>
            <arg name="other"/>
          </arguments>
        </method>
        <method public="no" name="__hash__" id="Set-__hash__">
          <abstract>#FIXME: should be updated to match comparison rules</abstract>
          <description/>
          <arguments>
            <arg name="self"/>
          </arguments>
        </method>
        <method public="no" name="__init__" id="Set-__init__">
          <abstract/>
          <description/>
          <arguments>
            <arg name="self"/>
            <arg default="None" name="l"/>
          </arguments>
        </method>
        <method public="no" name="__len__" id="Set-__len__">
          <abstract/>
          <description/>
          <arguments>
            <arg name="self"/>
          </arguments>
        </method>
        <method public="no" realid="Set-__add__" name="__radd__" realname="__add__" id="Set-__radd__">
          <abstract>#__get/set/delitem__ &amp;  __get/set/delslice__ are shaky ground without 2.2 iterators</abstract>
          <description/>
          <arguments>
            <arg name="self"/>
            <arg name="other"/>
          </arguments>
        </method>
        <method public="no" name="__repr__" id="Set-__repr__">
          <abstract/>
          <description/>
          <arguments>
            <arg name="self"/>
          </arguments>
        </method>
        <method public="yes" name="append" id="Set-append">
          <abstract/>
          <description/>
          <arguments>
            <arg name="self"/>
            <arg name="item"/>
          </arguments>
        </method>
        <method public="yes" name="remove" id="Set-remove">
          <abstract/>
          <description/>
          <arguments>
            <arg name="self"/>
            <arg name="item"/>
          </arguments>
        </method>
      </methods>
    </class>
    <class name="StringFunction" public="yes">
      <bases>
      </bases>
      <abstract>Create a new string</abstract>
      <description/>
      <method-resolution-order>
        <base name="StringFunction" module="Ft.Rdf.Parsers.Versa.DataTypes"/>
      </method-resolution-order>
      <methods documented="yes" class="StringFunction" module="Ft.Rdf.Parsers.Versa.DataTypes" inherited="no">
        <method public="no" name="__init__" id="StringFunction-__init__">
          <abstract/>
          <description/>
          <arguments>
            <arg name="self"/>
            <arg name="args"/>
          </arguments>
        </method>
        <method public="yes" name="evaluate" id="StringFunction-evaluate">
          <abstract/>
          <description/>
          <arguments>
            <arg name="self"/>
            <arg name="con"/>
          </arguments>
        </method>
      </methods>
    </class>
  </classes>
  <functions>
    <function public="yes" name="Cmp" id="Cmp">
      <abstract/>
      <description/>
      <arguments>
        <arg name="a"/>
        <arg name="b"/>
      </arguments>
    </function>
    <function public="yes" name="CmpBoolean" id="CmpBoolean">
      <abstract/>
      <description/>
      <arguments>
        <arg name="a"/>
        <arg name="b"/>
      </arguments>
    </function>
    <function public="yes" name="CmpList" id="CmpList">
      <abstract/>
      <description/>
      <arguments>
        <arg name="a"/>
        <arg name="b"/>
      </arguments>
    </function>
    <function public="yes" name="CmpNumber" id="CmpNumber">
      <abstract/>
      <description/>
      <arguments>
        <arg name="a"/>
        <arg name="b"/>
      </arguments>
    </function>
    <function public="yes" name="CmpResource" realname="CmpString" id="CmpResource">
      <abstract/>
      <description/>
      <arguments>
        <arg name="a"/>
        <arg name="b"/>
      </arguments>
    </function>
    <function public="yes" name="CmpSet" id="CmpSet">
      <abstract/>
      <description/>
      <arguments>
        <arg name="a"/>
        <arg name="b"/>
      </arguments>
    </function>
    <function public="yes" name="CmpString" id="CmpString">
      <abstract/>
      <description/>
      <arguments>
        <arg name="a"/>
        <arg name="b"/>
      </arguments>
    </function>
    <function public="yes" name="IsBoolean" realname="lambda" id="IsBoolean">
      <abstract/>
      <description/>
      <arguments>
        <arg name="x"/>
      </arguments>
    </function>
    <function public="yes" name="IsList" realname="lambda" id="IsList">
      <abstract/>
      <description/>
      <arguments>
        <arg name="x"/>
      </arguments>
    </function>
    <function public="yes" name="IsNumber" realname="lambda" id="IsNumber">
      <abstract/>
      <description/>
      <arguments>
        <arg name="x"/>
      </arguments>
    </function>
    <function public="yes" name="IsResource" realname="lambda" id="IsResource">
      <abstract/>
      <description/>
      <arguments>
        <arg name="x"/>
      </arguments>
    </function>
    <function public="yes" name="IsSet" realname="lambda" id="IsSet">
      <abstract/>
      <description/>
      <arguments>
        <arg name="x"/>
      </arguments>
    </function>
    <function public="yes" name="IsString" realname="lambda" id="IsString">
      <abstract/>
      <description/>
      <arguments>
        <arg name="x"/>
      </arguments>
    </function>
    <function public="yes" name="SyncType" id="SyncType">
      <abstract/>
      <description/>
      <arguments>
        <arg name="testObject"/>
        <arg name="obj"/>
      </arguments>
    </function>
    <function public="yes" name="ToBoolean" id="ToBoolean">
      <abstract>Convert to boolean</abstract>
      <description/>
      <arguments>
        <arg name="obj"/>
      </arguments>
    </function>
    <function public="yes" name="ToList" id="ToList">
      <abstract>Convert to list</abstract>
      <description/>
      <arguments>
        <arg name="obj"/>
      </arguments>
    </function>
    <function public="yes" name="ToNumber" id="ToNumber">
      <abstract>Convert to number</abstract>
      <description/>
      <arguments>
        <arg name="obj"/>
      </arguments>
    </function>
    <function public="yes" name="ToResource" id="ToResource">
      <abstract>Convert to resource</abstract>
      <description/>
      <arguments>
        <arg name="obj"/>
      </arguments>
    </function>
    <function public="yes" name="ToSet" id="ToSet">
      <abstract>Convert to set</abstract>
      <description/>
      <arguments>
        <arg name="obj"/>
      </arguments>
    </function>
    <function public="yes" name="ToString" id="ToString">
      <abstract>Convert to string
1.  If it is a string, then return
2.  If it is a number then convert to a string
3.  If it is a boolean, then convert to true or false
4.  If a list or set, the coerce the first item.  If empty ''</abstract>
      <description/>
      <arguments>
        <arg name="obj"/>
      </arguments>
    </function>
  </functions>
  <fields>
    <field public="yes" name="OBJECT_TYPE_RESOURCE" id="OBJECT_TYPE_RESOURCE">
      <value>'R'</value>
    </field>
    <field public="yes" name="OBJECT_TYPE_UNKNOWN" id="OBJECT_TYPE_UNKNOWN">
      <value>'?'</value>
    </field>
  </fields>
</module>
