Class: VORuby::ADQL::ObjectBuilder

Inherits:
Object
  • Object
show all
Defined in:
lib/voruby/adql/adql.rb

Overview

Acts as glue between xsi:types and their corresponding domain objects in the * hierarchy.

Class Method Summary collapse

Class Method Details

.classesObject



10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
# File 'lib/voruby/adql/adql.rb', line 10

def self.classes
  {:allSelectionItemType => AllSelectionItem,
   :columnReferenceType => ColumnReference,
   :tableType => ArchiveTable,
   :atomType => Atom,
   :stringType => StringType,
   :realType => RealType,
   :integerType => IntegerType,
   :binaryExprType => BinaryExpr,
   :unaryExprType => UnaryExpr,
   :closedExprType => ClosedExpr,
   :trigonometricFunctionType => TrigonometricFunction,
   :trigonometricFunctionNameType => TrigonometricFunctionName,
   :mathFunctionType => MathFunction,
   :mathFunctionNameType => MathFunctionName,
   :aggregateFunctionType => AggregateFunction,
   :aggregateFunctionNameType => AggregateFunctionName,
   :userDefinedFunctionType => UserDefinedFunction,
   :aliasSelectionItemType => AliasSelectionItem,
   :likePredType => LikePred,
   :notLikePredType => NotLikePred,
   :closedSearchType => ClosedSearch,
   :intersectionSearchType => IntersectionSearch,
   :unionSearchType => UnionSearch,
   :comparisonPredType => ComparisonPred,
   :betweenPredType => BetweenPred,
   :notBetweenPredType => NotBetweenPred,
   :includeTableType => IncludeTable,
   :dropTableType => DropTable,
   :xMatchType => XMatch,
   :xMatchTableAliasType => XMatchTableAlias,
   :comparisonType => Comparison,
   :regionSearchType => RegionSearch,
   :inverseSearchType => InverseSearch,
   :inclusionSetType => InclusionSet,
   :inclusiveSearchType => InclusiveSearch,
   :exclusiveSearchType => ExclusiveSearch,
   :subQuerySetType => SubQuerySet,
   :joinTableType => JoinTable,
   :constantListSetType => ConstantListSet,
   :orderType => Order,
   :circleType => Circle,
   :boxType => Box,
   :archiveTableType => ArchiveTable}
end

.get_class_for(type) ⇒ Object

Get the domain class associated with a particular xsi:type.



57
58
59
60
61
# File 'lib/voruby/adql/adql.rb', line 57

def self.get_class_for(type)
  klass = self.classes()[type.to_sym] || self.classes()[type]
  raise "Unable to find type #{type}" if !klass
  return klass
end