Moved VXQuery command line client to separate project. vxq starts an in-process insta...
authorVinayak Ravindra Borkar <vinayakb@apache.org>
Mon, 11 Jun 2012 10:50:49 +0000 (10:50 +0000)
committerVinayak Ravindra Borkar <vinayakb@apache.org>
Mon, 11 Jun 2012 10:50:49 +0000 (10:50 +0000)
git-svn-id: https://svn.apache.org/repos/asf/incubator/vxquery/branches/vxquery_algebricks@1348792 13f79535-47bb-0310-9956-ffa450edef68

375 files changed:
pom.xml
vxquery-cli/pom.xml [new file with mode: 0644]
vxquery-cli/src/main/java/org/apache/vxquery/cli/VXQuery.java [moved from vxquery-core/src/main/java/org/apache/vxquery/drivers/VXQuery.java with 62% similarity]
vxquery-core/pom.xml
vxquery-core/src/main/java/org/apache/vxquery/compiler/CompilerControlBlock.java
vxquery-core/src/main/java/org/apache/vxquery/compiler/algebricks/VXQueryConstantValue.java [moved from vxquery-core/src/main/java/org/apache/vxquery/compiler/algebricks/ConstantValue.java with 57% similarity]
vxquery-core/src/main/java/org/apache/vxquery/compiler/algebricks/VXQueryExpressionJobGen.java [moved from vxquery-core/src/main/java/org/apache/vxquery/compiler/jobgen/ExpressionJobGen.java with 54% similarity]
vxquery-core/src/main/java/org/apache/vxquery/compiler/algebricks/VXQueryPrinterFactory.java [new file with mode: 0644]
vxquery-core/src/main/java/org/apache/vxquery/compiler/algebricks/VXQueryPrinterFactoryProvider.java [moved from vxquery-core/src/main/java/org/apache/vxquery/compiler/algebricks/PrinterFactoryProvider.java with 51% similarity]
vxquery-core/src/main/java/org/apache/vxquery/context/DynamicContext.java
vxquery-core/src/main/java/org/apache/vxquery/context/DynamicContextImpl.java
vxquery-core/src/main/java/org/apache/vxquery/control/ControlBlockFactory.java [deleted file]
vxquery-core/src/main/java/org/apache/vxquery/datamodel/accessors/SequencePointable.java [moved from vxquery-core/src/main/java/org/apache/vxquery/datamodel/SequencePointable.java with 97% similarity]
vxquery-core/src/main/java/org/apache/vxquery/datamodel/accessors/TaggedValuePointable.java [moved from vxquery-core/src/main/java/org/apache/vxquery/datamodel/TaggedValuePointable.java with 78% similarity]
vxquery-core/src/main/java/org/apache/vxquery/datamodel/accessors/atomic/QNamePointable.java [moved from vxquery-core/src/main/java/org/apache/vxquery/datamodel/QNamePointable.java with 92% similarity]
vxquery-core/src/main/java/org/apache/vxquery/datamodel/accessors/nodes/AttributeNodePointable.java [moved from vxquery-core/src/main/java/org/apache/vxquery/datamodel/AttributeNodePointable.java with 91% similarity]
vxquery-core/src/main/java/org/apache/vxquery/datamodel/accessors/nodes/DocumentNodePointable.java [moved from vxquery-core/src/main/java/org/apache/vxquery/datamodel/DocumentNodePointable.java with 90% similarity]
vxquery-core/src/main/java/org/apache/vxquery/datamodel/accessors/nodes/ElementNodePointable.java [moved from vxquery-core/src/main/java/org/apache/vxquery/datamodel/ElementNodePointable.java with 96% similarity]
vxquery-core/src/main/java/org/apache/vxquery/datamodel/accessors/nodes/NodeTreePointable.java [moved from vxquery-core/src/main/java/org/apache/vxquery/datamodel/NodeTreePointable.java with 97% similarity]
vxquery-core/src/main/java/org/apache/vxquery/datamodel/accessors/nodes/PINodePointable.java [moved from vxquery-core/src/main/java/org/apache/vxquery/datamodel/PINodePointable.java with 96% similarity]
vxquery-core/src/main/java/org/apache/vxquery/datamodel/accessors/nodes/TextOrCommentNodePointable.java [moved from vxquery-core/src/main/java/org/apache/vxquery/datamodel/TextOrCommentNodePointable.java with 90% similarity]
vxquery-core/src/main/java/org/apache/vxquery/datamodel/builders/AttributeNodeBuilder.java [deleted file]
vxquery-core/src/main/java/org/apache/vxquery/datamodel/builders/CommentNodeBuilder.java [deleted file]
vxquery-core/src/main/java/org/apache/vxquery/datamodel/builders/PINodeBuilder.java [deleted file]
vxquery-core/src/main/java/org/apache/vxquery/datamodel/builders/TextNodeBuilder.java [deleted file]
vxquery-core/src/main/java/org/apache/vxquery/datamodel/builders/atomic/StringValueBuilder.java [new file with mode: 0644]
vxquery-core/src/main/java/org/apache/vxquery/datamodel/builders/base/AbstractValueBuilder.java [new file with mode: 0644]
vxquery-core/src/main/java/org/apache/vxquery/datamodel/builders/base/IDMBuilderPool.java
vxquery-core/src/main/java/org/apache/vxquery/datamodel/builders/base/IValueBuilder.java [new file with mode: 0644]
vxquery-core/src/main/java/org/apache/vxquery/datamodel/builders/nodes/AttributeNodeBuilder.java [new file with mode: 0644]
vxquery-core/src/main/java/org/apache/vxquery/datamodel/builders/nodes/CommentNodeBuilder.java [new file with mode: 0644]
vxquery-core/src/main/java/org/apache/vxquery/datamodel/builders/nodes/DictionaryBuilder.java [moved from vxquery-core/src/main/java/org/apache/vxquery/datamodel/builders/DictionaryBuilder.java with 98% similarity]
vxquery-core/src/main/java/org/apache/vxquery/datamodel/builders/nodes/ElementNodeBuilder.java [moved from vxquery-core/src/main/java/org/apache/vxquery/datamodel/builders/ElementNodeBuilder.java with 93% similarity]
vxquery-core/src/main/java/org/apache/vxquery/datamodel/builders/nodes/PINodeBuilder.java [new file with mode: 0644]
vxquery-core/src/main/java/org/apache/vxquery/datamodel/builders/nodes/TextNodeBuilder.java [new file with mode: 0644]
vxquery-core/src/main/java/org/apache/vxquery/functions/BuiltinFunction.java
vxquery-core/src/main/java/org/apache/vxquery/functions/ExternalFunction.java
vxquery-core/src/main/java/org/apache/vxquery/functions/Function.java
vxquery-core/src/main/java/org/apache/vxquery/functions/Operator.java
vxquery-core/src/main/java/org/apache/vxquery/functions/UserDefinedXQueryFunction.java
vxquery-core/src/main/java/org/apache/vxquery/metadata/QueryResultDataSink.java
vxquery-core/src/main/java/org/apache/vxquery/types/AbstractNodeType.java
vxquery-core/src/main/java/org/apache/vxquery/types/AnyItemType.java
vxquery-core/src/main/java/org/apache/vxquery/types/AnyNodeType.java
vxquery-core/src/main/java/org/apache/vxquery/types/AnySimpleType.java
vxquery-core/src/main/java/org/apache/vxquery/types/AnyType.java
vxquery-core/src/main/java/org/apache/vxquery/types/AttributeType.java
vxquery-core/src/main/java/org/apache/vxquery/types/BuiltinAtomicType.java
vxquery-core/src/main/java/org/apache/vxquery/types/BuiltinTypeRegistry.java
vxquery-core/src/main/java/org/apache/vxquery/types/CommentType.java
vxquery-core/src/main/java/org/apache/vxquery/types/ComposedType.java
vxquery-core/src/main/java/org/apache/vxquery/types/DocumentType.java
vxquery-core/src/main/java/org/apache/vxquery/types/ElementType.java
vxquery-core/src/main/java/org/apache/vxquery/types/EmptySequenceType.java
vxquery-core/src/main/java/org/apache/vxquery/types/NameTest.java
vxquery-core/src/main/java/org/apache/vxquery/types/NoneType.java
vxquery-core/src/main/java/org/apache/vxquery/types/ProcessingInstructionType.java
vxquery-core/src/main/java/org/apache/vxquery/types/QuantifiedType.java
vxquery-core/src/main/java/org/apache/vxquery/types/TextType.java
vxquery-core/src/main/java/org/apache/vxquery/types/XQType.java
vxquery-core/src/main/java/org/apache/vxquery/types/processors/AnyUriCastProcessor.java [deleted file]
vxquery-core/src/main/java/org/apache/vxquery/types/processors/Base64BinaryCastProcessor.java [deleted file]
vxquery-core/src/main/java/org/apache/vxquery/types/processors/BooleanCastProcessor.java [deleted file]
vxquery-core/src/main/java/org/apache/vxquery/types/processors/ByteCastProcessor.java [deleted file]
vxquery-core/src/main/java/org/apache/vxquery/types/processors/CastProcessor.java [deleted file]
vxquery-core/src/main/java/org/apache/vxquery/types/processors/DateCastProcessor.java [deleted file]
vxquery-core/src/main/java/org/apache/vxquery/types/processors/DateTimeCastProcessor.java [deleted file]
vxquery-core/src/main/java/org/apache/vxquery/types/processors/DayTimeDurationCastProcessor.java [deleted file]
vxquery-core/src/main/java/org/apache/vxquery/types/processors/DecimalCastProcessor.java [deleted file]
vxquery-core/src/main/java/org/apache/vxquery/types/processors/DoubleCastProcessor.java [deleted file]
vxquery-core/src/main/java/org/apache/vxquery/types/processors/DurationCastProcessor.java [deleted file]
vxquery-core/src/main/java/org/apache/vxquery/types/processors/EntityCastProcessor.java [deleted file]
vxquery-core/src/main/java/org/apache/vxquery/types/processors/FloatCastProcessor.java [deleted file]
vxquery-core/src/main/java/org/apache/vxquery/types/processors/GDayCastProcessor.java [deleted file]
vxquery-core/src/main/java/org/apache/vxquery/types/processors/GMonthCastProcessor.java [deleted file]
vxquery-core/src/main/java/org/apache/vxquery/types/processors/GMonthDayCastProcessor.java [deleted file]
vxquery-core/src/main/java/org/apache/vxquery/types/processors/GYearCastProcessor.java [deleted file]
vxquery-core/src/main/java/org/apache/vxquery/types/processors/GYearMonthCastProcessor.java [deleted file]
vxquery-core/src/main/java/org/apache/vxquery/types/processors/HexBinaryCastProcessor.java [deleted file]
vxquery-core/src/main/java/org/apache/vxquery/types/processors/IntCastProcessor.java [deleted file]
vxquery-core/src/main/java/org/apache/vxquery/types/processors/IntegerCastProcessor.java [deleted file]
vxquery-core/src/main/java/org/apache/vxquery/types/processors/LanguageCastProcessor.java [deleted file]
vxquery-core/src/main/java/org/apache/vxquery/types/processors/LongCastProcessor.java [deleted file]
vxquery-core/src/main/java/org/apache/vxquery/types/processors/NCNameCastProcessor.java [deleted file]
vxquery-core/src/main/java/org/apache/vxquery/types/processors/NMTokenCastProcessor.java [deleted file]
vxquery-core/src/main/java/org/apache/vxquery/types/processors/NameCastProcessor.java [deleted file]
vxquery-core/src/main/java/org/apache/vxquery/types/processors/NegativeIntegerCastProcessor.java [deleted file]
vxquery-core/src/main/java/org/apache/vxquery/types/processors/NonNegativeIntegerCastProcessor.java [deleted file]
vxquery-core/src/main/java/org/apache/vxquery/types/processors/NonPositiveIntegerCastProcessor.java [deleted file]
vxquery-core/src/main/java/org/apache/vxquery/types/processors/NoopCastProcessor.java [deleted file]
vxquery-core/src/main/java/org/apache/vxquery/types/processors/NormalizedStringCastProcessor.java [deleted file]
vxquery-core/src/main/java/org/apache/vxquery/types/processors/NotCastableCastProcessor.java [deleted file]
vxquery-core/src/main/java/org/apache/vxquery/types/processors/PositiveIntegerCastProcessor.java [deleted file]
vxquery-core/src/main/java/org/apache/vxquery/types/processors/QNameCastProcessor.java [deleted file]
vxquery-core/src/main/java/org/apache/vxquery/types/processors/ShortCastProcessor.java [deleted file]
vxquery-core/src/main/java/org/apache/vxquery/types/processors/StringCastProcessor.java [deleted file]
vxquery-core/src/main/java/org/apache/vxquery/types/processors/TimeCastProcessor.java [deleted file]
vxquery-core/src/main/java/org/apache/vxquery/types/processors/TokenCastProcessor.java [deleted file]
vxquery-core/src/main/java/org/apache/vxquery/types/processors/UnsignedByteCastProcessor.java [deleted file]
vxquery-core/src/main/java/org/apache/vxquery/types/processors/UnsignedIntCastProcessor.java [deleted file]
vxquery-core/src/main/java/org/apache/vxquery/types/processors/UnsignedLongCastProcessor.java [deleted file]
vxquery-core/src/main/java/org/apache/vxquery/types/processors/UnsignedShortCastProcessor.java [deleted file]
vxquery-core/src/main/java/org/apache/vxquery/types/processors/UntypedAtomicCastProcessor.java [deleted file]
vxquery-core/src/main/java/org/apache/vxquery/types/processors/YearMonthDurationCastProcessor.java [deleted file]
vxquery-core/src/main/java/org/apache/vxquery/v0datamodel/AxisKind.java [deleted file]
vxquery-core/src/main/java/org/apache/vxquery/v0datamodel/DMOKind.java [deleted file]
vxquery-core/src/main/java/org/apache/vxquery/v0datamodel/DatamodelHelper.java [deleted file]
vxquery-core/src/main/java/org/apache/vxquery/v0datamodel/DatamodelStaticInterface.java [deleted file]
vxquery-core/src/main/java/org/apache/vxquery/v0datamodel/EagerlyMaterializedXDMSequenceImpl.java [deleted file]
vxquery-core/src/main/java/org/apache/vxquery/v0datamodel/NameCache.java [deleted file]
vxquery-core/src/main/java/org/apache/vxquery/v0datamodel/NodeConstructingEventAcceptor.java [deleted file]
vxquery-core/src/main/java/org/apache/vxquery/v0datamodel/NodeEqComparator.java [deleted file]
vxquery-core/src/main/java/org/apache/vxquery/v0datamodel/NodeFactory.java [deleted file]
vxquery-core/src/main/java/org/apache/vxquery/v0datamodel/StringCache.java [deleted file]
vxquery-core/src/main/java/org/apache/vxquery/v0datamodel/Wrapper.java [deleted file]
vxquery-core/src/main/java/org/apache/vxquery/v0datamodel/XDMAtomicValue.java [deleted file]
vxquery-core/src/main/java/org/apache/vxquery/v0datamodel/XDMItem.java [deleted file]
vxquery-core/src/main/java/org/apache/vxquery/v0datamodel/XDMNode.java [deleted file]
vxquery-core/src/main/java/org/apache/vxquery/v0datamodel/XDMSequence.java [deleted file]
vxquery-core/src/main/java/org/apache/vxquery/v0datamodel/XDMValue.java [deleted file]
vxquery-core/src/main/java/org/apache/vxquery/v0datamodel/atomic/AbstractDateTimeValue.java [deleted file]
vxquery-core/src/main/java/org/apache/vxquery/v0datamodel/atomic/AnyUriValue.java [deleted file]
vxquery-core/src/main/java/org/apache/vxquery/v0datamodel/atomic/AtomicValue.java [deleted file]
vxquery-core/src/main/java/org/apache/vxquery/v0datamodel/atomic/AtomicValueFactory.java [deleted file]
vxquery-core/src/main/java/org/apache/vxquery/v0datamodel/atomic/Base64BinaryValue.java [deleted file]
vxquery-core/src/main/java/org/apache/vxquery/v0datamodel/atomic/BooleanValue.java [deleted file]
vxquery-core/src/main/java/org/apache/vxquery/v0datamodel/atomic/DateTimeValue.java [deleted file]
vxquery-core/src/main/java/org/apache/vxquery/v0datamodel/atomic/DateValue.java [deleted file]
vxquery-core/src/main/java/org/apache/vxquery/v0datamodel/atomic/DecimalValue.java [deleted file]
vxquery-core/src/main/java/org/apache/vxquery/v0datamodel/atomic/DoubleValue.java [deleted file]
vxquery-core/src/main/java/org/apache/vxquery/v0datamodel/atomic/DurationValue.java [deleted file]
vxquery-core/src/main/java/org/apache/vxquery/v0datamodel/atomic/FloatValue.java [deleted file]
vxquery-core/src/main/java/org/apache/vxquery/v0datamodel/atomic/GDayValue.java [deleted file]
vxquery-core/src/main/java/org/apache/vxquery/v0datamodel/atomic/GMonthDayValue.java [deleted file]
vxquery-core/src/main/java/org/apache/vxquery/v0datamodel/atomic/GMonthValue.java [deleted file]
vxquery-core/src/main/java/org/apache/vxquery/v0datamodel/atomic/GYearMonthValue.java [deleted file]
vxquery-core/src/main/java/org/apache/vxquery/v0datamodel/atomic/GYearValue.java [deleted file]
vxquery-core/src/main/java/org/apache/vxquery/v0datamodel/atomic/HexBinaryValue.java [deleted file]
vxquery-core/src/main/java/org/apache/vxquery/v0datamodel/atomic/IntValue.java [deleted file]
vxquery-core/src/main/java/org/apache/vxquery/v0datamodel/atomic/IntegerValue.java [deleted file]
vxquery-core/src/main/java/org/apache/vxquery/v0datamodel/atomic/NumericValue.java [deleted file]
vxquery-core/src/main/java/org/apache/vxquery/v0datamodel/atomic/QNameValue.java [deleted file]
vxquery-core/src/main/java/org/apache/vxquery/v0datamodel/atomic/StringValue.java [deleted file]
vxquery-core/src/main/java/org/apache/vxquery/v0datamodel/atomic/TimeValue.java [deleted file]
vxquery-core/src/main/java/org/apache/vxquery/v0datamodel/atomic/UntypedAtomicValue.java [deleted file]
vxquery-core/src/main/java/org/apache/vxquery/v0datamodel/atomic/arithmetics/AddArithmeticOperation.java [deleted file]
vxquery-core/src/main/java/org/apache/vxquery/v0datamodel/atomic/arithmetics/ArithmeticOperation.java [deleted file]
vxquery-core/src/main/java/org/apache/vxquery/v0datamodel/atomic/arithmetics/DivideArithmeticOperation.java [deleted file]
vxquery-core/src/main/java/org/apache/vxquery/v0datamodel/atomic/arithmetics/IntegerDivideArithmeticOperation.java [deleted file]
vxquery-core/src/main/java/org/apache/vxquery/v0datamodel/atomic/arithmetics/ModArithmeticOperation.java [deleted file]
vxquery-core/src/main/java/org/apache/vxquery/v0datamodel/atomic/arithmetics/MultiplyArithmeticOperation.java [deleted file]
vxquery-core/src/main/java/org/apache/vxquery/v0datamodel/atomic/arithmetics/SubtractArithmeticOperation.java [deleted file]
vxquery-core/src/main/java/org/apache/vxquery/v0datamodel/atomic/compare/ComparisonUtils.java [deleted file]
vxquery-core/src/main/java/org/apache/vxquery/v0datamodel/atomic/compare/ValueComparator.java [deleted file]
vxquery-core/src/main/java/org/apache/vxquery/v0datamodel/atomic/compare/ValueEqComparator.java [deleted file]
vxquery-core/src/main/java/org/apache/vxquery/v0datamodel/atomic/compare/ValueGeComparator.java [deleted file]
vxquery-core/src/main/java/org/apache/vxquery/v0datamodel/atomic/compare/ValueGtComparator.java [deleted file]
vxquery-core/src/main/java/org/apache/vxquery/v0datamodel/atomic/compare/ValueLeComparator.java [deleted file]
vxquery-core/src/main/java/org/apache/vxquery/v0datamodel/atomic/compare/ValueLtComparator.java [deleted file]
vxquery-core/src/main/java/org/apache/vxquery/v0datamodel/atomic/compare/ValueNeComparator.java [deleted file]
vxquery-core/src/main/java/org/apache/vxquery/v0datamodel/dom/DOMAttributeIterator.java [deleted file]
vxquery-core/src/main/java/org/apache/vxquery/v0datamodel/dom/DOMChildrenIterator.java [deleted file]
vxquery-core/src/main/java/org/apache/vxquery/v0datamodel/dom/DOMDocumentManager.java [deleted file]
vxquery-core/src/main/java/org/apache/vxquery/v0datamodel/dom/DOMFollowingSiblingsIterator.java [deleted file]
vxquery-core/src/main/java/org/apache/vxquery/v0datamodel/dom/DOMNode.java [deleted file]
vxquery-core/src/main/java/org/apache/vxquery/v0datamodel/dom/DOMPrecedingSiblingsIterator.java [deleted file]
vxquery-core/src/main/java/org/apache/vxquery/v0datamodel/dtm/DTM.java [deleted file]
vxquery-core/src/main/java/org/apache/vxquery/v0datamodel/dtm/DTMAttributeIterator.java [deleted file]
vxquery-core/src/main/java/org/apache/vxquery/v0datamodel/dtm/DTMBuildingEventAcceptor.java [deleted file]
vxquery-core/src/main/java/org/apache/vxquery/v0datamodel/dtm/DTMChildrenIterator.java [deleted file]
vxquery-core/src/main/java/org/apache/vxquery/v0datamodel/dtm/DTMDatamodelStaticInterfaceImpl.java [deleted file]
vxquery-core/src/main/java/org/apache/vxquery/v0datamodel/dtm/DTMFollowingSiblingsIterator.java [deleted file]
vxquery-core/src/main/java/org/apache/vxquery/v0datamodel/dtm/DTMNodeFactory.java [deleted file]
vxquery-core/src/main/java/org/apache/vxquery/v0datamodel/dtm/DTMNodeImpl.java [deleted file]
vxquery-core/src/main/java/org/apache/vxquery/v0datamodel/dtm/DTMPreviousSiblingsIterator.java [deleted file]
vxquery-core/src/main/java/org/apache/vxquery/v0datamodel/dtm/NodeState.java [deleted file]
vxquery-core/src/main/java/org/apache/vxquery/v0datamodel/serialization/XMLSerializer.java [deleted file]
vxquery-core/src/main/java/org/apache/vxquery/v0runtime/AllocatingTupleFactory.java [deleted file]
vxquery-core/src/main/java/org/apache/vxquery/v0runtime/CallStackFrame.java [deleted file]
vxquery-core/src/main/java/org/apache/vxquery/v0runtime/GlobalRegisterAccessor.java [deleted file]
vxquery-core/src/main/java/org/apache/vxquery/v0runtime/LocalRegisterAccessor.java [deleted file]
vxquery-core/src/main/java/org/apache/vxquery/v0runtime/RegisterAllocator.java [deleted file]
vxquery-core/src/main/java/org/apache/vxquery/v0runtime/RegisterSet.java [deleted file]
vxquery-core/src/main/java/org/apache/vxquery/v0runtime/RuntimeControlBlock.java [deleted file]
vxquery-core/src/main/java/org/apache/vxquery/v0runtime/RuntimePlan.java [deleted file]
vxquery-core/src/main/java/org/apache/vxquery/v0runtime/RuntimeUtils.java [deleted file]
vxquery-core/src/main/java/org/apache/vxquery/v0runtime/base/AbstractEagerlyEvaluatedFunctionIterator.java [deleted file]
vxquery-core/src/main/java/org/apache/vxquery/v0runtime/base/AbstractEagerlyEvaluatedIterator.java [deleted file]
vxquery-core/src/main/java/org/apache/vxquery/v0runtime/base/AbstractFunctionIterator.java [deleted file]
vxquery-core/src/main/java/org/apache/vxquery/v0runtime/base/AbstractLazilyEvaluatedFunctionIterator.java [deleted file]
vxquery-core/src/main/java/org/apache/vxquery/v0runtime/base/AbstractLazilyEvaluatedIterator.java [deleted file]
vxquery-core/src/main/java/org/apache/vxquery/v0runtime/base/AbstractRuntimeIterator.java [deleted file]
vxquery-core/src/main/java/org/apache/vxquery/v0runtime/base/AbstractTupleIterator.java [deleted file]
vxquery-core/src/main/java/org/apache/vxquery/v0runtime/base/AbstractUnaryNumericFunctionIterator.java [deleted file]
vxquery-core/src/main/java/org/apache/vxquery/v0runtime/base/AbstractUnaryTupleIterator.java [deleted file]
vxquery-core/src/main/java/org/apache/vxquery/v0runtime/base/CloseableIterator.java [deleted file]
vxquery-core/src/main/java/org/apache/vxquery/v0runtime/base/CloseableSkippableIterator.java [deleted file]
vxquery-core/src/main/java/org/apache/vxquery/v0runtime/base/EagerEvaluator.java [deleted file]
vxquery-core/src/main/java/org/apache/vxquery/v0runtime/base/EventAcceptor.java [deleted file]
vxquery-core/src/main/java/org/apache/vxquery/v0runtime/base/FunctionIteratorFactory.java [deleted file]
vxquery-core/src/main/java/org/apache/vxquery/v0runtime/base/ObjectIterator.java [deleted file]
vxquery-core/src/main/java/org/apache/vxquery/v0runtime/base/OpenableCloseableIterator.java [deleted file]
vxquery-core/src/main/java/org/apache/vxquery/v0runtime/base/RuntimeIterator.java [deleted file]
vxquery-core/src/main/java/org/apache/vxquery/v0runtime/base/TupleIterator.java [deleted file]
vxquery-core/src/main/java/org/apache/vxquery/v0runtime/core/CloseableIteratorAdapter.java [deleted file]
vxquery-core/src/main/java/org/apache/vxquery/v0runtime/core/Deflater.java [deleted file]
vxquery-core/src/main/java/org/apache/vxquery/v0runtime/core/FLWORIterator.java [deleted file]
vxquery-core/src/main/java/org/apache/vxquery/v0runtime/core/FilterTupleIterator.java [deleted file]
vxquery-core/src/main/java/org/apache/vxquery/v0runtime/core/ForTupleIterator.java [deleted file]
vxquery-core/src/main/java/org/apache/vxquery/v0runtime/core/GlobalRegisterAccessIterator.java [deleted file]
vxquery-core/src/main/java/org/apache/vxquery/v0runtime/core/IfThenElseIterator.java [deleted file]
vxquery-core/src/main/java/org/apache/vxquery/v0runtime/core/LetTupleIterator.java [deleted file]
vxquery-core/src/main/java/org/apache/vxquery/v0runtime/core/LocalRegisterAccessIterator.java [deleted file]
vxquery-core/src/main/java/org/apache/vxquery/v0runtime/core/SingletonCloseableIterator.java [deleted file]
vxquery-core/src/main/java/org/apache/vxquery/v0runtime/core/SingletonRuntimeIterator.java [deleted file]
vxquery-core/src/main/java/org/apache/vxquery/v0runtime/core/SingletonTupleIterator.java [deleted file]
vxquery-core/src/main/java/org/apache/vxquery/v0runtime/functions/AbstractArithmeticOperationIterator.java [deleted file]
vxquery-core/src/main/java/org/apache/vxquery/v0runtime/functions/AbstractGeneralComparisonIterator.java [deleted file]
vxquery-core/src/main/java/org/apache/vxquery/v0runtime/functions/AbstractItemSortingAndDistinctIterator.java [deleted file]
vxquery-core/src/main/java/org/apache/vxquery/v0runtime/functions/AbstractItemSortingIterator.java [deleted file]
vxquery-core/src/main/java/org/apache/vxquery/v0runtime/functions/AbstractMinMaxIterator.java [deleted file]
vxquery-core/src/main/java/org/apache/vxquery/v0runtime/functions/AbstractNodeComparisonIterator.java [deleted file]
vxquery-core/src/main/java/org/apache/vxquery/v0runtime/functions/AbstractSortAndDistinctNodesOrAtomicsIterator.java [deleted file]
vxquery-core/src/main/java/org/apache/vxquery/v0runtime/functions/AbstractStringMatchingIterator.java [deleted file]
vxquery-core/src/main/java/org/apache/vxquery/v0runtime/functions/AbstractValueComparisonIterator.java [deleted file]
vxquery-core/src/main/java/org/apache/vxquery/v0runtime/functions/AddArithmeticOperationIterator.java [deleted file]
vxquery-core/src/main/java/org/apache/vxquery/v0runtime/functions/BooleanAndIterator.java [deleted file]
vxquery-core/src/main/java/org/apache/vxquery/v0runtime/functions/BooleanOrIterator.java [deleted file]
vxquery-core/src/main/java/org/apache/vxquery/v0runtime/functions/ConcatenateIterator.java [deleted file]
vxquery-core/src/main/java/org/apache/vxquery/v0runtime/functions/DivideArithmeticOperationIterator.java [deleted file]
vxquery-core/src/main/java/org/apache/vxquery/v0runtime/functions/FnAbsIterator.java [deleted file]
vxquery-core/src/main/java/org/apache/vxquery/v0runtime/functions/FnAdjustDateTimeToTimezoneIterator.java [deleted file]
vxquery-core/src/main/java/org/apache/vxquery/v0runtime/functions/FnBaseUriIterator.java [deleted file]
vxquery-core/src/main/java/org/apache/vxquery/v0runtime/functions/FnBooleanIterator.java [deleted file]
vxquery-core/src/main/java/org/apache/vxquery/v0runtime/functions/FnCeilingIterator.java [deleted file]
vxquery-core/src/main/java/org/apache/vxquery/v0runtime/functions/FnCodepointEqualIterator.java [deleted file]
vxquery-core/src/main/java/org/apache/vxquery/v0runtime/functions/FnCodepointsToStringIterator.java [deleted file]
vxquery-core/src/main/java/org/apache/vxquery/v0runtime/functions/FnConcatIterator.java [deleted file]
vxquery-core/src/main/java/org/apache/vxquery/v0runtime/functions/FnContainsIterator.java [deleted file]
vxquery-core/src/main/java/org/apache/vxquery/v0runtime/functions/FnCountIterator.java [deleted file]
vxquery-core/src/main/java/org/apache/vxquery/v0runtime/functions/FnCurrentDateTimeIterator.java [deleted file]
vxquery-core/src/main/java/org/apache/vxquery/v0runtime/functions/FnCurrentTimeIterator.java [deleted file]
vxquery-core/src/main/java/org/apache/vxquery/v0runtime/functions/FnDataIterator.java [deleted file]
vxquery-core/src/main/java/org/apache/vxquery/v0runtime/functions/FnDayFromDateIterator.java [deleted file]
vxquery-core/src/main/java/org/apache/vxquery/v0runtime/functions/FnDayFromDateTimeIterator.java [deleted file]
vxquery-core/src/main/java/org/apache/vxquery/v0runtime/functions/FnDaysFromDurationIterator.java [deleted file]
vxquery-core/src/main/java/org/apache/vxquery/v0runtime/functions/FnDeepEqualIterator.java [deleted file]
vxquery-core/src/main/java/org/apache/vxquery/v0runtime/functions/FnDefaultCollationIterator.java [deleted file]
vxquery-core/src/main/java/org/apache/vxquery/v0runtime/functions/FnDocIterator.java [deleted file]
vxquery-core/src/main/java/org/apache/vxquery/v0runtime/functions/FnDocumentUriIterator.java [deleted file]
vxquery-core/src/main/java/org/apache/vxquery/v0runtime/functions/FnEmptyIterator.java [deleted file]
vxquery-core/src/main/java/org/apache/vxquery/v0runtime/functions/FnEncodeForUriIterator.java [deleted file]
vxquery-core/src/main/java/org/apache/vxquery/v0runtime/functions/FnEndsWithIterator.java [deleted file]
vxquery-core/src/main/java/org/apache/vxquery/v0runtime/functions/FnExactlyOneIterator.java [deleted file]
vxquery-core/src/main/java/org/apache/vxquery/v0runtime/functions/FnExistsIterator.java [deleted file]
vxquery-core/src/main/java/org/apache/vxquery/v0runtime/functions/FnFalseIterator.java [deleted file]
vxquery-core/src/main/java/org/apache/vxquery/v0runtime/functions/FnFloorIterator.java [deleted file]
vxquery-core/src/main/java/org/apache/vxquery/v0runtime/functions/FnHoursFromDateTimeIterator.java [deleted file]
vxquery-core/src/main/java/org/apache/vxquery/v0runtime/functions/FnHoursFromDurationIterator.java [deleted file]
vxquery-core/src/main/java/org/apache/vxquery/v0runtime/functions/FnHoursFromTimeIterator.java [deleted file]
vxquery-core/src/main/java/org/apache/vxquery/v0runtime/functions/FnIndexOfIterator.java [deleted file]
vxquery-core/src/main/java/org/apache/vxquery/v0runtime/functions/FnInsertBeforeIterator.java [deleted file]
vxquery-core/src/main/java/org/apache/vxquery/v0runtime/functions/FnLocalNameFromQNameIterator.java [deleted file]
vxquery-core/src/main/java/org/apache/vxquery/v0runtime/functions/FnLocalNameIterator.java [deleted file]
vxquery-core/src/main/java/org/apache/vxquery/v0runtime/functions/FnLowerCaseIterator.java [deleted file]
vxquery-core/src/main/java/org/apache/vxquery/v0runtime/functions/FnMaxIterator.java [deleted file]
vxquery-core/src/main/java/org/apache/vxquery/v0runtime/functions/FnMinIterator.java [deleted file]
vxquery-core/src/main/java/org/apache/vxquery/v0runtime/functions/FnMinutesFromDateTimeIterator.java [deleted file]
vxquery-core/src/main/java/org/apache/vxquery/v0runtime/functions/FnMinutesFromDurationIterator.java [deleted file]
vxquery-core/src/main/java/org/apache/vxquery/v0runtime/functions/FnMinutesFromTimeIterator.java [deleted file]
vxquery-core/src/main/java/org/apache/vxquery/v0runtime/functions/FnMonthFromDateIterator.java [deleted file]
vxquery-core/src/main/java/org/apache/vxquery/v0runtime/functions/FnMonthFromDateTimeIterator.java [deleted file]
vxquery-core/src/main/java/org/apache/vxquery/v0runtime/functions/FnMonthsFromDurationIterator.java [deleted file]
vxquery-core/src/main/java/org/apache/vxquery/v0runtime/functions/FnNameIterator.java [deleted file]
vxquery-core/src/main/java/org/apache/vxquery/v0runtime/functions/FnNamespaceUriFromQNameIterator.java [deleted file]
vxquery-core/src/main/java/org/apache/vxquery/v0runtime/functions/FnNamespaceUriIterator.java [deleted file]
vxquery-core/src/main/java/org/apache/vxquery/v0runtime/functions/FnNilledIterator.java [deleted file]
vxquery-core/src/main/java/org/apache/vxquery/v0runtime/functions/FnNodeNameIterator.java [deleted file]
vxquery-core/src/main/java/org/apache/vxquery/v0runtime/functions/FnNormalizeSpaceIterator.java [deleted file]
vxquery-core/src/main/java/org/apache/vxquery/v0runtime/functions/FnNotIterator.java [deleted file]
vxquery-core/src/main/java/org/apache/vxquery/v0runtime/functions/FnNumberIterator.java [deleted file]
vxquery-core/src/main/java/org/apache/vxquery/v0runtime/functions/FnOneOrMoreIterator.java [deleted file]
vxquery-core/src/main/java/org/apache/vxquery/v0runtime/functions/FnPrefixFromQNameIterator.java [deleted file]
vxquery-core/src/main/java/org/apache/vxquery/v0runtime/functions/FnRemoveIterator.java [deleted file]
vxquery-core/src/main/java/org/apache/vxquery/v0runtime/functions/FnReverseIterator.java [deleted file]
vxquery-core/src/main/java/org/apache/vxquery/v0runtime/functions/FnRoundHalfToEvenIterator.java [deleted file]
vxquery-core/src/main/java/org/apache/vxquery/v0runtime/functions/FnRoundHalfToEvenIteratorWithPrecision.java [deleted file]
vxquery-core/src/main/java/org/apache/vxquery/v0runtime/functions/FnRoundIterator.java [deleted file]
vxquery-core/src/main/java/org/apache/vxquery/v0runtime/functions/FnSecondsFromDateTimeIterator.java [deleted file]
vxquery-core/src/main/java/org/apache/vxquery/v0runtime/functions/FnSecondsFromDurationIterator.java [deleted file]
vxquery-core/src/main/java/org/apache/vxquery/v0runtime/functions/FnSecondsFromTimeIterator.java [deleted file]
vxquery-core/src/main/java/org/apache/vxquery/v0runtime/functions/FnStartsWithIterator.java [deleted file]
vxquery-core/src/main/java/org/apache/vxquery/v0runtime/functions/FnStaticBaseUriIterator.java [deleted file]
vxquery-core/src/main/java/org/apache/vxquery/v0runtime/functions/FnStringIterator.java [deleted file]
vxquery-core/src/main/java/org/apache/vxquery/v0runtime/functions/FnStringJoinIterator.java [deleted file]
vxquery-core/src/main/java/org/apache/vxquery/v0runtime/functions/FnStringLengthIterator.java [deleted file]
vxquery-core/src/main/java/org/apache/vxquery/v0runtime/functions/FnStringToCodepointsIterator.java [deleted file]
vxquery-core/src/main/java/org/apache/vxquery/v0runtime/functions/FnSubsequenceIterator.java [deleted file]
vxquery-core/src/main/java/org/apache/vxquery/v0runtime/functions/FnSubstringAfterIterator.java [deleted file]
vxquery-core/src/main/java/org/apache/vxquery/v0runtime/functions/FnSubstringBeforeIterator.java [deleted file]
vxquery-core/src/main/java/org/apache/vxquery/v0runtime/functions/FnSubstringIterator.java [deleted file]
vxquery-core/src/main/java/org/apache/vxquery/v0runtime/functions/FnTimezoneFromDateIterator.java [deleted file]
vxquery-core/src/main/java/org/apache/vxquery/v0runtime/functions/FnTimezoneFromDateTimeIterator.java [deleted file]
vxquery-core/src/main/java/org/apache/vxquery/v0runtime/functions/FnTimezoneFromTimeIterator.java [deleted file]
vxquery-core/src/main/java/org/apache/vxquery/v0runtime/functions/FnTraceIterator.java [deleted file]
vxquery-core/src/main/java/org/apache/vxquery/v0runtime/functions/FnTranslateIterator.java [deleted file]
vxquery-core/src/main/java/org/apache/vxquery/v0runtime/functions/FnTrueIterator.java [deleted file]
vxquery-core/src/main/java/org/apache/vxquery/v0runtime/functions/FnUpperCaseIterator.java [deleted file]
vxquery-core/src/main/java/org/apache/vxquery/v0runtime/functions/FnYearFromDateIterator.java [deleted file]
vxquery-core/src/main/java/org/apache/vxquery/v0runtime/functions/FnYearFromDateTimeIterator.java [deleted file]
vxquery-core/src/main/java/org/apache/vxquery/v0runtime/functions/FnYearsFromDurationIterator.java [deleted file]
vxquery-core/src/main/java/org/apache/vxquery/v0runtime/functions/FnZeroOrOneIterator.java [deleted file]
vxquery-core/src/main/java/org/apache/vxquery/v0runtime/functions/GeneralEqComparisonIterator.java [deleted file]
vxquery-core/src/main/java/org/apache/vxquery/v0runtime/functions/GeneralGeComparisonIterator.java [deleted file]
vxquery-core/src/main/java/org/apache/vxquery/v0runtime/functions/GeneralGtComparisonIterator.java [deleted file]
vxquery-core/src/main/java/org/apache/vxquery/v0runtime/functions/GeneralLeComparisonIterator.java [deleted file]
vxquery-core/src/main/java/org/apache/vxquery/v0runtime/functions/GeneralLtComparisonIterator.java [deleted file]
vxquery-core/src/main/java/org/apache/vxquery/v0runtime/functions/GeneralNeComparisonIterator.java [deleted file]
vxquery-core/src/main/java/org/apache/vxquery/v0runtime/functions/IntegerDivideArithmeticOperationIterator.java [deleted file]
vxquery-core/src/main/java/org/apache/vxquery/v0runtime/functions/ModArithmeticOperationIterator.java [deleted file]
vxquery-core/src/main/java/org/apache/vxquery/v0runtime/functions/MultiplyArithmeticOperationIterator.java [deleted file]
vxquery-core/src/main/java/org/apache/vxquery/v0runtime/functions/NumericUnaryMinusIterator.java [deleted file]
vxquery-core/src/main/java/org/apache/vxquery/v0runtime/functions/OpExceptIterator.java [deleted file]
vxquery-core/src/main/java/org/apache/vxquery/v0runtime/functions/OpExtDeflateSequencesIterator.java [deleted file]
vxquery-core/src/main/java/org/apache/vxquery/v0runtime/functions/OpExtSortAndDistinctNodesAscIterator.java [deleted file]
vxquery-core/src/main/java/org/apache/vxquery/v0runtime/functions/OpExtSortAndDistinctNodesAscOrAtomicsIterator.java [deleted file]
vxquery-core/src/main/java/org/apache/vxquery/v0runtime/functions/OpExtSortAndDistinctNodesDescIterator.java [deleted file]
vxquery-core/src/main/java/org/apache/vxquery/v0runtime/functions/OpExtSortAndDistinctNodesDescOrAtomicsIterator.java [deleted file]
vxquery-core/src/main/java/org/apache/vxquery/v0runtime/functions/OpExtSortNodesAscIterator.java [deleted file]
vxquery-core/src/main/java/org/apache/vxquery/v0runtime/functions/OpExtSortNodesDescIterator.java [deleted file]
vxquery-core/src/main/java/org/apache/vxquery/v0runtime/functions/OpIntersectIterator.java [deleted file]
vxquery-core/src/main/java/org/apache/vxquery/v0runtime/functions/OpIsSameNodeIterator.java [deleted file]
vxquery-core/src/main/java/org/apache/vxquery/v0runtime/functions/OpNodeAfterIterator.java [deleted file]
vxquery-core/src/main/java/org/apache/vxquery/v0runtime/functions/OpNodeBeforeIterator.java [deleted file]
vxquery-core/src/main/java/org/apache/vxquery/v0runtime/functions/OpToIterator.java [deleted file]
vxquery-core/src/main/java/org/apache/vxquery/v0runtime/functions/SubtractArithmeticOperationIterator.java [deleted file]
vxquery-core/src/main/java/org/apache/vxquery/v0runtime/functions/ValueEqComparisonIterator.java [deleted file]
vxquery-core/src/main/java/org/apache/vxquery/v0runtime/functions/ValueGeComparisonIterator.java [deleted file]
vxquery-core/src/main/java/org/apache/vxquery/v0runtime/functions/ValueGtComparisonIterator.java [deleted file]
vxquery-core/src/main/java/org/apache/vxquery/v0runtime/functions/ValueLeComparisonIterator.java [deleted file]
vxquery-core/src/main/java/org/apache/vxquery/v0runtime/functions/ValueLtComparisonIterator.java [deleted file]
vxquery-core/src/main/java/org/apache/vxquery/v0runtime/functions/ValueNeComparisonIterator.java [deleted file]
vxquery-core/src/main/java/org/apache/vxquery/v0runtime/nodes/AttributeConstructorIterator.java [deleted file]
vxquery-core/src/main/java/org/apache/vxquery/v0runtime/nodes/CommentConstructorIterator.java [deleted file]
vxquery-core/src/main/java/org/apache/vxquery/v0runtime/nodes/DocumentConstructorIterator.java [deleted file]
vxquery-core/src/main/java/org/apache/vxquery/v0runtime/nodes/ElementConstructorIterator.java [deleted file]
vxquery-core/src/main/java/org/apache/vxquery/v0runtime/nodes/PIConstructorIterator.java [deleted file]
vxquery-core/src/main/java/org/apache/vxquery/v0runtime/nodes/TextConstructorIterator.java [deleted file]
vxquery-core/src/main/java/org/apache/vxquery/v0runtime/paths/AncestorAxisIterator.java [deleted file]
vxquery-core/src/main/java/org/apache/vxquery/v0runtime/paths/AncestorOrSelfAxisIterator.java [deleted file]
vxquery-core/src/main/java/org/apache/vxquery/v0runtime/paths/AttributeAxisIterator.java [deleted file]
vxquery-core/src/main/java/org/apache/vxquery/v0runtime/paths/ChildAxisIterator.java [deleted file]
vxquery-core/src/main/java/org/apache/vxquery/v0runtime/paths/DescendantAxisIterator.java [deleted file]
vxquery-core/src/main/java/org/apache/vxquery/v0runtime/paths/DescendantOrSelfAxisIterator.java [deleted file]
vxquery-core/src/main/java/org/apache/vxquery/v0runtime/paths/FollowingSiblingAxisIterator.java [deleted file]
vxquery-core/src/main/java/org/apache/vxquery/v0runtime/paths/ParentAxisIterator.java [deleted file]
vxquery-core/src/main/java/org/apache/vxquery/v0runtime/paths/PathStack.java [deleted file]
vxquery-core/src/main/java/org/apache/vxquery/v0runtime/paths/PrecedingSiblingAxisIterator.java [deleted file]
vxquery-core/src/main/java/org/apache/vxquery/v0runtime/paths/SelfAxisIterator.java [deleted file]
vxquery-core/src/main/java/org/apache/vxquery/v0runtime/types/CastIterator.java [deleted file]
vxquery-core/src/main/java/org/apache/vxquery/v0runtime/types/CastableIterator.java [deleted file]
vxquery-core/src/main/java/org/apache/vxquery/v0runtime/types/InstanceOfIterator.java [deleted file]
vxquery-core/src/main/java/org/apache/vxquery/v0runtime/util/TupleFactory.java [deleted file]
vxquery-core/src/main/java/org/apache/vxquery/v0runtime/util/XMLParserUtils.java [deleted file]
vxquery-core/src/main/java/org/apache/vxquery/xmlparser/IEventAcceptor.java
vxquery-core/src/main/java/org/apache/vxquery/xmlparser/NodeTreeBuildingEventAcceptor.java
vxquery-core/src/main/java/org/apache/vxquery/xmlquery/query/Module.java
vxquery-core/src/main/java/org/apache/vxquery/xmlquery/query/PrologVariable.java
vxquery-core/src/main/java/org/apache/vxquery/xmlquery/query/XMLQueryCompiler.java
vxquery-core/src/main/java/org/apache/vxquery/xmlquery/translator/XMLQueryTranslator.java
vxquery-core/src/main/xslt/generate-fn-defns.xsl
vxquery-core/src/main/xslt/generate-op-defns.xsl
vxquery-core/src/test/java/org/apache/vxquery/datamodel/dtm/test/DTMTest.java [deleted file]
vxquery-core/src/test/java/org/apache/vxquery/xmlquery/query/SimpleXQueryTest.java
vxquery-xtest/src/main/java/org/apache/vxquery/xtest/TestRunnerFactory.java

diff --git a/pom.xml b/pom.xml
index eef0015..600d021 100644 (file)
--- a/pom.xml
+++ b/pom.xml
       </developer>         
   </developers>
 
+  <repositories>
+    <repository>
+      <id>hyracks-snapshots</id>
+      <url>http://obelix.ics.uci.edu/nexus/content/repositories/hyracks-snapshots/</url>
+      <snapshots>
+      </snapshots>
+    </repository>
+    <repository>
+      <id>hyracks-releases</id>
+      <url>http://obelix.ics.uci.edu/nexus/content/repositories/hyracks-releases/</url>
+      <releases>
+      </releases>
+    </repository>
+  </repositories>
+
   <mailingLists>
       <mailingList>
         <name>VXQuery-dev</name>
   <modules>
     <module>vxquery-core</module>
     <module>vxquery-xtest</module>
+    <module>vxquery-cli</module>
   </modules>
  
 </project>
diff --git a/vxquery-cli/pom.xml b/vxquery-cli/pom.xml
new file mode 100644 (file)
index 0000000..def83e6
--- /dev/null
@@ -0,0 +1,103 @@
+<!--
+  Licensed to the Apache Software Foundation (ASF) under one or more
+  contributor license agreements.  See the NOTICE file distributed with
+  this work for additional information regarding copyright ownership.
+  The ASF licenses this file to You under the Apache License, Version 2.0
+  (the "License"); you may not use this file except in compliance with
+  the License.  You may obtain a copy of the License at
+
+      http://www.apache.org/licenses/LICENSE-2.0
+
+  Unless required by applicable law or agreed to in writing, software
+  distributed under the License is distributed on an "AS IS" BASIS,
+  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+  See the License for the specific language governing permissions and
+  limitations under the License.
+-->
+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+  xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
+  <modelVersion>4.0.0</modelVersion>
+  <groupId>org.apache.vxquery</groupId>
+  <artifactId>vxquery-cli</artifactId>
+  <packaging>jar</packaging>
+  <version>0.1-SNAPSHOT</version>
+  <name>VXQuery CLI</name>
+  <description>Apache VXQuery Processor</description>
+
+  <distributionManagement>
+    <site>
+      <id>vxquery.website</id>
+      <name>VXQuery Website</name>
+      <url>file:../../site/vxquery-cli/</url>
+    </site>
+  </distributionManagement>
+
+  <build>
+    <plugins>
+      <plugin>
+        <groupId>org.apache.maven.plugins</groupId>
+        <artifactId>maven-compiler-plugin</artifactId>
+        <version>2.3.2</version>
+        <configuration>
+          <source>1.6</source>
+          <target>1.6</target>
+        </configuration>
+      </plugin>
+      <plugin>
+        <groupId>org.codehaus.mojo</groupId>
+        <artifactId>appassembler-maven-plugin</artifactId>
+        <version>1.1.1</version>
+        <executions>
+          <execution>
+            <configuration>
+              <programs>
+                <program>
+                  <mainClass>org.apache.vxquery.cli.VXQuery</mainClass>
+                  <name>vxq</name>
+                </program>
+              </programs>
+              <repositoryLayout>flat</repositoryLayout>
+              <repositoryName>lib</repositoryName>
+            </configuration>
+            <phase>package</phase>
+            <goals>
+              <goal>assemble</goal>
+            </goals>
+          </execution>
+        </executions>
+      </plugin>
+    </plugins>
+  </build>
+  
+  <dependencies>
+    <dependency>
+      <groupId>org.apache.vxquery</groupId>
+      <artifactId>vxquery-core</artifactId>
+      <version>0.1-SNAPSHOT</version>
+      <scope>compile</scope>
+    </dependency>
+
+    <dependency>
+      <groupId>edu.uci.ics.hyracks</groupId>
+      <artifactId>hyracks-control-cc</artifactId>
+      <version>0.2.1-SNAPSHOT</version>
+    </dependency>
+
+    <dependency>
+      <groupId>edu.uci.ics.hyracks</groupId>
+      <artifactId>hyracks-control-nc</artifactId>
+      <version>0.2.1-SNAPSHOT</version>
+    </dependency>
+    <dependency>
+       <groupId>args4j</groupId>
+       <artifactId>args4j</artifactId>
+       <version>2.0.9</version>
+    </dependency>
+  </dependencies>
+  
+  <reporting>
+    <plugins>
+    </plugins>
+  </reporting>
+  
+</project>
  * See the License for the specific language governing permissions and
  * limitations under the License.
  */
-package org.apache.vxquery.drivers;
+package org.apache.vxquery.cli;
 
 import java.io.File;
 import java.io.IOException;
 import java.io.StringReader;
 import java.util.ArrayList;
+import java.util.EnumSet;
 import java.util.HashMap;
 import java.util.List;
 import java.util.Map;
@@ -40,9 +41,29 @@ import com.thoughtworks.xstream.io.xml.DomDriver;
 import edu.uci.ics.hyracks.algebricks.common.exceptions.AlgebricksException;
 import edu.uci.ics.hyracks.algebricks.core.algebra.prettyprint.LogicalOperatorPrettyPrintVisitor;
 import edu.uci.ics.hyracks.algebricks.core.algebra.prettyprint.PlanPrettyPrinter;
+import edu.uci.ics.hyracks.api.client.HyracksConnection;
+import edu.uci.ics.hyracks.api.client.IHyracksClientConnection;
+import edu.uci.ics.hyracks.api.job.JobFlag;
+import edu.uci.ics.hyracks.api.job.JobId;
 import edu.uci.ics.hyracks.api.job.JobSpecification;
+import edu.uci.ics.hyracks.control.cc.ClusterControllerService;
+import edu.uci.ics.hyracks.control.common.controllers.CCConfig;
+import edu.uci.ics.hyracks.control.common.controllers.NCConfig;
+import edu.uci.ics.hyracks.control.nc.NodeControllerService;
+import edu.uci.ics.hyracks.dataflow.std.file.FileSplit;
 
 public class VXQuery {
+    private final CmdLineOptions opts;
+
+    private ClusterControllerService cc;
+    private NodeControllerService nc1;
+    private NodeControllerService nc2;
+    private IHyracksClientConnection hcc;
+
+    public VXQuery(CmdLineOptions opts) {
+        this.opts = opts;
+    }
+
     public static void main(String[] args) throws Exception {
         final CmdLineOptions opts = new CmdLineOptions();
         CmdLineParser parser = new CmdLineParser(opts);
@@ -56,6 +77,14 @@ public class VXQuery {
             parser.printUsage(System.err);
             return;
         }
+        VXQuery vxq = new VXQuery(opts);
+        vxq.execute();
+    }
+
+    private void execute() throws Exception {
+        if (!opts.compileOnly) {
+            startLocalHyracks();
+        }
         for (String query : opts.arguments) {
             String qStr = slurp(query);
             if (opts.showQuery) {
@@ -109,15 +138,89 @@ public class VXQuery {
                     }
                 }
             };
+            File result = createTempFile("test");
             XMLQueryCompiler compiler = new XMLQueryCompiler(listener);
-            CompilerControlBlock ccb = new CompilerControlBlock(new StaticContextImpl(RootStaticContextImpl.INSTANCE));
+            CompilerControlBlock ccb = new CompilerControlBlock(new StaticContextImpl(RootStaticContextImpl.INSTANCE),
+                    new FileSplit[] { new FileSplit("nc1", result.getAbsolutePath()) });
             compiler.compile(query, new StringReader(qStr), ccb, opts.optimizationLevel);
             if (opts.compileOnly) {
                 continue;
             }
+
+            runInProcess(compiler.getModule().getHyracksJobSpecification(), result);
+        }
+        if (!opts.compileOnly) {
+            stopLocalHyracks();
         }
     }
 
+    private void runInProcess(JobSpecification spec, File result) throws Exception {
+        JobId jobId = hcc.createJob("test", spec, EnumSet.of(JobFlag.PROFILE_RUNTIME));
+        hcc.start(jobId);
+        hcc.waitForCompletion(jobId);
+        dumpOutputFiles(result);
+    }
+
+    private void dumpOutputFiles(File f) throws IOException {
+        if (f.exists() && f.isFile()) {
+            System.err.println("Reading file: " + f.getAbsolutePath());
+            String data = FileUtils.readFileToString(f);
+            System.err.println(data);
+        }
+    }
+
+    protected File createTempFile(String name) throws IOException {
+        System.err.println("Name: " + name);
+        File tempFile = File.createTempFile(name, ".tmp");
+        System.err.println("Output file: " + tempFile.getAbsolutePath());
+        tempFile.deleteOnExit();
+        return tempFile;
+    }
+
+    public void startLocalHyracks() throws Exception {
+        CCConfig ccConfig = new CCConfig();
+        ccConfig.clientNetIpAddress = "127.0.0.1";
+        ccConfig.clientNetPort = 39000;
+        ccConfig.clusterNetIpAddress = "127.0.0.1";
+        ccConfig.clusterNetPort = 39001;
+        ccConfig.profileDumpPeriod = 10000;
+        File outDir = new File("target/ClusterController");
+        outDir.mkdirs();
+        File ccRoot = File.createTempFile(VXQuery.class.getName(), ".data", outDir);
+        ccRoot.delete();
+        ccRoot.mkdir();
+        ccConfig.ccRoot = ccRoot.getAbsolutePath();
+        cc = new ClusterControllerService(ccConfig);
+        cc.start();
+
+        NCConfig ncConfig1 = new NCConfig();
+        ncConfig1.ccHost = "localhost";
+        ncConfig1.ccPort = 39001;
+        ncConfig1.clusterNetIPAddress = "127.0.0.1";
+        ncConfig1.dataIPAddress = "127.0.0.1";
+        ncConfig1.nodeId = "nc1";
+        nc1 = new NodeControllerService(ncConfig1);
+        nc1.start();
+
+        NCConfig ncConfig2 = new NCConfig();
+        ncConfig2.ccHost = "localhost";
+        ncConfig2.ccPort = 39001;
+        ncConfig2.clusterNetIPAddress = "127.0.0.1";
+        ncConfig2.dataIPAddress = "127.0.0.1";
+        ncConfig2.nodeId = "nc2";
+        nc2 = new NodeControllerService(ncConfig2);
+        nc2.start();
+
+        hcc = new HyracksConnection(ccConfig.clientNetIpAddress, ccConfig.clientNetPort);
+        hcc.createApplication("test", null);
+    }
+
+    public void stopLocalHyracks() throws Exception {
+        nc2.stop();
+        nc1.stop();
+        cc.stop();
+    }
+
     private static String slurp(String query) throws IOException {
         return FileUtils.readFileToString(new File(query));
     }
index fa1f0b7..43e6b1e 100644 (file)
     </site>
   </distributionManagement>
 
-  <repositories>
-    <repository>
-      <id>hyracks-snapshots</id>
-      <url>http://obelix.ics.uci.edu/nexus/content/repositories/hyracks-snapshots/</url>
-      <snapshots>
-      </snapshots>
-    </repository>
-    <repository>
-      <id>hyracks-releases</id>
-      <url>http://obelix.ics.uci.edu/nexus/content/repositories/hyracks-releases/</url>
-      <releases>
-      </releases>
-    </repository>
-  </repositories>
-
   <build>
     <plugins>
       <plugin>
         </executions>
       </plugin>
       <plugin>
-        <groupId>org.codehaus.mojo</groupId>
-        <artifactId>appassembler-maven-plugin</artifactId>
-        <version>1.1.1</version>
-        <executions>
-          <execution>
-            <configuration>
-              <programs>
-                <program>
-                  <mainClass>org.apache.vxquery.drivers.VXQuery</mainClass>
-                  <name>vxq</name>
-                </program>
-              </programs>
-              <repositoryLayout>flat</repositoryLayout>
-              <repositoryName>lib</repositoryName>
-            </configuration>
-            <phase>package</phase>
-            <goals>
-              <goal>assemble</goal>
-            </goals>
-          </execution>
-        </executions>
-      </plugin>
-      <plugin>
         <groupId>org.apache.maven.plugins</groupId>
         <artifactId>maven-surefire-plugin</artifactId>
         <version>2.9</version>
         <version>1.4</version>
     </dependency>
 
-    <dependency>
-      <groupId>args4j</groupId>
-      <artifactId>args4j</artifactId>
-      <version>2.0.9</version>
-    </dependency>
 
     <dependency>
       <groupId>edu.uci.ics.hyracks</groupId>
index cff9cd5..4756310 100644 (file)
@@ -18,14 +18,23 @@ package org.apache.vxquery.compiler;
 
 import org.apache.vxquery.context.StaticContext;
 
+import edu.uci.ics.hyracks.dataflow.std.file.FileSplit;
+
 public class CompilerControlBlock {
     private final StaticContext ctx;
 
-    public CompilerControlBlock(StaticContext ctx) {
+    private final FileSplit[] resultFileSplits;
+
+    public CompilerControlBlock(StaticContext ctx, FileSplit[] resultFileSplits) {
         this.ctx = ctx;
+        this.resultFileSplits = resultFileSplits;
     }
 
     public StaticContext getStaticContext() {
         return ctx;
     }
+
+    public FileSplit[] getResultFileSplits() {
+        return resultFileSplits;
+    }
 }
\ No newline at end of file
@@ -1,15 +1,16 @@
 package org.apache.vxquery.compiler.algebricks;
 
+import org.apache.commons.codec.binary.Hex;
 import org.apache.vxquery.types.SequenceType;
 
 import edu.uci.ics.hyracks.algebricks.core.algebra.expressions.IAlgebricksConstantValue;
 
-public class ConstantValue implements IAlgebricksConstantValue {
+public class VXQueryConstantValue implements IAlgebricksConstantValue {
     private final SequenceType type;
 
-    private final Object value;
+    private final byte[] value;
 
-    public ConstantValue(SequenceType type, Object value) {
+    public VXQueryConstantValue(SequenceType type, byte[] value) {
         this.type = type;
         this.value = value;
     }
@@ -33,12 +34,15 @@ public class ConstantValue implements IAlgebricksConstantValue {
         return type;
     }
 
-    public Object getValue() {
+    public byte[] getValue() {
         return value;
     }
 
     @Override
     public String toString() {
-        return type + "(" + value + ")";
+        StringBuilder buffer = new StringBuilder();
+        buffer.append(type).append("(bytes[").append(value.length).append("] = [").append(Hex.encodeHexString(value))
+                .append("])");
+        return buffer.toString();
     }
 }
\ No newline at end of file
@@ -1,8 +1,10 @@
-package org.apache.vxquery.compiler.jobgen;
+package org.apache.vxquery.compiler.algebricks;
 
 import edu.uci.ics.hyracks.algebricks.common.exceptions.AlgebricksException;
 import edu.uci.ics.hyracks.algebricks.core.algebra.base.ILogicalExpression;
+import edu.uci.ics.hyracks.algebricks.core.algebra.base.LogicalExpressionTag;
 import edu.uci.ics.hyracks.algebricks.core.algebra.expressions.AggregateFunctionCallExpression;
+import edu.uci.ics.hyracks.algebricks.core.algebra.expressions.ConstantExpression;
 import edu.uci.ics.hyracks.algebricks.core.algebra.expressions.ILogicalExpressionJobGen;
 import edu.uci.ics.hyracks.algebricks.core.algebra.expressions.IVariableTypeEnvironment;
 import edu.uci.ics.hyracks.algebricks.core.algebra.expressions.StatefulFunctionCallExpression;
@@ -14,36 +16,44 @@ import edu.uci.ics.hyracks.algebricks.runtime.base.IEvaluatorFactory;
 import edu.uci.ics.hyracks.algebricks.runtime.base.IRunningAggregateFunctionFactory;
 import edu.uci.ics.hyracks.algebricks.runtime.base.ISerializableAggregateFunctionFactory;
 import edu.uci.ics.hyracks.algebricks.runtime.base.IUnnestingFunctionFactory;
+import edu.uci.ics.hyracks.algebricks.runtime.evaluators.ConstantEvalFactory;
 
-public class ExpressionJobGen implements ILogicalExpressionJobGen {
+public class VXQueryExpressionJobGen implements ILogicalExpressionJobGen {
     @Override
-    public IAggregateFunctionFactory createAggregateFunctionFactory(AggregateFunctionCallExpression arg0,
-            IVariableTypeEnvironment arg1, IOperatorSchema[] arg2, JobGenContext arg3) throws AlgebricksException {
+    public IEvaluatorFactory createEvaluatorFactory(ILogicalExpression expr, IVariableTypeEnvironment env,
+            IOperatorSchema[] inputSchemas, JobGenContext context) throws AlgebricksException {
+        if (expr.getExpressionTag() == LogicalExpressionTag.CONSTANT) {
+            VXQueryConstantValue cv = (VXQueryConstantValue) ((ConstantExpression) expr).getValue();
+            return new ConstantEvalFactory(cv.getValue());
+        }
         return null;
     }
 
     @Override
-    public IEvaluatorFactory createEvaluatorFactory(ILogicalExpression arg0, IVariableTypeEnvironment arg1,
-            IOperatorSchema[] arg2, JobGenContext arg3) throws AlgebricksException {
+    public IAggregateFunctionFactory createAggregateFunctionFactory(AggregateFunctionCallExpression expr,
+            IVariableTypeEnvironment env, IOperatorSchema[] inputSchemas, JobGenContext context)
+            throws AlgebricksException {
         return null;
     }
 
     @Override
-    public IRunningAggregateFunctionFactory createRunningAggregateFunctionFactory(StatefulFunctionCallExpression arg0,
-            IVariableTypeEnvironment arg1, IOperatorSchema[] arg2, JobGenContext arg3) throws AlgebricksException {
+    public ISerializableAggregateFunctionFactory createSerializableAggregateFunctionFactory(
+            AggregateFunctionCallExpression expr, IVariableTypeEnvironment env, IOperatorSchema[] inputSchemas,
+            JobGenContext context) throws AlgebricksException {
         return null;
     }
 
     @Override
-    public ISerializableAggregateFunctionFactory createSerializableAggregateFunctionFactory(
-            AggregateFunctionCallExpression arg0, IVariableTypeEnvironment arg1, IOperatorSchema[] arg2,
-            JobGenContext arg3) throws AlgebricksException {
+    public IRunningAggregateFunctionFactory createRunningAggregateFunctionFactory(StatefulFunctionCallExpression expr,
+            IVariableTypeEnvironment env, IOperatorSchema[] inputSchemas, JobGenContext context)
+            throws AlgebricksException {
         return null;
     }
 
     @Override
-    public IUnnestingFunctionFactory createUnnestingFunctionFactory(UnnestingFunctionCallExpression arg0,
-            IVariableTypeEnvironment arg1, IOperatorSchema[] arg2, JobGenContext arg3) throws AlgebricksException {
+    public IUnnestingFunctionFactory createUnnestingFunctionFactory(UnnestingFunctionCallExpression expr,
+            IVariableTypeEnvironment env, IOperatorSchema[] inputSchemas, JobGenContext context)
+            throws AlgebricksException {
         return null;
     }
 }
\ No newline at end of file
diff --git a/vxquery-core/src/main/java/org/apache/vxquery/compiler/algebricks/VXQueryPrinterFactory.java b/vxquery-core/src/main/java/org/apache/vxquery/compiler/algebricks/VXQueryPrinterFactory.java
new file mode 100644 (file)
index 0000000..7043ea3
--- /dev/null
@@ -0,0 +1,77 @@
+package org.apache.vxquery.compiler.algebricks;
+
+import java.io.PrintStream;
+
+import org.apache.vxquery.datamodel.accessors.TaggedValuePointable;
+import org.apache.vxquery.types.BuiltinTypeConstants;
+
+import edu.uci.ics.hyracks.algebricks.common.exceptions.AlgebricksException;
+import edu.uci.ics.hyracks.algebricks.data.IPrinter;
+import edu.uci.ics.hyracks.algebricks.data.IPrinterFactory;
+import edu.uci.ics.hyracks.data.std.primitive.BooleanPointable;
+import edu.uci.ics.hyracks.data.std.primitive.DoublePointable;
+import edu.uci.ics.hyracks.data.std.primitive.LongPointable;
+import edu.uci.ics.hyracks.data.std.primitive.UTF8StringPointable;
+
+public class VXQueryPrinterFactory implements IPrinterFactory {
+    private static final long serialVersionUID = 1L;
+
+    @Override
+    public IPrinter createPrinter() {
+        return new IPrinter() {
+            private final TaggedValuePointable tvp = new TaggedValuePointable();
+
+            private final UTF8StringPointable utf8sp = (UTF8StringPointable) UTF8StringPointable.FACTORY
+                    .createPointable();
+
+            private final LongPointable lp = (LongPointable) LongPointable.FACTORY.createPointable();
+
+            private final DoublePointable dp = (DoublePointable) DoublePointable.FACTORY.createPointable();
+
+            private final BooleanPointable bp = (BooleanPointable) BooleanPointable.FACTORY.createPointable();
+
+            @Override
+            public void print(byte[] b, int s, int l, PrintStream ps) throws AlgebricksException {
+                tvp.set(b, s, l);
+                byte tag = tvp.getTag();
+                switch ((int) tag) {
+                    case BuiltinTypeConstants.XS_STRING_TYPE_ID: {
+                        tvp.getValue(utf8sp);
+                        int utfLen = utf8sp.getUTFLen();
+                        int offset = 2;
+                        while (utfLen > 0) {
+                            char c = utf8sp.charAt(offset);
+                            ps.append(c);
+                            int cLen = UTF8StringPointable.getModifiedUTF8Len(c);
+                            offset += cLen;
+                            utfLen -= cLen;
+                        }
+                        break;
+                    }
+
+                    case BuiltinTypeConstants.XS_INTEGER_TYPE_ID: {
+                        tvp.getValue(lp);
+                        ps.print(lp.longValue());
+                        break;
+                    }
+
+                    case BuiltinTypeConstants.XS_DOUBLE_TYPE_ID: {
+                        tvp.getValue(dp);
+                        ps.print(dp.doubleValue());
+                        break;
+                    }
+
+                    case BuiltinTypeConstants.XS_BOOLEAN_TYPE_ID: {
+                        tvp.getValue(bp);
+                        ps.print(bp.getBoolean());
+                        break;
+                    }
+                }
+            }
+
+            @Override
+            public void init() throws AlgebricksException {
+            }
+        };
+    }
+}
\ No newline at end of file
@@ -4,11 +4,12 @@ import edu.uci.ics.hyracks.algebricks.common.exceptions.AlgebricksException;
 import edu.uci.ics.hyracks.algebricks.data.IPrinterFactory;
 import edu.uci.ics.hyracks.algebricks.data.IPrinterFactoryProvider;
 
-public class PrinterFactoryProvider implements IPrinterFactoryProvider {
-    public static final IPrinterFactoryProvider INSTANCE = new PrinterFactoryProvider();
+public class VXQueryPrinterFactoryProvider implements IPrinterFactoryProvider {
+    public static final IPrinterFactoryProvider INSTANCE = new VXQueryPrinterFactoryProvider();
 
     @Override
-    public IPrinterFactory getPrinterFactory(Object arg0) throws AlgebricksException {
-        return null;
+    public IPrinterFactory getPrinterFactory(Object type) throws AlgebricksException {
+
+        return new VXQueryPrinterFactory();
     }
 }
\ No newline at end of file
index efe43a0..1287001 100644 (file)
 */
 package org.apache.vxquery.context;
 
-import org.apache.vxquery.v0datamodel.XDMValue;
-import org.apache.vxquery.v0datamodel.atomic.DateTimeValue;
+import edu.uci.ics.hyracks.data.std.api.IPointable;
+import edu.uci.ics.hyracks.dataflow.common.data.accessors.IValueReference;
 
 public interface DynamicContext {
     public StaticContext getStaticContext();
 
-    public DateTimeValue getCurrentDateTime();
+    public void getCurrentDateTime(IPointable value);
 
-    public void setCurrentDateTime(DateTimeValue currentDateTime);
+    public void setCurrentDateTime(IValueReference value);
 
-    public void bindVariable(XQueryVariable var, XDMValue value);
+    public void bindVariable(XQueryVariable var, IValueReference vReference);
 
-    public XDMValue lookupVariable(XQueryVariable var);
+    public void lookupVariable(XQueryVariable var, IPointable value);
 }
\ No newline at end of file
index 4f9fdf7..16f74df 100644 (file)
 */
 package org.apache.vxquery.context;
 
-import java.util.HashMap;
-import java.util.Map;
-
-import org.apache.vxquery.v0datamodel.XDMValue;
-import org.apache.vxquery.v0datamodel.atomic.DateTimeValue;
+import edu.uci.ics.hyracks.data.std.api.IPointable;
+import edu.uci.ics.hyracks.dataflow.common.data.accessors.IValueReference;
 
 public class DynamicContextImpl implements DynamicContext {
     private StaticContext sCtx;
 
-    private DateTimeValue currentDateTime;
-
-    private Map<XQueryVariable, XDMValue> externalBindings;
-
     public DynamicContextImpl(StaticContext sCtx) {
         this.sCtx = sCtx;
-        externalBindings = new HashMap<XQueryVariable, XDMValue>();
     }
 
     @Override
@@ -40,22 +32,18 @@ public class DynamicContextImpl implements DynamicContext {
     }
 
     @Override
-    public void setCurrentDateTime(DateTimeValue currentDateTime) {
-        this.currentDateTime = currentDateTime;
+    public void setCurrentDateTime(IValueReference value) {
     }
 
     @Override
-    public DateTimeValue getCurrentDateTime() {
-        return currentDateTime;
+    public void getCurrentDateTime(IPointable value) {
     }
 
     @Override
-    public void bindVariable(XQueryVariable var, XDMValue value) {
-        externalBindings.put(var, value);
+    public void bindVariable(XQueryVariable var, IValueReference value) {
     }
 
     @Override
-    public XDMValue lookupVariable(XQueryVariable var) {
-        return externalBindings.get(var);
+    public void lookupVariable(XQueryVariable var, IPointable value) {
     }
 }
\ No newline at end of file
diff --git a/vxquery-core/src/main/java/org/apache/vxquery/control/ControlBlockFactory.java b/vxquery-core/src/main/java/org/apache/vxquery/control/ControlBlockFactory.java
deleted file mode 100644 (file)
index 9a2565c..0000000
+++ /dev/null
@@ -1,26 +0,0 @@
-/*
-* Licensed to the Apache Software Foundation (ASF) under one or more
-* contributor license agreements.  See the NOTICE file distributed with
-* this work for additional information regarding copyright ownership.
-* The ASF licenses this file to You under the Apache License, Version 2.0
-* (the "License"); you may not use this file except in compliance with
-* the License.  You may obtain a copy of the License at
-*
-*     http://www.apache.org/licenses/LICENSE-2.0
-*
-* Unless required by applicable law or agreed to in writing, software
-* distributed under the License is distributed on an "AS IS" BASIS,
-* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-* See the License for the specific language governing permissions and
-* limitations under the License.
-*/
-package org.apache.vxquery.control;
-
-import org.apache.vxquery.compiler.CompilerControlBlock;
-import org.apache.vxquery.v0runtime.RuntimeControlBlock;
-
-public interface ControlBlockFactory {
-    public CompilerControlBlock createCompilerControlBlock();
-
-    public RuntimeControlBlock createRuntimeControlBlock();
-}
\ No newline at end of file
@@ -1,4 +1,4 @@
-package org.apache.vxquery.datamodel;
+package org.apache.vxquery.datamodel.accessors;
 
 import edu.uci.ics.hyracks.data.std.api.AbstractPointable;
 import edu.uci.ics.hyracks.data.std.api.IPointable;
@@ -6,7 +6,7 @@ import edu.uci.ics.hyracks.data.std.primitive.BytePointable;
 
 public class TaggedValuePointable extends AbstractPointable {
     public byte getTag() {
-        return BytePointable.getByte(bytes, 0);
+        return BytePointable.getByte(bytes, start);
     }
 
     public void getValue(IPointable value) {
@@ -1,4 +1,7 @@
-package org.apache.vxquery.datamodel;
+package org.apache.vxquery.datamodel.accessors.nodes;
+
+import org.apache.vxquery.datamodel.accessors.TaggedValuePointable;
+import org.apache.vxquery.datamodel.accessors.atomic.QNamePointable;
 
 import edu.uci.ics.hyracks.data.std.api.AbstractPointable;
 import edu.uci.ics.hyracks.data.std.primitive.IntegerPointable;
@@ -1,4 +1,6 @@
-package org.apache.vxquery.datamodel;
+package org.apache.vxquery.datamodel.accessors.nodes;
+
+import org.apache.vxquery.datamodel.accessors.SequencePointable;
 
 import edu.uci.ics.hyracks.data.std.api.AbstractPointable;
 import edu.uci.ics.hyracks.data.std.primitive.IntegerPointable;
@@ -1,4 +1,7 @@
-package org.apache.vxquery.datamodel;
+package org.apache.vxquery.datamodel.accessors.nodes;
+
+import org.apache.vxquery.datamodel.accessors.SequencePointable;
+import org.apache.vxquery.datamodel.accessors.atomic.QNamePointable;
 
 import edu.uci.ics.hyracks.data.std.api.AbstractPointable;
 import edu.uci.ics.hyracks.data.std.primitive.BytePointable;
@@ -1,4 +1,6 @@
-package org.apache.vxquery.datamodel;
+package org.apache.vxquery.datamodel.accessors.nodes;
+
+import org.apache.vxquery.datamodel.accessors.TaggedValuePointable;
 
 import edu.uci.ics.hyracks.data.std.algorithms.BinarySearchAlgorithm;
 import edu.uci.ics.hyracks.data.std.api.AbstractPointable;
@@ -1,4 +1,6 @@
-package org.apache.vxquery.datamodel;
+package org.apache.vxquery.datamodel.accessors.nodes;
+
+import org.apache.vxquery.datamodel.accessors.TaggedValuePointable;
 
 import edu.uci.ics.hyracks.data.std.api.AbstractPointable;
 import edu.uci.ics.hyracks.data.std.primitive.IntegerPointable;
diff --git a/vxquery-core/src/main/java/org/apache/vxquery/datamodel/builders/AttributeNodeBuilder.java b/vxquery-core/src/main/java/org/apache/vxquery/datamodel/builders/AttributeNodeBuilder.java
deleted file mode 100644 (file)
index dae1ee3..0000000
+++ /dev/null
@@ -1,5 +0,0 @@
-package org.apache.vxquery.datamodel.builders;
-
-public class AttributeNodeBuilder {
-
-}
diff --git a/vxquery-core/src/main/java/org/apache/vxquery/datamodel/builders/CommentNodeBuilder.java b/vxquery-core/src/main/java/org/apache/vxquery/datamodel/builders/CommentNodeBuilder.java
deleted file mode 100644 (file)
index 87fa91c..0000000
+++ /dev/null
@@ -1,5 +0,0 @@
-package org.apache.vxquery.datamodel.builders;
-
-public class CommentNodeBuilder {
-
-}
diff --git a/vxquery-core/src/main/java/org/apache/vxquery/datamodel/builders/PINodeBuilder.java b/vxquery-core/src/main/java/org/apache/vxquery/datamodel/builders/PINodeBuilder.java
deleted file mode 100644 (file)
index 721672c..0000000
+++ /dev/null
@@ -1,5 +0,0 @@
-package org.apache.vxquery.datamodel.builders;
-
-public class PINodeBuilder {
-
-}
diff --git a/vxquery-core/src/main/java/org/apache/vxquery/datamodel/builders/TextNodeBuilder.java b/vxquery-core/src/main/java/org/apache/vxquery/datamodel/builders/TextNodeBuilder.java
deleted file mode 100644 (file)
index 26f96ef..0000000
+++ /dev/null
@@ -1,5 +0,0 @@
-package org.apache.vxquery.datamodel.builders;
-
-public class TextNodeBuilder {
-
-}
diff --git a/vxquery-core/src/main/java/org/apache/vxquery/datamodel/builders/atomic/StringValueBuilder.java b/vxquery-core/src/main/java/org/apache/vxquery/datamodel/builders/atomic/StringValueBuilder.java
new file mode 100644 (file)
index 0000000..3b0db69
--- /dev/null
@@ -0,0 +1,18 @@
+package org.apache.vxquery.datamodel.builders.atomic;
+
+import java.io.DataOutput;
+import java.io.IOException;
+
+import edu.uci.ics.hyracks.data.std.primitive.UTF8StringWriter;
+
+public class StringValueBuilder {
+    private final UTF8StringWriter writer;
+
+    public StringValueBuilder() {
+        writer = new UTF8StringWriter();
+    }
+
+    public void write(CharSequence string, DataOutput out) throws IOException {
+        writer.writeUTF8String(string, out);
+    }
+}
\ No newline at end of file
diff --git a/vxquery-core/src/main/java/org/apache/vxquery/datamodel/builders/base/AbstractValueBuilder.java b/vxquery-core/src/main/java/org/apache/vxquery/datamodel/builders/base/AbstractValueBuilder.java
new file mode 100644 (file)
index 0000000..4fa8f76
--- /dev/null
@@ -0,0 +1,4 @@
+package org.apache.vxquery.datamodel.builders.base;
+
+public abstract class AbstractValueBuilder implements IValueBuilder {
+}
\ No newline at end of file
index 87a468d..5415d36 100644 (file)
@@ -1,11 +1,11 @@
 package org.apache.vxquery.datamodel.builders.base;
 
-import org.apache.vxquery.datamodel.builders.AttributeNodeBuilder;
-import org.apache.vxquery.datamodel.builders.CommentNodeBuilder;
-import org.apache.vxquery.datamodel.builders.DictionaryBuilder;
-import org.apache.vxquery.datamodel.builders.ElementNodeBuilder;
-import org.apache.vxquery.datamodel.builders.PINodeBuilder;
-import org.apache.vxquery.datamodel.builders.TextNodeBuilder;
+import org.apache.vxquery.datamodel.builders.nodes.AttributeNodeBuilder;
+import org.apache.vxquery.datamodel.builders.nodes.CommentNodeBuilder;
+import org.apache.vxquery.datamodel.builders.nodes.DictionaryBuilder;
+import org.apache.vxquery.datamodel.builders.nodes.ElementNodeBuilder;
+import org.apache.vxquery.datamodel.builders.nodes.PINodeBuilder;
+import org.apache.vxquery.datamodel.builders.nodes.TextNodeBuilder;
 
 public interface IDMBuilderPool {
     public DictionaryBuilder getDictionaryBuilder();
diff --git a/vxquery-core/src/main/java/org/apache/vxquery/datamodel/builders/base/IValueBuilder.java b/vxquery-core/src/main/java/org/apache/vxquery/datamodel/builders/base/IValueBuilder.java
new file mode 100644 (file)
index 0000000..1776a78
--- /dev/null
@@ -0,0 +1,9 @@
+package org.apache.vxquery.datamodel.builders.base;
+
+import java.io.DataOutput;
+
+public interface IValueBuilder {
+    public void reset();
+
+    public void write(DataOutput out);
+}
\ No newline at end of file
diff --git a/vxquery-core/src/main/java/org/apache/vxquery/datamodel/builders/nodes/AttributeNodeBuilder.java b/vxquery-core/src/main/java/org/apache/vxquery/datamodel/builders/nodes/AttributeNodeBuilder.java
new file mode 100644 (file)
index 0000000..a9e6105
--- /dev/null
@@ -0,0 +1,5 @@
+package org.apache.vxquery.datamodel.builders.nodes;
+
+public class AttributeNodeBuilder {
+
+}
diff --git a/vxquery-core/src/main/java/org/apache/vxquery/datamodel/builders/nodes/CommentNodeBuilder.java b/vxquery-core/src/main/java/org/apache/vxquery/datamodel/builders/nodes/CommentNodeBuilder.java
new file mode 100644 (file)
index 0000000..39e5245
--- /dev/null
@@ -0,0 +1,5 @@
+package org.apache.vxquery.datamodel.builders.nodes;
+
+public class CommentNodeBuilder {
+
+}
diff --git a/vxquery-core/src/main/java/org/apache/vxquery/datamodel/builders/nodes/PINodeBuilder.java b/vxquery-core/src/main/java/org/apache/vxquery/datamodel/builders/nodes/PINodeBuilder.java
new file mode 100644 (file)
index 0000000..0da5a38
--- /dev/null
@@ -0,0 +1,5 @@
+package org.apache.vxquery.datamodel.builders.nodes;
+
+public class PINodeBuilder {
+
+}
diff --git a/vxquery-core/src/main/java/org/apache/vxquery/datamodel/builders/nodes/TextNodeBuilder.java b/vxquery-core/src/main/java/org/apache/vxquery/datamodel/builders/nodes/TextNodeBuilder.java
new file mode 100644 (file)
index 0000000..884c52e
--- /dev/null
@@ -0,0 +1,5 @@
+package org.apache.vxquery.datamodel.builders.nodes;
+
+public class TextNodeBuilder {
+
+}
index 4157460..c85be26 100644 (file)
@@ -18,15 +18,11 @@ package org.apache.vxquery.functions;
 
 import javax.xml.namespace.QName;
 
-import org.apache.vxquery.v0runtime.base.FunctionIteratorFactory;
-
 public class BuiltinFunction extends Function {
-    private FunctionIteratorFactory fif;
     private boolean implicitContext;
 
-    public BuiltinFunction(QName name, Signature signature, FunctionIteratorFactory fif, boolean implicitContext) {
+    public BuiltinFunction(QName name, Signature signature, boolean implicitContext) {
         super(name, signature);
-        this.fif = fif;
         this.implicitContext = implicitContext;
     }
 
@@ -38,9 +34,4 @@ public class BuiltinFunction extends Function {
     public boolean useContextImplicitly() {
         return implicitContext;
     }
-
-    @Override
-    public FunctionIteratorFactory getIteratorFactory() {
-        return fif;
-    }
 }
\ No newline at end of file
index 3f4d545..9d0891d 100644 (file)
@@ -18,8 +18,6 @@ package org.apache.vxquery.functions;
 
 import javax.xml.namespace.QName;
 
-import org.apache.vxquery.v0runtime.base.FunctionIteratorFactory;
-
 public class ExternalFunction extends Function {
     public ExternalFunction(QName name, Signature signature) {
         super(name, signature);
@@ -31,11 +29,6 @@ public class ExternalFunction extends Function {
     }
 
     @Override
-    public FunctionIteratorFactory getIteratorFactory() {
-        return null;
-    }
-
-    @Override
     public boolean useContextImplicitly() {
         return false;
     }
index 2a3c82f..ae7f910 100644 (file)
@@ -18,8 +18,6 @@ package org.apache.vxquery.functions;
 
 import javax.xml.namespace.QName;
 
-import org.apache.vxquery.v0runtime.base.FunctionIteratorFactory;
-
 import edu.uci.ics.hyracks.algebricks.core.algebra.functions.FunctionIdentifier;
 import edu.uci.ics.hyracks.algebricks.core.algebra.functions.IFunctionInfo;
 
@@ -46,8 +44,6 @@ public abstract class Function implements IFunctionInfo {
 
     public abstract boolean useContextImplicitly();
 
-    public abstract FunctionIteratorFactory getIteratorFactory();
-
     public QName getName() {
         return qname;
     }
index 1496597..1819129 100644 (file)
@@ -18,14 +18,9 @@ package org.apache.vxquery.functions;
 
 import javax.xml.namespace.QName;
 
-import org.apache.vxquery.v0runtime.base.FunctionIteratorFactory;
-
 public class Operator extends Function {
-    private FunctionIteratorFactory fif;
-
-    public Operator(QName name, Signature signature, FunctionIteratorFactory fif) {
+    public Operator(QName name, Signature signature) {
         super(name, signature);
-        this.fif = fif;
     }
 
     @Override
@@ -37,9 +32,4 @@ public class Operator extends Function {
     public boolean useContextImplicitly() {
         return false;
     }
-
-    @Override
-    public FunctionIteratorFactory getIteratorFactory() {
-        return fif;
-    }
 }
\ No newline at end of file
index 9c2f66e..63b8c12 100644 (file)
@@ -17,15 +17,12 @@ package org.apache.vxquery.functions;
 import javax.xml.namespace.QName;
 
 import org.apache.vxquery.context.XQueryVariable;
-import org.apache.vxquery.v0runtime.RuntimePlan;
-import org.apache.vxquery.v0runtime.base.FunctionIteratorFactory;
 
 import edu.uci.ics.hyracks.algebricks.core.algebra.base.ILogicalPlan;
 
 public class UserDefinedXQueryFunction extends Function {
     private XQueryVariable[] params;
     private ILogicalPlan body;
-    private RuntimePlan plan;
 
     public UserDefinedXQueryFunction(QName name, Signature signature, ILogicalPlan body) {
         super(name, signature);
@@ -45,15 +42,6 @@ public class UserDefinedXQueryFunction extends Function {
         return FunctionTag.UDXQUERY;
     }
 
-    @Override
-    public FunctionIteratorFactory getIteratorFactory() {
-        return null;
-    }
-
-    public void setRuntimePlan(RuntimePlan plan) {
-        this.plan = plan;
-    }
-
     public XQueryVariable[] getParameters() {
         return params;
     }
index 49b1513..eba81bb 100644 (file)
@@ -10,8 +10,8 @@ public class QueryResultDataSink implements IDataSink {
     private final FileSplit[] fileSplits;
     private final IPartitioningProperty pProperty;
 
-    public QueryResultDataSink() {
-        fileSplits = new FileSplit[] { new FileSplit("FOOnode", "/tmp/junk") };
+    public QueryResultDataSink(FileSplit[] fileSplits) {
+        this.fileSplits = fileSplits;
         pProperty = new RandomPartitioningProperty(new FileSplitDomain(fileSplits));
     }
 
index e40cab5..1ce1274 100644 (file)
 */
 package org.apache.vxquery.types;
 
-import org.apache.vxquery.types.processors.CastProcessor;
-import org.apache.vxquery.types.processors.NotCastableCastProcessor;
-
 abstract class AbstractNodeType implements NodeType {
     @Override
     public final boolean isAtomicType() {
         return false;
     }
-
-    @Override
-    public final CastProcessor getCastProcessor(XQType inputBaseType) {
-        return NotCastableCastProcessor.INSTANCE_XPST0051;
-    }
 }
\ No newline at end of file
index 6cca292..8d24ee2 100644 (file)
  */
 package org.apache.vxquery.types;
 
-import org.apache.vxquery.exceptions.SystemException;
-import org.apache.vxquery.types.processors.CastProcessor;
-import org.apache.vxquery.types.processors.NotCastableCastProcessor;
-import org.apache.vxquery.util.Filter;
-import org.apache.vxquery.v0datamodel.XDMValue;
-
 public final class AnyItemType implements ItemType {
     public static final AnyItemType INSTANCE = new AnyItemType();
 
-    private static final Filter<XDMValue> INSTANCE_OF_FILTER = new Filter<XDMValue>() {
-        @Override
-        public boolean accept(XDMValue value) throws SystemException {
-            return value != null && value.getDMOKind().isItem();
-        }
-    };
-
     private AnyItemType() {
     }
 
@@ -39,14 +26,4 @@ public final class AnyItemType implements ItemType {
     public boolean isAtomicType() {
         return false;
     }
-
-    @Override
-    public Filter<XDMValue> createInstanceOfFilter() {
-        return INSTANCE_OF_FILTER;
-    }
-
-    @Override
-    public CastProcessor getCastProcessor(XQType inputBaseType) {
-        return NotCastableCastProcessor.INSTANCE_XPST0051;
-    }
 }
\ No newline at end of file
index 7ac354f..ff0d320 100644 (file)
  */
 package org.apache.vxquery.types;
 
-import org.apache.vxquery.exceptions.SystemException;
-import org.apache.vxquery.util.Filter;
-import org.apache.vxquery.v0datamodel.XDMValue;
-
 public final class AnyNodeType extends AbstractNodeType {
     public static final AnyNodeType INSTANCE = new AnyNodeType();
 
-    private static final Filter<XDMValue> INSTANCE_OF_FILTER = new Filter<XDMValue>() {
-        @Override
-        public boolean accept(XDMValue value) throws SystemException {
-            if (value == null) {
-                return false;
-            }
-            return value.getDMOKind().isNode();
-        }
-    };
-
     private AnyNodeType() {
     }
 
@@ -40,9 +26,4 @@ public final class AnyNodeType extends AbstractNodeType {
     public NodeKind getNodeKind() {
         return NodeKind.ANY;
     }
-
-    @Override
-    public Filter<XDMValue> createInstanceOfFilter() {
-        return INSTANCE_OF_FILTER;
-    }
 }
\ No newline at end of file
index e3199e5..0ef6a1b 100644 (file)
  */
 package org.apache.vxquery.types;
 
-import org.apache.vxquery.exceptions.SystemException;
-import org.apache.vxquery.types.processors.CastProcessor;
-import org.apache.vxquery.types.processors.NotCastableCastProcessor;
-import org.apache.vxquery.util.Filter;
-import org.apache.vxquery.v0datamodel.XDMValue;
-
 public final class AnySimpleType implements SimpleType {
     public static final SimpleType INSTANCE = new AnySimpleType();
 
-    private static final Filter<XDMValue> INSTANCE_OF_FILTER = new Filter<XDMValue>() {
-        @Override
-        public boolean accept(XDMValue value) throws SystemException {
-            if (value == null) {
-                return true;
-            }
-            throw new UnsupportedOperationException();
-        }
-    };
-
     private AnySimpleType() {
     }
 
@@ -67,14 +51,4 @@ public final class AnySimpleType implements SimpleType {
     public boolean isSimpleType() {
         return true;
     }
-
-    @Override
-    public Filter<XDMValue> createInstanceOfFilter() {
-        return INSTANCE_OF_FILTER;
-    }
-
-    @Override
-    public CastProcessor getCastProcessor(XQType inputBaseType) {
-        return NotCastableCastProcessor.INSTANCE_XPST0051;
-    }
 }
\ No newline at end of file
index 79197c4..7a1fab9 100644 (file)
  */
 package org.apache.vxquery.types;
 
-import org.apache.vxquery.types.processors.CastProcessor;
-import org.apache.vxquery.types.processors.NotCastableCastProcessor;
-import org.apache.vxquery.util.Filter;
-import org.apache.vxquery.v0datamodel.XDMValue;
-
 public final class AnyType implements ComplexType {
     public static final SchemaType INSTANCE = new AnyType();
 
@@ -56,14 +51,4 @@ public final class AnyType implements ComplexType {
     public boolean isSimpleType() {
         return false;
     }
-
-    @Override
-    public Filter<XDMValue> createInstanceOfFilter() {
-        return null;
-    }
-
-    @Override
-    public CastProcessor getCastProcessor(XQType inputBaseType) {
-        return NotCastableCastProcessor.INSTANCE_XPST0051;
-    }
 }
\ No newline at end of file
index 0c734c9..980c493 100644 (file)
  */
 package org.apache.vxquery.types;
 
-import org.apache.vxquery.exceptions.SystemException;
-import org.apache.vxquery.util.Filter;
-import org.apache.vxquery.v0datamodel.DMOKind;
-import org.apache.vxquery.v0datamodel.XDMNode;
-import org.apache.vxquery.v0datamodel.XDMValue;
-
 public final class AttributeType extends AbstractNodeType {
     public static final AttributeType ANYATTRIBUTE = new AttributeType(NameTest.STAR_NAMETEST,
             BuiltinTypeRegistry.XS_ANY_ATOMIC);
@@ -46,21 +40,4 @@ public final class AttributeType extends AbstractNodeType {
     public SchemaType getContentType() {
         return contentType;
     }
-
-    @Override
-    public Filter<XDMValue> createInstanceOfFilter() {
-        final Filter<XDMNode> nameTestMatchFilter = nameTest.createNameMatchFilter();
-        return new Filter<XDMValue>() {
-            @Override
-            public boolean accept(XDMValue value) throws SystemException {
-                if (value == null) {
-                    return false;
-                }
-                if (value.getDMOKind() != DMOKind.ATTRIBUTE_NODE) {
-                    return false;
-                }
-                return nameTestMatchFilter.accept((XDMNode) value);
-            }
-        };
-    }
 }
\ No newline at end of file
index f800ecd..8ec4a74 100644 (file)
  */
 package org.apache.vxquery.types;
 
-import org.apache.vxquery.exceptions.SystemException;
-import org.apache.vxquery.types.processors.CastProcessor;
-import org.apache.vxquery.util.Filter;
-import org.apache.vxquery.v0datamodel.DMOKind;
-import org.apache.vxquery.v0datamodel.XDMAtomicValue;
-import org.apache.vxquery.v0datamodel.XDMValue;
-
 final class BuiltinAtomicType implements AtomicType {
     private final int id;
     private final SchemaType baseType;
     private final DerivationProcess derivationProcess;
-    private final CastProcessor castProcessor;
-    private final Filter<XDMValue> instanceFilter;
 
-    BuiltinAtomicType(int id, SimpleType baseType, DerivationProcess derivationProcess, CastProcessor castProcessor) {
+    BuiltinAtomicType(int id, SimpleType baseType, DerivationProcess derivationProcess) {
         this.id = id;
         this.baseType = baseType;
         this.derivationProcess = derivationProcess;
-        this.castProcessor = castProcessor;
-        instanceFilter = new Filter<XDMValue>() {
-            @Override
-            public boolean accept(XDMValue value) throws SystemException {
-                if (value.getDMOKind() != DMOKind.ATOMIC_VALUE) {
-                    return false;
-                }
-                XDMAtomicValue av = (XDMAtomicValue) value;
-                AtomicType at = av.getAtomicType();
-                return TypeUtils.isSubtypeTypeOf(at, BuiltinAtomicType.this);
-            }
-        };
     }
 
     @Override
@@ -79,16 +58,6 @@ final class BuiltinAtomicType implements AtomicType {
     }
 
     @Override
-    public Filter<XDMValue> createInstanceOfFilter() {
-        return instanceFilter;
-    }
-
-    @Override
-    public CastProcessor getCastProcessor(XQType inputBaseType) {
-        return castProcessor;
-    }
-
-    @Override
     public String toString() {
         return String.valueOf(BuiltinTypeRegistry.INSTANCE.getTypeName(id));
     }
index 43c1f5e..2603eae 100644 (file)
@@ -22,208 +22,147 @@ import java.util.Map;
 
 import javax.xml.namespace.QName;
 
-import org.apache.vxquery.types.processors.AnyUriCastProcessor;
-import org.apache.vxquery.types.processors.Base64BinaryCastProcessor;
-import org.apache.vxquery.types.processors.BooleanCastProcessor;
-import org.apache.vxquery.types.processors.ByteCastProcessor;
-import org.apache.vxquery.types.processors.DateCastProcessor;
-import org.apache.vxquery.types.processors.DateTimeCastProcessor;
-import org.apache.vxquery.types.processors.DayTimeDurationCastProcessor;
-import org.apache.vxquery.types.processors.DecimalCastProcessor;
-import org.apache.vxquery.types.processors.DoubleCastProcessor;
-import org.apache.vxquery.types.processors.DurationCastProcessor;
-import org.apache.vxquery.types.processors.EntityCastProcessor;
-import org.apache.vxquery.types.processors.FloatCastProcessor;
-import org.apache.vxquery.types.processors.GDayCastProcessor;
-import org.apache.vxquery.types.processors.GMonthCastProcessor;
-import org.apache.vxquery.types.processors.GMonthDayCastProcessor;
-import org.apache.vxquery.types.processors.GYearCastProcessor;
-import org.apache.vxquery.types.processors.GYearMonthCastProcessor;
-import org.apache.vxquery.types.processors.HexBinaryCastProcessor;
-import org.apache.vxquery.types.processors.IntCastProcessor;
-import org.apache.vxquery.types.processors.IntegerCastProcessor;
-import org.apache.vxquery.types.processors.LanguageCastProcessor;
-import org.apache.vxquery.types.processors.LongCastProcessor;
-import org.apache.vxquery.types.processors.NCNameCastProcessor;
-import org.apache.vxquery.types.processors.NMTokenCastProcessor;
-import org.apache.vxquery.types.processors.NameCastProcessor;
-import org.apache.vxquery.types.processors.NegativeIntegerCastProcessor;
-import org.apache.vxquery.types.processors.NonNegativeIntegerCastProcessor;
-import org.apache.vxquery.types.processors.NonPositiveIntegerCastProcessor;
-import org.apache.vxquery.types.processors.NormalizedStringCastProcessor;
-import org.apache.vxquery.types.processors.NotCastableCastProcessor;
-import org.apache.vxquery.types.processors.PositiveIntegerCastProcessor;
-import org.apache.vxquery.types.processors.QNameCastProcessor;
-import org.apache.vxquery.types.processors.ShortCastProcessor;
-import org.apache.vxquery.types.processors.StringCastProcessor;
-import org.apache.vxquery.types.processors.TimeCastProcessor;
-import org.apache.vxquery.types.processors.TokenCastProcessor;
-import org.apache.vxquery.types.processors.UnsignedByteCastProcessor;
-import org.apache.vxquery.types.processors.UnsignedIntCastProcessor;
-import org.apache.vxquery.types.processors.UnsignedLongCastProcessor;
-import org.apache.vxquery.types.processors.UnsignedShortCastProcessor;
-import org.apache.vxquery.types.processors.UntypedAtomicCastProcessor;
-import org.apache.vxquery.types.processors.YearMonthDurationCastProcessor;
-
 public final class BuiltinTypeRegistry {
     public static final BuiltinAtomicType XS_ANY_ATOMIC = new BuiltinAtomicType(
-            BuiltinTypeConstants.XS_ANY_ATOMIC_TYPE_ID, AnySimpleType.INSTANCE, DerivationProcess.RESTRICTION,
-            NotCastableCastProcessor.INSTANCE_XPST0080);
+            BuiltinTypeConstants.XS_ANY_ATOMIC_TYPE_ID, AnySimpleType.INSTANCE, DerivationProcess.RESTRICTION);
 
     public static final BuiltinAtomicType XS_STRING = new BuiltinAtomicType(BuiltinTypeConstants.XS_STRING_TYPE_ID,
-            XS_ANY_ATOMIC, DerivationProcess.RESTRICTION, StringCastProcessor.INSTANCE);
+            XS_ANY_ATOMIC, DerivationProcess.RESTRICTION);
 
     public static final BuiltinAtomicType XS_NORMALIZED_STRING = new BuiltinAtomicType(
-            BuiltinTypeConstants.XS_NORMALIZED_STRING_TYPE_ID, XS_STRING, DerivationProcess.RESTRICTION,
-            NormalizedStringCastProcessor.INSTANCE);
+            BuiltinTypeConstants.XS_NORMALIZED_STRING_TYPE_ID, XS_STRING, DerivationProcess.RESTRICTION);
 
     public static final BuiltinAtomicType XS_TOKEN = new BuiltinAtomicType(BuiltinTypeConstants.XS_TOKEN_TYPE_ID,
-            XS_NORMALIZED_STRING, DerivationProcess.RESTRICTION, TokenCastProcessor.INSTANCE);
+            XS_NORMALIZED_STRING, DerivationProcess.RESTRICTION);
 
     public static final BuiltinAtomicType XS_LANGUAGE = new BuiltinAtomicType(BuiltinTypeConstants.XS_LANGUAGE_TYPE_ID,
-            XS_TOKEN, DerivationProcess.RESTRICTION, LanguageCastProcessor.INSTANCE);
+            XS_TOKEN, DerivationProcess.RESTRICTION);
 
     public static final BuiltinAtomicType XS_NMTOKEN = new BuiltinAtomicType(BuiltinTypeConstants.XS_NMTOKEN_TYPE_ID,
-            XS_TOKEN, DerivationProcess.RESTRICTION, NMTokenCastProcessor.INSTANCE);
+            XS_TOKEN, DerivationProcess.RESTRICTION);
 
     public static final BuiltinAtomicType XS_NAME = new BuiltinAtomicType(BuiltinTypeConstants.XS_NAME_TYPE_ID,
-            XS_TOKEN, DerivationProcess.RESTRICTION, NameCastProcessor.INSTANCE);
+            XS_TOKEN, DerivationProcess.RESTRICTION);
 
     public static final BuiltinAtomicType XS_NCNAME = new BuiltinAtomicType(BuiltinTypeConstants.XS_NCNAME_TYPE_ID,
-            XS_NAME, DerivationProcess.RESTRICTION, NCNameCastProcessor.INSTANCE);
+            XS_NAME, DerivationProcess.RESTRICTION);
 
     public static final BuiltinAtomicType XS_ID = new BuiltinAtomicType(BuiltinTypeConstants.XS_ID_TYPE_ID, XS_NCNAME,
-            DerivationProcess.RESTRICTION, null);
+            DerivationProcess.RESTRICTION);
 
     public static final BuiltinAtomicType XS_IDREF = new BuiltinAtomicType(BuiltinTypeConstants.XS_IDREF_TYPE_ID,
-            XS_NCNAME, DerivationProcess.RESTRICTION, null);
+            XS_NCNAME, DerivationProcess.RESTRICTION);
 
     public static final BuiltinAtomicType XS_ENTITY = new BuiltinAtomicType(BuiltinTypeConstants.XS_ENTITY_TYPE_ID,
-            XS_NCNAME, DerivationProcess.RESTRICTION, EntityCastProcessor.INSTANCE);
+            XS_NCNAME, DerivationProcess.RESTRICTION);
 
     public static final BuiltinAtomicType XS_UNTYPED_ATOMIC = new BuiltinAtomicType(
-            BuiltinTypeConstants.XS_UNTYPED_ATOMIC_TYPE_ID, XS_ANY_ATOMIC, DerivationProcess.RESTRICTION,
-            UntypedAtomicCastProcessor.INSTANCE);
+            BuiltinTypeConstants.XS_UNTYPED_ATOMIC_TYPE_ID, XS_ANY_ATOMIC, DerivationProcess.RESTRICTION);
 
     public static final BuiltinAtomicType XS_DATETIME = new BuiltinAtomicType(BuiltinTypeConstants.XS_DATETIME_TYPE_ID,
-            XS_ANY_ATOMIC, DerivationProcess.RESTRICTION, DateTimeCastProcessor.INSTANCE);
+            XS_ANY_ATOMIC, DerivationProcess.RESTRICTION);
 
     public static final BuiltinAtomicType XS_DATE = new BuiltinAtomicType(BuiltinTypeConstants.XS_DATE_TYPE_ID,
-            XS_ANY_ATOMIC, DerivationProcess.RESTRICTION, DateCastProcessor.INSTANCE);
+            XS_ANY_ATOMIC, DerivationProcess.RESTRICTION);
 
     public static final BuiltinAtomicType XS_TIME = new BuiltinAtomicType(BuiltinTypeConstants.XS_TIME_TYPE_ID,
-            XS_ANY_ATOMIC, DerivationProcess.RESTRICTION, TimeCastProcessor.INSTANCE);
+            XS_ANY_ATOMIC, DerivationProcess.RESTRICTION);
 
     public static final BuiltinAtomicType XS_DURATION = new BuiltinAtomicType(BuiltinTypeConstants.XS_DURATION_TYPE_ID,
-            XS_ANY_ATOMIC, DerivationProcess.RESTRICTION, DurationCastProcessor.INSTANCE);
+            XS_ANY_ATOMIC, DerivationProcess.RESTRICTION);
 
     public static final BuiltinAtomicType XS_YEAR_MONTH_DURATION = new BuiltinAtomicType(
-            BuiltinTypeConstants.XS_YEAR_MONTH_DURATION_TYPE_ID, XS_DURATION, DerivationProcess.RESTRICTION,
-            YearMonthDurationCastProcessor.INSTANCE);
+            BuiltinTypeConstants.XS_YEAR_MONTH_DURATION_TYPE_ID, XS_DURATION, DerivationProcess.RESTRICTION);
 
     public static final BuiltinAtomicType XS_DAY_TIME_DURATION = new BuiltinAtomicType(
-            BuiltinTypeConstants.XS_DAY_TIME_DURATION_TYPE_ID, XS_DURATION, DerivationProcess.RESTRICTION,
-            DayTimeDurationCastProcessor.INSTANCE);
+            BuiltinTypeConstants.XS_DAY_TIME_DURATION_TYPE_ID, XS_DURATION, DerivationProcess.RESTRICTION);
 
     public static final BuiltinAtomicType XSEXT_NUMERIC = new BuiltinAtomicType(
-            BuiltinTypeConstants.XSEXT_NUMERIC_TYPE_ID, XS_ANY_ATOMIC, DerivationProcess.RESTRICTION,
-            DoubleCastProcessor.INSTANCE);
+            BuiltinTypeConstants.XSEXT_NUMERIC_TYPE_ID, XS_ANY_ATOMIC, DerivationProcess.RESTRICTION);
 
     public static final BuiltinAtomicType XS_FLOAT = new BuiltinAtomicType(BuiltinTypeConstants.XS_FLOAT_TYPE_ID,
-            XSEXT_NUMERIC, DerivationProcess.RESTRICTION, FloatCastProcessor.INSTANCE);
+            XSEXT_NUMERIC, DerivationProcess.RESTRICTION);
 
     public static final BuiltinAtomicType XS_DOUBLE = new BuiltinAtomicType(BuiltinTypeConstants.XS_DOUBLE_TYPE_ID,
-            XSEXT_NUMERIC, DerivationProcess.RESTRICTION, DoubleCastProcessor.INSTANCE);
+            XSEXT_NUMERIC, DerivationProcess.RESTRICTION);
 
     public static final BuiltinAtomicType XS_DECIMAL = new BuiltinAtomicType(BuiltinTypeConstants.XS_DECIMAL_TYPE_ID,
-            XSEXT_NUMERIC, DerivationProcess.RESTRICTION, DecimalCastProcessor.INSTANCE);
+            XSEXT_NUMERIC, DerivationProcess.RESTRICTION);
 
     public static final BuiltinAtomicType XS_INTEGER = new BuiltinAtomicType(BuiltinTypeConstants.XS_INTEGER_TYPE_ID,
-            XS_DECIMAL, DerivationProcess.RESTRICTION, IntegerCastProcessor.INSTANCE);
+            XS_DECIMAL, DerivationProcess.RESTRICTION);
 
     public static final BuiltinAtomicType XS_NON_POSITIVE_INTEGER = new BuiltinAtomicType(
-            BuiltinTypeConstants.XS_NON_POSITIVE_INTEGER_TYPE_ID, XS_INTEGER, DerivationProcess.RESTRICTION,
-            NonPositiveIntegerCastProcessor.INSTANCE);
+            BuiltinTypeConstants.XS_NON_POSITIVE_INTEGER_TYPE_ID, XS_INTEGER, DerivationProcess.RESTRICTION);
 
     public static final BuiltinAtomicType XS_NEGATIVE_INTEGER = new BuiltinAtomicType(
-            BuiltinTypeConstants.XS_NEGATIVE_INTEGER_TYPE_ID, XS_NON_POSITIVE_INTEGER, DerivationProcess.RESTRICTION,
-            NegativeIntegerCastProcessor.INSTANCE);
+            BuiltinTypeConstants.XS_NEGATIVE_INTEGER_TYPE_ID, XS_NON_POSITIVE_INTEGER, DerivationProcess.RESTRICTION);
 
     public static final BuiltinAtomicType XS_LONG = new BuiltinAtomicType(BuiltinTypeConstants.XS_LONG_TYPE_ID,
-            XS_INTEGER, DerivationProcess.RESTRICTION, LongCastProcessor.INSTANCE);
+            XS_INTEGER, DerivationProcess.RESTRICTION);
 
     public static final BuiltinAtomicType XS_INT = new BuiltinAtomicType(BuiltinTypeConstants.XS_INT_TYPE_ID, XS_LONG,
-            DerivationProcess.RESTRICTION, IntCastProcessor.INSTANCE);
+            DerivationProcess.RESTRICTION);
 
     public static final BuiltinAtomicType XS_SHORT = new BuiltinAtomicType(BuiltinTypeConstants.XS_SHORT_TYPE_ID,
-            XS_INT, DerivationProcess.RESTRICTION, ShortCastProcessor.INSTANCE);
+            XS_INT, DerivationProcess.RESTRICTION);
 
     public static final BuiltinAtomicType XS_BYTE = new BuiltinAtomicType(BuiltinTypeConstants.XS_BYTE_TYPE_ID,
-            XS_SHORT, DerivationProcess.RESTRICTION, ByteCastProcessor.INSTANCE);
+            XS_SHORT, DerivationProcess.RESTRICTION);
 
     public static final BuiltinAtomicType XS_NON_NEGATIVE_INTEGER = new BuiltinAtomicType(
-            BuiltinTypeConstants.XS_NON_NEGATIVE_INTEGER_TYPE_ID, XS_INTEGER, DerivationProcess.RESTRICTION,
-            NonNegativeIntegerCastProcessor.INSTANCE);
+            BuiltinTypeConstants.XS_NON_NEGATIVE_INTEGER_TYPE_ID, XS_INTEGER, DerivationProcess.RESTRICTION);
 
     public static final BuiltinAtomicType XS_UNSIGNED_LONG = new BuiltinAtomicType(
-            BuiltinTypeConstants.XS_UNSIGNED_LONG_TYPE_ID, XS_NON_NEGATIVE_INTEGER, DerivationProcess.RESTRICTION,
-            UnsignedLongCastProcessor.INSTANCE);
+            BuiltinTypeConstants.XS_UNSIGNED_LONG_TYPE_ID, XS_NON_NEGATIVE_INTEGER, DerivationProcess.RESTRICTION);
 
     public static final BuiltinAtomicType XS_UNSIGNED_INT = new BuiltinAtomicType(
-            BuiltinTypeConstants.XS_UNSIGNED_INT_TYPE_ID, XS_UNSIGNED_LONG, DerivationProcess.RESTRICTION,
-            UnsignedIntCastProcessor.INSTANCE);
+            BuiltinTypeConstants.XS_UNSIGNED_INT_TYPE_ID, XS_UNSIGNED_LONG, DerivationProcess.RESTRICTION);
 
     public static final BuiltinAtomicType XS_UNSIGNED_SHORT = new BuiltinAtomicType(
-            BuiltinTypeConstants.XS_UNSIGNED_SHORT_TYPE_ID, XS_UNSIGNED_INT, DerivationProcess.RESTRICTION,
-            UnsignedShortCastProcessor.INSTANCE);
+            BuiltinTypeConstants.XS_UNSIGNED_SHORT_TYPE_ID, XS_UNSIGNED_INT, DerivationProcess.RESTRICTION);
 
     public static final BuiltinAtomicType XS_UNSIGNED_BYTE = new BuiltinAtomicType(
-            BuiltinTypeConstants.XS_UNSIGNED_BYTE_TYPE_ID, XS_UNSIGNED_SHORT, DerivationProcess.RESTRICTION,
-            UnsignedByteCastProcessor.INSTANCE);
+            BuiltinTypeConstants.XS_UNSIGNED_BYTE_TYPE_ID, XS_UNSIGNED_SHORT, DerivationProcess.RESTRICTION);
 
     public static final BuiltinAtomicType XS_POSITIVE_INTEGER = new BuiltinAtomicType(
-            BuiltinTypeConstants.XS_POSITIVE_INTEGER_TYPE_ID, XS_NON_NEGATIVE_INTEGER, DerivationProcess.RESTRICTION,
-            PositiveIntegerCastProcessor.INSTANCE);
+            BuiltinTypeConstants.XS_POSITIVE_INTEGER_TYPE_ID, XS_NON_NEGATIVE_INTEGER, DerivationProcess.RESTRICTION);
 
     public static final BuiltinAtomicType XS_G_YEAR_MONTH = new BuiltinAtomicType(
-            BuiltinTypeConstants.XS_G_YEAR_MONTH_TYPE_ID, XS_ANY_ATOMIC, DerivationProcess.RESTRICTION,
-            GYearMonthCastProcessor.INSTANCE);
+            BuiltinTypeConstants.XS_G_YEAR_MONTH_TYPE_ID, XS_ANY_ATOMIC, DerivationProcess.RESTRICTION);
 
     public static final BuiltinAtomicType XS_G_YEAR = new BuiltinAtomicType(BuiltinTypeConstants.XS_G_YEAR_TYPE_ID,
-            XS_ANY_ATOMIC, DerivationProcess.RESTRICTION, GYearCastProcessor.INSTANCE);
+            XS_ANY_ATOMIC, DerivationProcess.RESTRICTION);
 
     public static final BuiltinAtomicType XS_G_MONTH_DAY = new BuiltinAtomicType(
-            BuiltinTypeConstants.XS_G_MONTH_DAY_TYPE_ID, XS_ANY_ATOMIC, DerivationProcess.RESTRICTION,
-            GMonthDayCastProcessor.INSTANCE);
+            BuiltinTypeConstants.XS_G_MONTH_DAY_TYPE_ID, XS_ANY_ATOMIC, DerivationProcess.RESTRICTION);
 
     public static final BuiltinAtomicType XS_G_DAY = new BuiltinAtomicType(BuiltinTypeConstants.XS_G_DAY_TYPE_ID,
-            XS_ANY_ATOMIC, DerivationProcess.RESTRICTION, GDayCastProcessor.INSTANCE);
+            XS_ANY_ATOMIC, DerivationProcess.RESTRICTION);
 
     public static final BuiltinAtomicType XS_G_MONTH = new BuiltinAtomicType(BuiltinTypeConstants.XS_G_MONTH_TYPE_ID,
-            XS_ANY_ATOMIC, DerivationProcess.RESTRICTION, GMonthCastProcessor.INSTANCE);
+            XS_ANY_ATOMIC, DerivationProcess.RESTRICTION);
 
     public static final BuiltinAtomicType XS_BOOLEAN = new BuiltinAtomicType(BuiltinTypeConstants.XS_BOOLEAN_TYPE_ID,
-            XS_ANY_ATOMIC, DerivationProcess.RESTRICTION, BooleanCastProcessor.INSTANCE);
+            XS_ANY_ATOMIC, DerivationProcess.RESTRICTION);
 
     public static final BuiltinAtomicType XS_BASE64_BINARY = new BuiltinAtomicType(
-            BuiltinTypeConstants.XS_BASE64_BINARY_TYPE_ID, XS_ANY_ATOMIC, DerivationProcess.RESTRICTION,
-            Base64BinaryCastProcessor.INSTANCE);
+            BuiltinTypeConstants.XS_BASE64_BINARY_TYPE_ID, XS_ANY_ATOMIC, DerivationProcess.RESTRICTION);
 
     public static final BuiltinAtomicType XS_HEX_BINARY = new BuiltinAtomicType(
-            BuiltinTypeConstants.XS_HEX_BINARY_TYPE_ID, XS_ANY_ATOMIC, DerivationProcess.RESTRICTION,
-            HexBinaryCastProcessor.INSTANCE);
+            BuiltinTypeConstants.XS_HEX_BINARY_TYPE_ID, XS_ANY_ATOMIC, DerivationProcess.RESTRICTION);
 
     public static final BuiltinAtomicType XS_ANY_URI = new BuiltinAtomicType(BuiltinTypeConstants.XS_ANY_URI_TYPE_ID,
-            XS_ANY_ATOMIC, DerivationProcess.RESTRICTION, AnyUriCastProcessor.INSTANCE);
+            XS_ANY_ATOMIC, DerivationProcess.RESTRICTION);
 
     public static final BuiltinAtomicType XS_QNAME = new BuiltinAtomicType(BuiltinTypeConstants.XS_QNAME_TYPE_ID,
-            XS_ANY_ATOMIC, DerivationProcess.RESTRICTION, QNameCastProcessor.INSTANCE);
+            XS_ANY_ATOMIC, DerivationProcess.RESTRICTION);
 
     public static final BuiltinAtomicType XS_NOTATION = new BuiltinAtomicType(BuiltinTypeConstants.XS_NOTATION_TYPE_ID,
-            XS_ANY_ATOMIC, DerivationProcess.RESTRICTION, null);
+            XS_ANY_ATOMIC, DerivationProcess.RESTRICTION);
 
     public static final BuiltinAtomicType XSEXT_TYPE = new BuiltinAtomicType(BuiltinTypeConstants.XSEXT_TYPE_TYPE_ID,
-            XS_ANY_ATOMIC, DerivationProcess.RESTRICTION, null);
+            XS_ANY_ATOMIC, DerivationProcess.RESTRICTION);
 
     public static final BuiltinTypeRegistry INSTANCE = new BuiltinTypeRegistry();
 
index 33c6c2e..9dd8844 100644 (file)
  */
 package org.apache.vxquery.types;
 
-import org.apache.vxquery.exceptions.SystemException;
-import org.apache.vxquery.util.Filter;
-import org.apache.vxquery.v0datamodel.DMOKind;
-import org.apache.vxquery.v0datamodel.XDMValue;
-
 public final class CommentType extends AbstractNodeType {
     public static final CommentType INSTANCE = new CommentType();
 
-    private static final Filter<XDMValue> INSTANCE_OF_FILTER = new Filter<XDMValue>() {
-        @Override
-        public boolean accept(XDMValue value) throws SystemException {
-            if (value == null) {
-                return false;
-            }
-            return value.getDMOKind() == DMOKind.COMMENT_NODE;
-        }
-    };
-
     private CommentType() {
     }
 
@@ -41,9 +26,4 @@ public final class CommentType extends AbstractNodeType {
     public NodeKind getNodeKind() {
         return NodeKind.COMMENT;
     }
-
-    @Override
-    public Filter<XDMValue> createInstanceOfFilter() {
-        return INSTANCE_OF_FILTER;
-    }
 }
\ No newline at end of file
index abe35b6..c4b5b75 100644 (file)
@@ -18,10 +18,6 @@ package org.apache.vxquery.types;
 
 import java.util.List;
 
-import org.apache.vxquery.types.processors.CastProcessor;
-import org.apache.vxquery.util.Filter;
-import org.apache.vxquery.v0datamodel.XDMValue;
-
 public class ComposedType implements XQType {
     private List<XQType> contentTypes;
     private Composer composer;
@@ -38,14 +34,4 @@ public class ComposedType implements XQType {
     public Composer getComposer() {
         return composer;
     }
-
-    @Override
-    public Filter<XDMValue> createInstanceOfFilter() {
-        return null;
-    }
-
-    @Override
-    public CastProcessor getCastProcessor(XQType inputBaseType) {
-        return null;
-    }
 }
\ No newline at end of file
index 7cf331b..2a18240 100644 (file)
@@ -16,9 +16,6 @@
  */
 package org.apache.vxquery.types;
 
-import org.apache.vxquery.util.Filter;
-import org.apache.vxquery.v0datamodel.XDMValue;
-
 public final class DocumentType extends AbstractNodeType {
     public static final DocumentType ANYDOCUMENT = new DocumentType(ElementType.ANYELEMENT);
 
@@ -36,9 +33,4 @@ public final class DocumentType extends AbstractNodeType {
     public ElementType getElementType() {
         return elementType;
     }
-
-    @Override
-    public Filter<XDMValue> createInstanceOfFilter() {
-        return null;
-    }
 }
\ No newline at end of file
index 0763a30..bd3b3e3 100644 (file)
  */
 package org.apache.vxquery.types;
 
-import org.apache.vxquery.exceptions.SystemException;
-import org.apache.vxquery.util.Filter;
-import org.apache.vxquery.v0datamodel.DMOKind;
-import org.apache.vxquery.v0datamodel.XDMNode;
-import org.apache.vxquery.v0datamodel.XDMValue;
-
 public final class ElementType extends AbstractNodeType {
     public static final ElementType ANYELEMENT = new ElementType(NameTest.STAR_NAMETEST, AnyType.INSTANCE, true);
 
@@ -53,23 +47,6 @@ public final class ElementType extends AbstractNodeType {
     }
 
     @Override
-    public Filter<XDMValue> createInstanceOfFilter() {
-        final Filter<XDMNode> nameTestMatchFilter = nameTest.createNameMatchFilter();
-        return new Filter<XDMValue>() {
-            @Override
-            public boolean accept(XDMValue value) throws SystemException {
-                if (value == null) {
-                    return false;
-                }
-                if (value.getDMOKind() != DMOKind.ELEMENT_NODE) {
-                    return false;
-                }
-                return nameTestMatchFilter.accept((XDMNode) value);
-            }
-        };
-    }
-
-    @Override
     public String toString() {
         return "NodeTest(" + nameTest + ", " + contentType + ", nilled = " + nilled + ")";
     }
index 2e7cc8a..1e5db3e 100644 (file)
  */
 package org.apache.vxquery.types;
 
-import org.apache.vxquery.exceptions.SystemException;
-import org.apache.vxquery.types.processors.CastProcessor;
-import org.apache.vxquery.types.processors.NotCastableCastProcessor;
-import org.apache.vxquery.util.Filter;
-import org.apache.vxquery.v0datamodel.XDMValue;
-
 public final class EmptySequenceType implements ItemType {
     public static final EmptySequenceType INSTANCE = new EmptySequenceType();
 
-    private static final Filter<XDMValue> INSTANCE_OF_FILTER = new Filter<XDMValue>() {
-        @Override
-        public boolean accept(XDMValue value) throws SystemException {
-            return value == null;
-        }
-    };
-
     private EmptySequenceType() {
     }
 
@@ -39,14 +26,4 @@ public final class EmptySequenceType implements ItemType {
     public boolean isAtomicType() {
         return false;
     }
-
-    @Override
-    public Filter<XDMValue> createInstanceOfFilter() {
-        return INSTANCE_OF_FILTER;
-    }
-
-    @Override
-    public CastProcessor getCastProcessor(XQType inputBaseType) {
-        return NotCastableCastProcessor.INSTANCE_XPST0051;
-    }
 }
\ No newline at end of file
index 9d3e693..80014a5 100644 (file)
@@ -18,11 +18,6 @@ package org.apache.vxquery.types;
 
 import javax.xml.namespace.QName;
 
-import org.apache.vxquery.exceptions.SystemException;
-import org.apache.vxquery.util.Filter;
-import org.apache.vxquery.v0datamodel.XDMNode;
-import org.apache.vxquery.v0datamodel.atomic.QNameValue;
-
 public final class NameTest {
     public static final String WILDCARD = null;
 
@@ -51,39 +46,6 @@ public final class NameTest {
         return new QName(uri, localName);
     }
 
-    @SuppressWarnings("unchecked")
-    public Filter<XDMNode> createNameMatchFilter() {
-        if (uri == null) {
-            if (localName == null) {
-                return (Filter<XDMNode>) Filter.TRUE_FILTER;
-            } else {
-                return new Filter<XDMNode>() {
-                    @Override
-                    public boolean accept(XDMNode value) throws SystemException {
-                        return value.getNodeName().getLocalName().equals(localName);
-                    }
-                };
-            }
-        } else {
-            if (localName == null) {
-                return new Filter<XDMNode>() {
-                    @Override
-                    public boolean accept(XDMNode value) throws SystemException {
-                        return uri.equals(value.getNodeName().getUri());
-                    }
-                };
-            } else {
-                return new Filter<XDMNode>() {
-                    @Override
-                    public boolean accept(XDMNode value) throws SystemException {
-                        QNameValue nodeName = value.getNodeName();
-                        return uri.equals(nodeName.getUri()) && nodeName.getLocalName().equals(localName);
-                    }
-                };
-            }
-        }
-    }
-
     @Override
     public String toString() {
         return "NameTest(" + asQName() + ")";
index 5995553..420c2c9 100644 (file)
  */
 package org.apache.vxquery.types;
 
-import org.apache.vxquery.types.processors.CastProcessor;
-import org.apache.vxquery.types.processors.NotCastableCastProcessor;
-import org.apache.vxquery.util.Filter;
-import org.apache.vxquery.v0datamodel.XDMValue;
-
 public class NoneType implements ItemType {
     public static final NoneType INSTANCE = new NoneType();
 
@@ -31,15 +26,4 @@ public class NoneType implements ItemType {
     public boolean isAtomicType() {
         return false;
     }
-
-    @SuppressWarnings("unchecked")
-    @Override
-    public Filter<XDMValue> createInstanceOfFilter() {
-        return (Filter<XDMValue>) Filter.FALSE_FILTER;
-    }
-
-    @Override
-    public CastProcessor getCastProcessor(XQType inputBaseType) {
-        return NotCastableCastProcessor.INSTANCE_XPST0051;
-    }
 }
\ No newline at end of file
index ceb5671..2a2c311 100644 (file)
  */
 package org.apache.vxquery.types;
 
-import org.apache.vxquery.exceptions.SystemException;
-import org.apache.vxquery.util.Filter;
-import org.apache.vxquery.v0datamodel.DMOKind;
-import org.apache.vxquery.v0datamodel.XDMNode;
-import org.apache.vxquery.v0datamodel.XDMValue;
-
 public final class ProcessingInstructionType extends AbstractNodeType {
     public static final ProcessingInstructionType ANYPI = new ProcessingInstructionType(null);
 
@@ -39,21 +33,4 @@ public final class ProcessingInstructionType extends AbstractNodeType {
     public String getTarget() {
         return target;
     }
-
-    @Override
-    public Filter<XDMValue> createInstanceOfFilter() {
-        return new Filter<XDMValue>() {
-            @Override
-            public boolean accept(XDMValue value) throws SystemException {
-                if (value == null) {
-                    return false;
-                }
-                if (value.getDMOKind() != DMOKind.PI_NODE) {
-                    return false;
-                }
-                XDMNode node = (XDMNode) value;
-                return (target == null || target.equals(node.getNodeName().getLocalName()));
-            }
-        };
-    }
 }
\ No newline at end of file
index 7268c30..a2d9996 100644 (file)
  */
 package org.apache.vxquery.types;
 
-import org.apache.vxquery.context.StaticContext;
-import org.apache.vxquery.exceptions.ErrorCode;
-import org.apache.vxquery.exceptions.SystemException;
-import org.apache.vxquery.exceptions.SystemExceptionFactory;
-import org.apache.vxquery.types.processors.CastProcessor;
-import org.apache.vxquery.types.processors.NotCastableCastProcessor;
-import org.apache.vxquery.util.Filter;
-import org.apache.vxquery.v0datamodel.XDMValue;
-import org.apache.vxquery.v0datamodel.atomic.AtomicValueFactory;
-
 public class QuantifiedType implements XQType {
     private XQType contentType;
     private Quantifier quantifier;
@@ -44,53 +34,6 @@ public class QuantifiedType implements XQType {
     }
 
     @Override
-    public Filter<XDMValue> createInstanceOfFilter() {
-        return null;
-    }
-
-    @Override
-    public CastProcessor getCastProcessor(XQType inputBaseType) {
-        final CastProcessor contentTypeProcessor = contentType.getCastProcessor(inputBaseType);
-        switch (quantifier) {
-            case QUANT_ONE:
-            case QUANT_PLUS:
-                return contentTypeProcessor;
-
-            case QUANT_QUESTION:
-            case QUANT_STAR:
-                return new CastProcessor() {
-                    @Override
-                    public XDMValue cast(AtomicValueFactory avf, XDMValue value, SystemExceptionFactory ieFactory,
-                            StaticContext ctx) throws SystemException {
-                        if (value == null) {
-                            return null;
-                        }
-                        return contentTypeProcessor.cast(avf, value, ieFactory, ctx);
-                    }
-
-                    @Override
-                    public boolean castable(XDMValue value, StaticContext ctx) {
-                        if (value == null) {
-                            return true;
-                        }
-                        return contentTypeProcessor.castable(value, ctx);
-                    }
-
-                    @Override
-                    public Boolean castable(XQType type) {
-                        return contentTypeProcessor.castable(type);
-                    }
-
-                    @Override
-                    public ErrorCode getCastFailureErrorCode(XQType type) {
-                        return contentTypeProcessor.getCastFailureErrorCode(type);
-                    }
-                };
-        }
-        return NotCastableCastProcessor.INSTANCE_XPST0051;
-    }
-
-    @Override
     public String toString() {
         return "QuantifiedType[" + contentType + ":" + quantifier + "]";
     }
index ef8c02f..391844c 100644 (file)
  */
 package org.apache.vxquery.types;
 
-import org.apache.vxquery.exceptions.SystemException;
-import org.apache.vxquery.util.Filter;
-import org.apache.vxquery.v0datamodel.DMOKind;
-import org.apache.vxquery.v0datamodel.XDMValue;
-
 public final class TextType extends AbstractNodeType {
     public static final TextType INSTANCE = new TextType();
 
-    private static final Filter<XDMValue> TEXT_FILTER = new Filter<XDMValue>() {
-        @Override
-        public boolean accept(XDMValue value) throws SystemException {
-            if (value == null) {
-                return false;
-            }
-            return value.getDMOKind() == DMOKind.TEXT_NODE;
-        }
-    };
-
     private TextType() {
     }
 
@@ -41,9 +26,4 @@ public final class TextType extends AbstractNodeType {
     public NodeKind getNodeKind() {
         return NodeKind.TEXT;
     }
-
-    @Override
-    public Filter<XDMValue> createInstanceOfFilter() {
-        return TEXT_FILTER;
-    }
 }
\ No newline at end of file
index 13be3b7..354c107 100644 (file)
 */
 package org.apache.vxquery.types;
 
-import org.apache.vxquery.types.processors.CastProcessor;
-import org.apache.vxquery.util.Filter;
-import org.apache.vxquery.v0datamodel.XDMValue;
-
 public interface XQType {
-    public Filter<XDMValue> createInstanceOfFilter();
-
-    public CastProcessor getCastProcessor(XQType inputBaseType);
 }
\ No newline at end of file
diff --git a/vxquery-core/src/main/java/org/apache/vxquery/types/processors/AnyUriCastProcessor.java b/vxquery-core/src/main/java/org/apache/vxquery/types/processors/AnyUriCastProcessor.java
deleted file mode 100644 (file)
index 44c2924..0000000
+++ /dev/null
@@ -1,54 +0,0 @@
-/*
-* Licensed to the Apache Software Foundation (ASF) under one or more
-* contributor license agreements.  See the NOTICE file distributed with
-* this work for additional information regarding copyright ownership.
-* The ASF licenses this file to You under the Apache License, Version 2.0
-* (the "License"); you may not use this file except in compliance with
-* the License.  You may obtain a copy of the License at
-*
-*     http://www.apache.org/licenses/LICENSE-2.0
-*
-* Unless required by applicable law or agreed to in writing, software
-* distributed under the License is distributed on an "AS IS" BASIS,
-* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-* See the License for the specific language governing permissions and
-* limitations under the License.
-*/
-package org.apache.vxquery.types.processors;
-
-import org.apache.vxquery.context.StaticContext;
-import org.apache.vxquery.exceptions.ErrorCode;
-import org.apache.vxquery.exceptions.SystemException;
-import org.apache.vxquery.exceptions.SystemExceptionFactory;
-import org.apache.vxquery.types.XQType;
-import org.apache.vxquery.v0datamodel.XDMItem;
-import org.apache.vxquery.v0datamodel.XDMValue;
-import org.apache.vxquery.v0datamodel.atomic.AtomicValueFactory;
-
-public class AnyUriCastProcessor implements CastProcessor {
-    public static final CastProcessor INSTANCE = new AnyUriCastProcessor();
-
-    private AnyUriCastProcessor() {
-    }
-
-    @Override
-    public XDMValue cast(AtomicValueFactory avf, XDMValue value, SystemExceptionFactory ieFactory,
-            StaticContext ctx) throws SystemException {
-        return avf.createAnyUri(((XDMItem) value).getStringValue());
-    }
-
-    @Override
-    public boolean castable(XDMValue value, StaticContext ctx) {
-        return true;
-    }
-
-    @Override
-    public Boolean castable(XQType type) {
-        return Boolean.TRUE;
-    }
-
-    @Override
-    public ErrorCode getCastFailureErrorCode(XQType type) {
-        return null;
-    }
-}
\ No newline at end of file
diff --git a/vxquery-core/src/main/java/org/apache/vxquery/types/processors/Base64BinaryCastProcessor.java b/vxquery-core/src/main/java/org/apache/vxquery/types/processors/Base64BinaryCastProcessor.java
deleted file mode 100644 (file)
index 95815f5..0000000
+++ /dev/null
@@ -1,71 +0,0 @@
-/*
-* Licensed to the Apache Software Foundation (ASF) under one or more
-* contributor license agreements.  See the NOTICE file distributed with
-* this work for additional information regarding copyright ownership.
-* The ASF licenses this file to You under the Apache License, Version 2.0
-* (the "License"); you may not use this file except in compliance with
-* the License.  You may obtain a copy of the License at
-*
-*     http://www.apache.org/licenses/LICENSE-2.0
-*
-* Unless required by applicable law or agreed to in writing, software
-* distributed under the License is distributed on an "AS IS" BASIS,
-* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-* See the License for the specific language governing permissions and
-* limitations under the License.
-*/
-package org.apache.vxquery.types.processors;
-
-import org.apache.vxquery.context.StaticContext;
-import org.apache.vxquery.exceptions.ErrorCode;
-import org.apache.vxquery.exceptions.SystemException;
-import org.apache.vxquery.exceptions.SystemExceptionFactory;
-import org.apache.vxquery.types.AtomicType;
-import org.apache.vxquery.types.BuiltinTypeRegistry;
-import org.apache.vxquery.types.TypeUtils;
-import org.apache.vxquery.types.XQType;
-import org.apache.vxquery.v0datamodel.DMOKind;
-import org.apache.vxquery.v0datamodel.XDMAtomicValue;
-import org.apache.vxquery.v0datamodel.XDMItem;
-import org.apache.vxquery.v0datamodel.XDMValue;
-import org.apache.vxquery.v0datamodel.atomic.AtomicValueFactory;
-import org.apache.vxquery.v0datamodel.atomic.HexBinaryValue;
-
-public class Base64BinaryCastProcessor implements CastProcessor {
-    public static final CastProcessor INSTANCE = new Base64BinaryCastProcessor();
-
-    private Base64BinaryCastProcessor() {
-    }
-
-    @Override
-    public XDMValue cast(AtomicValueFactory avf, XDMValue value, SystemExceptionFactory ieFactory,
-            StaticContext ctx) throws SystemException {
-        if (value.getDMOKind() == DMOKind.ATOMIC_VALUE) {
-            XDMAtomicValue aVal = (XDMAtomicValue) value;
-            AtomicType type = aVal.getAtomicType();
-            if (TypeUtils.isSubtypeTypeOf(type, BuiltinTypeRegistry.XS_BASE64_BINARY)) {
-                return value;
-            } else if (TypeUtils.isSubtypeTypeOf(type, BuiltinTypeRegistry.XS_HEX_BINARY)) {
-                byte[] bytes = ((HexBinaryValue) aVal).getBytes();
-                return avf.createBase64Binary(bytes);
-            }
-        }
-        CharSequence str = ((XDMItem) value).getStringValue();
-        return avf.createBase64Binary(str);
-    }
-
-    @Override
-    public boolean castable(XDMValue value, StaticContext ctx) {
-        return false;
-    }
-
-    @Override
-    public Boolean castable(XQType type) {
-        return null;
-    }
-
-    @Override
-    public ErrorCode getCastFailureErrorCode(XQType type) {
-        return null;
-    }
-}
\ No newline at end of file
diff --git a/vxquery-core/src/main/java/org/apache/vxquery/types/processors/BooleanCastProcessor.java b/vxquery-core/src/main/java/org/apache/vxquery/types/processors/BooleanCastProcessor.java
deleted file mode 100644 (file)
index 4b64739..0000000
+++ /dev/null
@@ -1,55 +0,0 @@
-/*
-* Licensed to the Apache Software Foundation (ASF) under one or more
-* contributor license agreements.  See the NOTICE file distributed with
-* this work for additional information regarding copyright ownership.
-* The ASF licenses this file to You under the Apache License, Version 2.0
-* (the "License"); you may not use this file except in compliance with
-* the License.  You may obtain a copy of the License at
-*
-*     http://www.apache.org/licenses/LICENSE-2.0
-*
-* Unless required by applicable law or agreed to in writing, software
-* distributed under the License is distributed on an "AS IS" BASIS,
-* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-* See the License for the specific language governing permissions and
-* limitations under the License.
-*/
-package org.apache.vxquery.types.processors;
-
-import org.apache.vxquery.context.StaticContext;
-import org.apache.vxquery.exceptions.ErrorCode;
-import org.apache.vxquery.exceptions.SystemException;
-import org.apache.vxquery.exceptions.SystemExceptionFactory;
-import org.apache.vxquery.types.XQType;
-import org.apache.vxquery.v0datamodel.XDMItem;
-import org.apache.vxquery.v0datamodel.XDMValue;
-import org.apache.vxquery.v0datamodel.atomic.AtomicValueFactory;
-
-public class BooleanCastProcessor implements CastProcessor {
-    public static final CastProcessor INSTANCE = new BooleanCastProcessor();
-
-    private BooleanCastProcessor() {
-    }
-
-    @Override
-    public XDMValue cast(AtomicValueFactory avf, XDMValue value, SystemExceptionFactory ieFactory,
-            StaticContext ctx) throws SystemException {
-        CharSequence str = ((XDMItem) value).getStringValue();
-        return avf.createBoolean(str);
-    }
-
-    @Override
-    public boolean castable(XDMValue value, StaticContext ctx) {
-        return false;
-    }
-
-    @Override
-    public Boolean castable(XQType type) {
-        return null;
-    }
-
-    @Override
-    public ErrorCode getCastFailureErrorCode(XQType type) {
-        return null;
-    }
-}
\ No newline at end of file
diff --git a/vxquery-core/src/main/java/org/apache/vxquery/types/processors/ByteCastProcessor.java b/vxquery-core/src/main/java/org/apache/vxquery/types/processors/ByteCastProcessor.java
deleted file mode 100644 (file)
index 5471a93..0000000
+++ /dev/null
@@ -1,56 +0,0 @@
-/*
-* Licensed to the Apache Software Foundation (ASF) under one or more
-* contributor license agreements.  See the NOTICE file distributed with
-* this work for additional information regarding copyright ownership.
-* The ASF licenses this file to You under the Apache License, Version 2.0
-* (the "License"); you may not use this file except in compliance with
-* the License.  You may obtain a copy of the License at
-*
-*     http://www.apache.org/licenses/LICENSE-2.0
-*
-* Unless required by applicable law or agreed to in writing, software
-* distributed under the License is distributed on an "AS IS" BASIS,
-* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-* See the License for the specific language governing permissions and
-* limitations under the License.
-*/
-package org.apache.vxquery.types.processors;
-
-import org.apache.vxquery.context.StaticContext;
-import org.apache.vxquery.exceptions.ErrorCode;
-import org.apache.vxquery.exceptions.SystemException;
-import org.apache.vxquery.exceptions.SystemExceptionFactory;
-import org.apache.vxquery.types.BuiltinTypeRegistry;
-import org.apache.vxquery.types.XQType;
-import org.apache.vxquery.v0datamodel.XDMItem;
-import org.apache.vxquery.v0datamodel.XDMValue;
-import org.apache.vxquery.v0datamodel.atomic.AtomicValueFactory;
-
-public class ByteCastProcessor implements CastProcessor {
-    public static final CastProcessor INSTANCE = new ByteCastProcessor();
-
-    private ByteCastProcessor() {
-    }
-
-    @Override
-    public XDMValue cast(AtomicValueFactory avf, XDMValue value, SystemExceptionFactory ieFactory,
-            StaticContext ctx) throws SystemException {
-        CharSequence str = ((XDMItem) value).getStringValue();
-        return avf.createInt(str, BuiltinTypeRegistry.XS_BYTE);
-    }
-
-    @Override
-    public boolean castable(XDMValue value, StaticContext ctx) {
-        return false;
-    }
-
-    @Override
-    public Boolean castable(XQType type) {
-        return null;
-    }
-
-    @Override
-    public ErrorCode getCastFailureErrorCode(XQType type) {
-        return null;
-    }
-}
\ No newline at end of file
diff --git a/vxquery-core/src/main/java/org/apache/vxquery/types/processors/CastProcessor.java b/vxquery-core/src/main/java/org/apache/vxquery/types/processors/CastProcessor.java
deleted file mode 100644 (file)
index 154cf7a..0000000
+++ /dev/null
@@ -1,78 +0,0 @@
-/*
-* Licensed to the Apache Software Foundation (ASF) under one or more
-* contributor license agreements.  See the NOTICE file distributed with
-* this work for additional information regarding copyright ownership.
-* The ASF licenses this file to You under the Apache License, Version 2.0
-* (the "License"); you may not use this file except in compliance with
-* the License.  You may obtain a copy of the License at
-*
-*     http://www.apache.org/licenses/LICENSE-2.0
-*
-* Unless required by applicable law or agreed to in writing, software
-* distributed under the License is distributed on an "AS IS" BASIS,
-* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-* See the License for the specific language governing permissions and
-* limitations under the License.
-*/
-package org.apache.vxquery.types.processors;
-
-import org.apache.vxquery.context.StaticContext;
-import org.apache.vxquery.exceptions.ErrorCode;
-import org.apache.vxquery.exceptions.SystemException;
-import org.apache.vxquery.exceptions.SystemExceptionFactory;
-import org.apache.vxquery.types.XQType;
-import org.apache.vxquery.v0datamodel.XDMValue;
-import org.apache.vxquery.v0datamodel.atomic.AtomicValueFactory;
-
-/**
- * Interface used to perform value-casting and ask casting related questions
- * regarding a target type.
- */
-public interface CastProcessor {
-    /**
-     * Performs casting of the given value to be an instance of the target type.
-     * 
-     * @param avf
-     *            Atomic Value Factory
-     * @param value
-     *            The value to be cast to the target type.
-     * @return - Value whose type is a sub-type of the target type.
-     * @throws SystemException
-     *             if a casting error occurs.
-     */
-    public XDMValue cast(AtomicValueFactory avf, XDMValue value, SystemExceptionFactory ieFactory,
-            StaticContext ctx) throws SystemException;
-
-    /**
-     * Decides if the given value can be cast to the target type.
-     * 
-     * @param value
-     *            The value to be tested for castability.
-     * @return <code>true</code> if the given value is castable to the target
-     *         type, <code>false</code> otherwise.
-     */
-    public boolean castable(XDMValue value, StaticContext ctx);
-
-    /**
-     * Decides if any instance of the given type is castable to the target type.
-     * 
-     * @param type
-     *            Input type.
-     * @return <code>Boolean.TRUE</code> if the casting is always possible,
-     *         <code>Boolean.FALSE</code> if the casting is never possible,
-     *         <code>null</code> if casting is sometimes possible.
-     */
-    public Boolean castable(XQType type);
-
-    /**
-     * Returns the error code of the error when casting from an instance of the
-     * given type to the target type. This call is useful only when
-     * castable(XQType) returns Boolean.FALSE
-     * 
-     * @param type
-     *            The input type
-     * @return Error code if it can be determined from the type, else returns
-     *         <code>null</code>
-     */
-    public ErrorCode getCastFailureErrorCode(XQType type);
-}
\ No newline at end of file
diff --git a/vxquery-core/src/main/java/org/apache/vxquery/types/processors/DateCastProcessor.java b/vxquery-core/src/main/java/org/apache/vxquery/types/processors/DateCastProcessor.java
deleted file mode 100644 (file)
index 5a031cd..0000000
+++ /dev/null
@@ -1,55 +0,0 @@
-/*
-* Licensed to the Apache Software Foundation (ASF) under one or more
-* contributor license agreements.  See the NOTICE file distributed with
-* this work for additional information regarding copyright ownership.
-* The ASF licenses this file to You under the Apache License, Version 2.0
-* (the "License"); you may not use this file except in compliance with
-* the License.  You may obtain a copy of the License at
-*
-*     http://www.apache.org/licenses/LICENSE-2.0
-*
-* Unless required by applicable law or agreed to in writing, software
-* distributed under the License is distributed on an "AS IS" BASIS,
-* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-* See the License for the specific language governing permissions and
-* limitations under the License.
-*/
-package org.apache.vxquery.types.processors;
-
-import org.apache.vxquery.context.StaticContext;
-import org.apache.vxquery.exceptions.ErrorCode;
-import org.apache.vxquery.exceptions.SystemException;
-import org.apache.vxquery.exceptions.SystemExceptionFactory;
-import org.apache.vxquery.types.XQType;
-import org.apache.vxquery.v0datamodel.XDMItem;
-import org.apache.vxquery.v0datamodel.XDMValue;
-import org.apache.vxquery.v0datamodel.atomic.AtomicValueFactory;
-
-public class DateCastProcessor implements CastProcessor {
-    public static final CastProcessor INSTANCE = new DateCastProcessor();
-
-    private DateCastProcessor() {
-    }
-
-    @Override
-    public XDMValue cast(AtomicValueFactory avf, XDMValue value, SystemExceptionFactory ieFactory,
-            StaticContext ctx) throws SystemException {
-        CharSequence str = ((XDMItem) value).getStringValue();
-        return avf.createDate(str.toString());
-    }
-
-    @Override
-    public boolean castable(XDMValue value, StaticContext ctx) {
-        return false;
-    }
-
-    @Override
-    public Boolean castable(XQType type) {
-        return null;
-    }
-
-    @Override
-    public ErrorCode getCastFailureErrorCode(XQType type) {
-        return null;
-    }
-}
\ No newline at end of file
diff --git a/vxquery-core/src/main/java/org/apache/vxquery/types/processors/DateTimeCastProcessor.java b/vxquery-core/src/main/java/org/apache/vxquery/types/processors/DateTimeCastProcessor.java
deleted file mode 100644 (file)
index 52568cc..0000000
+++ /dev/null
@@ -1,55 +0,0 @@
-/*
-* Licensed to the Apache Software Foundation (ASF) under one or more
-* contributor license agreements.  See the NOTICE file distributed with
-* this work for additional information regarding copyright ownership.
-* The ASF licenses this file to You under the Apache License, Version 2.0
-* (the "License"); you may not use this file except in compliance with
-* the License.  You may obtain a copy of the License at
-*
-*     http://www.apache.org/licenses/LICENSE-2.0
-*
-* Unless required by applicable law or agreed to in writing, software
-* distributed under the License is distributed on an "AS IS" BASIS,
-* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-* See the License for the specific language governing permissions and
-* limitations under the License.
-*/
-package org.apache.vxquery.types.processors;
-
-import org.apache.vxquery.context.StaticContext;
-import org.apache.vxquery.exceptions.ErrorCode;
-import org.apache.vxquery.exceptions.SystemException;
-import org.apache.vxquery.exceptions.SystemExceptionFactory;
-import org.apache.vxquery.types.XQType;
-import org.apache.vxquery.v0datamodel.XDMItem;
-import org.apache.vxquery.v0datamodel.XDMValue;
-import org.apache.vxquery.v0datamodel.atomic.AtomicValueFactory;
-
-public class DateTimeCastProcessor implements CastProcessor {
-    public static final CastProcessor INSTANCE = new DateTimeCastProcessor();
-
-    private DateTimeCastProcessor() {
-    }
-
-    @Override
-    public XDMValue cast(AtomicValueFactory avf, XDMValue value, SystemExceptionFactory ieFactory,
-            StaticContext ctx) throws SystemException {
-        CharSequence str = ((XDMItem) value).getStringValue();
-        return avf.createDateTime(str.toString());
-    }
-
-    @Override
-    public boolean castable(XDMValue value, StaticContext ctx) {
-        return false;
-    }
-
-    @Override
-    public Boolean castable(XQType type) {
-        return null;
-    }
-
-    @Override
-    public ErrorCode getCastFailureErrorCode(XQType type) {
-        return null;
-    }
-}
\ No newline at end of file
diff --git a/vxquery-core/src/main/java/org/apache/vxquery/types/processors/DayTimeDurationCastProcessor.java b/vxquery-core/src/main/java/org/apache/vxquery/types/processors/DayTimeDurationCastProcessor.java
deleted file mode 100644 (file)
index b1326bf..0000000
+++ /dev/null
@@ -1,55 +0,0 @@
-/*
-* Licensed to the Apache Software Foundation (ASF) under one or more
-* contributor license agreements.  See the NOTICE file distributed with
-* this work for additional information regarding copyright ownership.
-* The ASF licenses this file to You under the Apache License, Version 2.0
-* (the "License"); you may not use this file except in compliance with
-* the License.  You may obtain a copy of the License at
-*
-*     http://www.apache.org/licenses/LICENSE-2.0
-*
-* Unless required by applicable law or agreed to in writing, software
-* distributed under the License is distributed on an "AS IS" BASIS,
-* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-* See the License for the specific language governing permissions and
-* limitations under the License.
-*/
-package org.apache.vxquery.types.processors;
-
-import org.apache.vxquery.context.StaticContext;
-import org.apache.vxquery.exceptions.ErrorCode;
-import org.apache.vxquery.exceptions.SystemException;
-import org.apache.vxquery.exceptions.SystemExceptionFactory;
-import org.apache.vxquery.types.XQType;
-import org.apache.vxquery.v0datamodel.XDMItem;
-import org.apache.vxquery.v0datamodel.XDMValue;
-import org.apache.vxquery.v0datamodel.atomic.AtomicValueFactory;
-
-public class DayTimeDurationCastProcessor implements CastProcessor {
-    public static final CastProcessor INSTANCE = new DayTimeDurationCastProcessor();
-
-    private DayTimeDurationCastProcessor() {
-    }
-
-    @Override
-    public XDMValue cast(AtomicValueFactory avf, XDMValue value, SystemExceptionFactory ieFactory,
-            StaticContext ctx) throws SystemException {
-        CharSequence str = ((XDMItem) value).getStringValue();
-        return avf.createDuration(str.toString());
-    }
-
-    @Override
-    public boolean castable(XDMValue value, StaticContext ctx) {
-        return false;
-    }
-
-    @Override
-    public Boolean castable(XQType type) {
-        return null;
-    }
-
-    @Override
-    public ErrorCode getCastFailureErrorCode(XQType type) {
-        return null;
-    }
-}
\ No newline at end of file
diff --git a/vxquery-core/src/main/java/org/apache/vxquery/types/processors/DecimalCastProcessor.java b/vxquery-core/src/main/java/org/apache/vxquery/types/processors/DecimalCastProcessor.java
deleted file mode 100644 (file)
index 4ebafe0..0000000
+++ /dev/null
@@ -1,55 +0,0 @@
-/*
-* Licensed to the Apache Software Foundation (ASF) under one or more
-* contributor license agreements.  See the NOTICE file distributed with
-* this work for additional information regarding copyright ownership.
-* The ASF licenses this file to You under the Apache License, Version 2.0
-* (the "License"); you may not use this file except in compliance with
-* the License.  You may obtain a copy of the License at
-*
-*     http://www.apache.org/licenses/LICENSE-2.0
-*
-* Unless required by applicable law or agreed to in writing, software
-* distributed under the License is distributed on an "AS IS" BASIS,
-* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-* See the License for the specific language governing permissions and
-* limitations under the License.
-*/
-package org.apache.vxquery.types.processors;
-
-import org.apache.vxquery.context.StaticContext;
-import org.apache.vxquery.exceptions.ErrorCode;
-import org.apache.vxquery.exceptions.SystemException;
-import org.apache.vxquery.exceptions.SystemExceptionFactory;
-import org.apache.vxquery.types.XQType;
-import org.apache.vxquery.v0datamodel.XDMItem;
-import org.apache.vxquery.v0datamodel.XDMValue;
-import org.apache.vxquery.v0datamodel.atomic.AtomicValueFactory;
-
-public class DecimalCastProcessor implements CastProcessor {
-    public static final CastProcessor INSTANCE = new DecimalCastProcessor();
-
-    private DecimalCastProcessor() {
-    }
-
-    @Override
-    public XDMValue cast(AtomicValueFactory avf, XDMValue value, SystemExceptionFactory ieFactory,
-            StaticContext ctx) throws SystemException {
-        CharSequence str = ((XDMItem) value).getStringValue();
-        return avf.createDecimal(str);
-    }
-
-    @Override
-    public boolean castable(XDMValue value, StaticContext ctx) {
-        return false;
-    }
-
-    @Override
-    public Boolean castable(XQType type) {
-        return null;
-    }
-
-    @Override
-    public ErrorCode getCastFailureErrorCode(XQType type) {
-        return null;
-    }
-}
\ No newline at end of file
diff --git a/vxquery-core/src/main/java/org/apache/vxquery/types/processors/DoubleCastProcessor.java b/vxquery-core/src/main/java/org/apache/vxquery/types/processors/DoubleCastProcessor.java
deleted file mode 100644 (file)
index f8f4c4c..0000000
+++ /dev/null
@@ -1,55 +0,0 @@
-/*
-* Licensed to the Apache Software Foundation (ASF) under one or more
-* contributor license agreements.  See the NOTICE file distributed with
-* this work for additional information regarding copyright ownership.
-* The ASF licenses this file to You under the Apache License, Version 2.0
-* (the "License"); you may not use this file except in compliance with
-* the License.  You may obtain a copy of the License at
-*
-*     http://www.apache.org/licenses/LICENSE-2.0
-*
-* Unless required by applicable law or agreed to in writing, software
-* distributed under the License is distributed on an "AS IS" BASIS,
-* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-* See the License for the specific language governing permissions and
-* limitations under the License.
-*/
-package org.apache.vxquery.types.processors;
-
-import org.apache.vxquery.context.StaticContext;
-import org.apache.vxquery.exceptions.ErrorCode;
-import org.apache.vxquery.exceptions.SystemException;
-import org.apache.vxquery.exceptions.SystemExceptionFactory;
-import org.apache.vxquery.types.XQType;
-import org.apache.vxquery.v0datamodel.XDMItem;
-import org.apache.vxquery.v0datamodel.XDMValue;
-import org.apache.vxquery.v0datamodel.atomic.AtomicValueFactory;
-
-public class DoubleCastProcessor implements CastProcessor {
-    public static final CastProcessor INSTANCE = new DoubleCastProcessor();
-
-    private DoubleCastProcessor() {
-    }
-
-    @Override
-    public XDMValue cast(AtomicValueFactory avf, XDMValue value, SystemExceptionFactory ieFactory,
-            StaticContext ctx) throws SystemException {
-        CharSequence str = ((XDMItem) value).getStringValue();
-        return avf.createDouble(str);
-    }
-
-    @Override
-    public boolean castable(XDMValue value, StaticContext ctx) {
-        return false;
-    }
-
-    @Override
-    public Boolean castable(XQType type) {
-        return null;
-    }
-
-    @Override
-    public ErrorCode getCastFailureErrorCode(XQType type) {
-        return null;
-    }
-}
\ No newline at end of file
diff --git a/vxquery-core/src/main/java/org/apache/vxquery/types/processors/DurationCastProcessor.java b/vxquery-core/src/main/java/org/apache/vxquery/types/processors/DurationCastProcessor.java
deleted file mode 100644 (file)
index 443ed4e..0000000
+++ /dev/null
@@ -1,55 +0,0 @@
-/*
-* Licensed to the Apache Software Foundation (ASF) under one or more
-* contributor license agreements.  See the NOTICE file distributed with
-* this work for additional information regarding copyright ownership.
-* The ASF licenses this file to You under the Apache License, Version 2.0
-* (the "License"); you may not use this file except in compliance with
-* the License.  You may obtain a copy of the License at
-*
-*     http://www.apache.org/licenses/LICENSE-2.0
-*
-* Unless required by applicable law or agreed to in writing, software
-* distributed under the License is distributed on an "AS IS" BASIS,
-* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-* See the License for the specific language governing permissions and
-* limitations under the License.
-*/
-package org.apache.vxquery.types.processors;
-
-import org.apache.vxquery.context.StaticContext;
-import org.apache.vxquery.exceptions.ErrorCode;
-import org.apache.vxquery.exceptions.SystemException;
-import org.apache.vxquery.exceptions.SystemExceptionFactory;
-import org.apache.vxquery.types.XQType;
-import org.apache.vxquery.v0datamodel.XDMItem;
-import org.apache.vxquery.v0datamodel.XDMValue;
-import org.apache.vxquery.v0datamodel.atomic.AtomicValueFactory;
-
-public class DurationCastProcessor implements CastProcessor {
-    public static final CastProcessor INSTANCE = new DurationCastProcessor();
-
-    private DurationCastProcessor() {
-    }
-
-    @Override
-    public XDMValue cast(AtomicValueFactory avf, XDMValue value, SystemExceptionFactory ieFactory,
-            StaticContext ctx) throws SystemException {
-        CharSequence str = ((XDMItem) value).getStringValue();
-        return avf.createDuration(str.toString());
-    }
-
-    @Override
-    public boolean castable(XDMValue value, StaticContext ctx) {
-        return false;
-    }
-
-    @Override
-    public Boolean castable(XQType type) {
-        return null;
-    }
-
-    @Override
-    public ErrorCode getCastFailureErrorCode(XQType type) {
-        return null;
-    }
-}
\ No newline at end of file
diff --git a/vxquery-core/src/main/java/org/apache/vxquery/types/processors/EntityCastProcessor.java b/vxquery-core/src/main/java/org/apache/vxquery/types/processors/EntityCastProcessor.java
deleted file mode 100644 (file)
index 823bd34..0000000
+++ /dev/null
@@ -1,53 +0,0 @@
-/*
-* Licensed to the Apache Software Foundation (ASF) under one or more
-* contributor license agreements.  See the NOTICE file distributed with
-* this work for additional information regarding copyright ownership.
-* The ASF licenses this file to You under the Apache License, Version 2.0
-* (the "License"); you may not use this file except in compliance with
-* the License.  You may obtain a copy of the License at
-*
-*     http://www.apache.org/licenses/LICENSE-2.0
-*
-* Unless required by applicable law or agreed to in writing, software
-* distributed under the License is distributed on an "AS IS" BASIS,
-* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-* See the License for the specific language governing permissions and
-* limitations under the License.
-*/
-package org.apache.vxquery.types.processors;
-
-import org.apache.vxquery.context.StaticContext;
-import org.apache.vxquery.exceptions.ErrorCode;
-import org.apache.vxquery.exceptions.SystemException;
-import org.apache.vxquery.exceptions.SystemExceptionFactory;
-import org.apache.vxquery.types.XQType;
-import org.apache.vxquery.v0datamodel.XDMValue;
-import org.apache.vxquery.v0datamodel.atomic.AtomicValueFactory;
-
-public class EntityCastProcessor implements CastProcessor {
-    public static final CastProcessor INSTANCE = new EntityCastProcessor();
-
-    private EntityCastProcessor() {
-    }
-
-    @Override
-    public XDMValue cast(AtomicValueFactory avf, XDMValue value, SystemExceptionFactory ieFactory,
-            StaticContext ctx) throws SystemException {
-        return null;
-    }
-
-    @Override
-    public boolean castable(XDMValue value, StaticContext ctx) {
-        return false;
-    }
-
-    @Override
-    public Boolean castable(XQType type) {
-        return null;
-    }
-
-    @Override
-    public ErrorCode getCastFailureErrorCode(XQType type) {
-        return null;
-    }
-}
\ No newline at end of file
diff --git a/vxquery-core/src/main/java/org/apache/vxquery/types/processors/FloatCastProcessor.java b/vxquery-core/src/main/java/org/apache/vxquery/types/processors/FloatCastProcessor.java
deleted file mode 100644 (file)
index 7620be5..0000000
+++ /dev/null
@@ -1,55 +0,0 @@
-/*
-* Licensed to the Apache Software Foundation (ASF) under one or more
-* contributor license agreements.  See the NOTICE file distributed with
-* this work for additional information regarding copyright ownership.
-* The ASF licenses this file to You under the Apache License, Version 2.0
-* (the "License"); you may not use this file except in compliance with
-* the License.  You may obtain a copy of the License at
-*
-*     http://www.apache.org/licenses/LICENSE-2.0
-*
-* Unless required by applicable law or agreed to in writing, software
-* distributed under the License is distributed on an "AS IS" BASIS,
-* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-* See the License for the specific language governing permissions and
-* limitations under the License.
-*/
-package org.apache.vxquery.types.processors;
-
-import org.apache.vxquery.context.StaticContext;
-import org.apache.vxquery.exceptions.ErrorCode;
-import org.apache.vxquery.exceptions.SystemException;
-import org.apache.vxquery.exceptions.SystemExceptionFactory;
-import org.apache.vxquery.types.XQType;
-import org.apache.vxquery.v0datamodel.XDMItem;
-import org.apache.vxquery.v0datamodel.XDMValue;
-import org.apache.vxquery.v0datamodel.atomic.AtomicValueFactory;
-
-public class FloatCastProcessor implements CastProcessor {
-    public static final CastProcessor INSTANCE = new FloatCastProcessor();
-
-    private FloatCastProcessor() {
-    }
-
-    @Override
-    public XDMValue cast(AtomicValueFactory avf, XDMValue value, SystemExceptionFactory ieFactory,
-            StaticContext ctx) throws SystemException {
-        CharSequence str = ((XDMItem) value).getStringValue();
-        return avf.createFloat(str);
-    }
-
-    @Override
-    public boolean castable(XDMValue value, StaticContext ctx) {
-        return false;
-    }
-
-    @Override
-    public Boolean castable(XQType type) {
-        return null;
-    }
-
-    @Override
-    public ErrorCode getCastFailureErrorCode(XQType type) {
-        return null;
-    }
-}
\ No newline at end of file
diff --git a/vxquery-core/src/main/java/org/apache/vxquery/types/processors/GDayCastProcessor.java b/vxquery-core/src/main/java/org/apache/vxquery/types/processors/GDayCastProcessor.java
deleted file mode 100644 (file)
index da435da..0000000
+++ /dev/null
@@ -1,55 +0,0 @@
-/*
-* Licensed to the Apache Software Foundation (ASF) under one or more
-* contributor license agreements.  See the NOTICE file distributed with
-* this work for additional information regarding copyright ownership.
-* The ASF licenses this file to You under the Apache License, Version 2.0
-* (the "License"); you may not use this file except in compliance with
-* the License.  You may obtain a copy of the License at
-*
-*     http://www.apache.org/licenses/LICENSE-2.0
-*
-* Unless required by applicable law or agreed to in writing, software
-* distributed under the License is distributed on an "AS IS" BASIS,
-* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-* See the License for the specific language governing permissions and
-* limitations under the License.
-*/
-package org.apache.vxquery.types.processors;
-
-import org.apache.vxquery.context.StaticContext;
-import org.apache.vxquery.exceptions.ErrorCode;
-import org.apache.vxquery.exceptions.SystemException;
-import org.apache.vxquery.exceptions.SystemExceptionFactory;
-import org.apache.vxquery.types.XQType;
-import org.apache.vxquery.v0datamodel.XDMItem;
-import org.apache.vxquery.v0datamodel.XDMValue;
-import org.apache.vxquery.v0datamodel.atomic.AtomicValueFactory;
-
-public class GDayCastProcessor implements CastProcessor {
-    public static final CastProcessor INSTANCE = new GDayCastProcessor();
-
-    private GDayCastProcessor() {
-    }
-
-    @Override
-    public XDMValue cast(AtomicValueFactory avf, XDMValue value, SystemExceptionFactory ieFactory,
-            StaticContext ctx) throws SystemException {
-        CharSequence str = ((XDMItem) value).getStringValue();
-        return avf.createGDay(str);
-    }
-
-    @Override
-    public boolean castable(XDMValue value, StaticContext ctx) {
-        return false;
-    }
-
-    @Override
-    public Boolean castable(XQType type) {
-        return null;
-    }
-
-    @Override
-    public ErrorCode getCastFailureErrorCode(XQType type) {
-        return null;
-    }
-}
\ No newline at end of file
diff --git a/vxquery-core/src/main/java/org/apache/vxquery/types/processors/GMonthCastProcessor.java b/vxquery-core/src/main/java/org/apache/vxquery/types/processors/GMonthCastProcessor.java
deleted file mode 100644 (file)
index 0862cf9..0000000
+++ /dev/null
@@ -1,55 +0,0 @@
-/*
-* Licensed to the Apache Software Foundation (ASF) under one or more
-* contributor license agreements.  See the NOTICE file distributed with
-* this work for additional information regarding copyright ownership.
-* The ASF licenses this file to You under the Apache License, Version 2.0
-* (the "License"); you may not use this file except in compliance with
-* the License.  You may obtain a copy of the License at
-*
-*     http://www.apache.org/licenses/LICENSE-2.0
-*
-* Unless required by applicable law or agreed to in writing, software
-* distributed under the License is distributed on an "AS IS" BASIS,
-* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-* See the License for the specific language governing permissions and
-* limitations under the License.
-*/
-package org.apache.vxquery.types.processors;
-
-import org.apache.vxquery.context.StaticContext;
-import org.apache.vxquery.exceptions.ErrorCode;
-import org.apache.vxquery.exceptions.SystemException;
-import org.apache.vxquery.exceptions.SystemExceptionFactory;
-import org.apache.vxquery.types.XQType;
-import org.apache.vxquery.v0datamodel.XDMItem;
-import org.apache.vxquery.v0datamodel.XDMValue;
-import org.apache.vxquery.v0datamodel.atomic.AtomicValueFactory;
-
-public class GMonthCastProcessor implements CastProcessor {
-    public static final CastProcessor INSTANCE = new GMonthCastProcessor();
-
-    private GMonthCastProcessor() {
-    }
-
-    @Override
-    public XDMValue cast(AtomicValueFactory avf, XDMValue value, SystemExceptionFactory ieFactory,
-            StaticContext ctx) throws SystemException {
-        CharSequence str = ((XDMItem) value).getStringValue();
-        return avf.createGMonth(str);
-    }
-
-    @Override
-    public boolean castable(XDMValue value, StaticContext ctx) {
-        return false;
-    }
-
-    @Override
-    public Boolean castable(XQType type) {
-        return null;
-    }
-
-    @Override
-    public ErrorCode getCastFailureErrorCode(XQType type) {
-        return null;
-    }
-}
\ No newline at end of file
diff --git a/vxquery-core/src/main/java/org/apache/vxquery/types/processors/GMonthDayCastProcessor.java b/vxquery-core/src/main/java/org/apache/vxquery/types/processors/GMonthDayCastProcessor.java
deleted file mode 100644 (file)
index 4db4f36..0000000
+++ /dev/null
@@ -1,55 +0,0 @@
-/*
-* Licensed to the Apache Software Foundation (ASF) under one or more
-* contributor license agreements.  See the NOTICE file distributed with
-* this work for additional information regarding copyright ownership.
-* The ASF licenses this file to You under the Apache License, Version 2.0
-* (the "License"); you may not use this file except in compliance with
-* the License.  You may obtain a copy of the License at
-*
-*     http://www.apache.org/licenses/LICENSE-2.0
-*
-* Unless required by applicable law or agreed to in writing, software
-* distributed under the License is distributed on an "AS IS" BASIS,
-* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-* See the License for the specific language governing permissions and
-* limitations under the License.
-*/
-package org.apache.vxquery.types.processors;
-
-import org.apache.vxquery.context.StaticContext;
-import org.apache.vxquery.exceptions.ErrorCode;
-import org.apache.vxquery.exceptions.SystemException;
-import org.apache.vxquery.exceptions.SystemExceptionFactory;
-import org.apache.vxquery.types.XQType;
-import org.apache.vxquery.v0datamodel.XDMItem;
-import org.apache.vxquery.v0datamodel.XDMValue;
-import org.apache.vxquery.v0datamodel.atomic.AtomicValueFactory;
-
-public class GMonthDayCastProcessor implements CastProcessor {
-    public static final CastProcessor INSTANCE = new GMonthDayCastProcessor();
-
-    private GMonthDayCastProcessor() {
-    }
-
-    @Override
-    public XDMValue cast(AtomicValueFactory avf, XDMValue value, SystemExceptionFactory ieFactory,
-            StaticContext ctx) throws SystemException {
-        CharSequence str = ((XDMItem) value).getStringValue();
-        return avf.createGMonthDay(str);
-    }
-
-    @Override
-    public boolean castable(XDMValue value, StaticContext ctx) {
-        return false;
-    }
-
-    @Override
-    public Boolean castable(XQType type) {
-        return null;
-    }
-
-    @Override
-    public ErrorCode getCastFailureErrorCode(XQType type) {
-        return null;
-    }
-}
\ No newline at end of file
diff --git a/vxquery-core/src/main/java/org/apache/vxquery/types/processors/GYearCastProcessor.java b/vxquery-core/src/main/java/org/apache/vxquery/types/processors/GYearCastProcessor.java
deleted file mode 100644 (file)
index 004a274..0000000
+++ /dev/null
@@ -1,55 +0,0 @@
-/*
-* Licensed to the Apache Software Foundation (ASF) under one or more
-* contributor license agreements.  See the NOTICE file distributed with
-* this work for additional information regarding copyright ownership.
-* The ASF licenses this file to You under the Apache License, Version 2.0
-* (the "License"); you may not use this file except in compliance with
-* the License.  You may obtain a copy of the License at
-*
-*     http://www.apache.org/licenses/LICENSE-2.0
-*
-* Unless required by applicable law or agreed to in writing, software
-* distributed under the License is distributed on an "AS IS" BASIS,
-* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-* See the License for the specific language governing permissions and
-* limitations under the License.
-*/
-package org.apache.vxquery.types.processors;
-
-import org.apache.vxquery.context.StaticContext;
-import org.apache.vxquery.exceptions.ErrorCode;
-import org.apache.vxquery.exceptions.SystemException;
-import org.apache.vxquery.exceptions.SystemExceptionFactory;
-import org.apache.vxquery.types.XQType;
-import org.apache.vxquery.v0datamodel.XDMItem;
-import org.apache.vxquery.v0datamodel.XDMValue;
-import org.apache.vxquery.v0datamodel.atomic.AtomicValueFactory;
-
-public class GYearCastProcessor implements CastProcessor {
-    public static final CastProcessor INSTANCE = new GYearCastProcessor();
-
-    private GYearCastProcessor() {
-    }
-
-    @Override
-    public XDMValue cast(AtomicValueFactory avf, XDMValue value, SystemExceptionFactory ieFactory,
-            StaticContext ctx) throws SystemException {
-        CharSequence str = ((XDMItem) value).getStringValue();
-        return avf.createGYear(str);
-    }
-
-    @Override
-    public boolean castable(XDMValue value, StaticContext ctx) {
-        return false;
-    }
-
-    @Override
-    public Boolean castable(XQType type) {
-        return null;
-    }
-
-    @Override
-    public ErrorCode getCastFailureErrorCode(XQType type) {
-        return null;
-    }
-}
\ No newline at end of file
diff --git a/vxquery-core/src/main/java/org/apache/vxquery/types/processors/GYearMonthCastProcessor.java b/vxquery-core/src/main/java/org/apache/vxquery/types/processors/GYearMonthCastProcessor.java
deleted file mode 100644 (file)
index 3fd6340..0000000
+++ /dev/null
@@ -1,55 +0,0 @@
-/*
-* Licensed to the Apache Software Foundation (ASF) under one or more
-* contributor license agreements.  See the NOTICE file distributed with
-* this work for additional information regarding copyright ownership.
-* The ASF licenses this file to You under the Apache License, Version 2.0
-* (the "License"); you may not use this file except in compliance with
-* the License.  You may obtain a copy of the License at
-*
-*     http://www.apache.org/licenses/LICENSE-2.0
-*
-* Unless required by applicable law or agreed to in writing, software
-* distributed under the License is distributed on an "AS IS" BASIS,
-* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-* See the License for the specific language governing permissions and
-* limitations under the License.
-*/
-package org.apache.vxquery.types.processors;
-
-import org.apache.vxquery.context.StaticContext;
-import org.apache.vxquery.exceptions.ErrorCode;
-import org.apache.vxquery.exceptions.SystemException;
-import org.apache.vxquery.exceptions.SystemExceptionFactory;
-import org.apache.vxquery.types.XQType;
-import org.apache.vxquery.v0datamodel.XDMItem;
-import org.apache.vxquery.v0datamodel.XDMValue;
-import org.apache.vxquery.v0datamodel.atomic.AtomicValueFactory;
-
-public class GYearMonthCastProcessor implements CastProcessor {
-    public static final CastProcessor INSTANCE = new GYearMonthCastProcessor();
-
-    private GYearMonthCastProcessor() {
-    }
-
-    @Override
-    public XDMValue cast(AtomicValueFactory avf, XDMValue value, SystemExceptionFactory ieFactory,
-            StaticContext ctx) throws SystemException {
-        CharSequence str = ((XDMItem) value).getStringValue();
-        return avf.createGYearMonth(str);
-    }
-
-    @Override
-    public boolean castable(XDMValue value, StaticContext ctx) {
-        return false;
-    }
-
-    @Override
-    public Boolean castable(XQType type) {
-        return null;
-    }
-
-    @Override
-    public ErrorCode getCastFailureErrorCode(XQType type) {
-        return null;
-    }
-}
\ No newline at end of file
diff --git a/vxquery-core/src/main/java/org/apache/vxquery/types/processors/HexBinaryCastProcessor.java b/vxquery-core/src/main/java/org/apache/vxquery/types/processors/HexBinaryCastProcessor.java
deleted file mode 100644 (file)
index ce1765e..0000000
+++ /dev/null
@@ -1,71 +0,0 @@
-/*
-* Licensed to the Apache Software Foundation (ASF) under one or more
-* contributor license agreements.  See the NOTICE file distributed with
-* this work for additional information regarding copyright ownership.
-* The ASF licenses this file to You under the Apache License, Version 2.0
-* (the "License"); you may not use this file except in compliance with
-* the License.  You may obtain a copy of the License at
-*
-*     http://www.apache.org/licenses/LICENSE-2.0
-*
-* Unless required by applicable law or agreed to in writing, software
-* distributed under the License is distributed on an "AS IS" BASIS,
-* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-* See the License for the specific language governing permissions and
-* limitations under the License.
-*/
-package org.apache.vxquery.types.processors;
-
-import org.apache.vxquery.context.StaticContext;
-import org.apache.vxquery.exceptions.ErrorCode;
-import org.apache.vxquery.exceptions.SystemException;
-import org.apache.vxquery.exceptions.SystemExceptionFactory;
-import org.apache.vxquery.types.AtomicType;
-import org.apache.vxquery.types.BuiltinTypeRegistry;
-import org.apache.vxquery.types.TypeUtils;
-import org.apache.vxquery.types.XQType;
-import org.apache.vxquery.v0datamodel.DMOKind;
-import org.apache.vxquery.v0datamodel.XDMAtomicValue;
-import org.apache.vxquery.v0datamodel.XDMItem;
-import org.apache.vxquery.v0datamodel.XDMValue;
-import org.apache.vxquery.v0datamodel.atomic.AtomicValueFactory;
-import org.apache.vxquery.v0datamodel.atomic.Base64BinaryValue;
-
-public class HexBinaryCastProcessor implements CastProcessor {
-    public static final CastProcessor INSTANCE = new HexBinaryCastProcessor();
-
-    private HexBinaryCastProcessor() {
-    }
-
-    @Override
-    public XDMValue cast(AtomicValueFactory avf, XDMValue value, SystemExceptionFactory ieFactory,
-            StaticContext ctx) throws SystemException {
-        if (value.getDMOKind() == DMOKind.ATOMIC_VALUE) {
-            XDMAtomicValue aVal = (XDMAtomicValue) value;
-            AtomicType type = aVal.getAtomicType();
-            if (TypeUtils.isSubtypeTypeOf(type, BuiltinTypeRegistry.XS_HEX_BINARY)) {
-                return value;
-            } else if (TypeUtils.isSubtypeTypeOf(type, BuiltinTypeRegistry.XS_BASE64_BINARY)) {
-                byte[] bytes = ((Base64BinaryValue) aVal).getBytes();
-                return avf.createHexBinary(bytes);
-            }
-        }
-        CharSequence str = ((XDMItem) value).getStringValue();
-        return avf.createHexBinary(str);
-    }
-
-    @Override
-    public boolean castable(XDMValue value, StaticContext ctx) {
-        return false;
-    }
-
-    @Override
-    public Boolean castable(XQType type) {
-        return null;
-    }
-
-    @Override
-    public ErrorCode getCastFailureErrorCode(XQType type) {
-        return null;
-    }
-}
\ No newline at end of file
diff --git a/vxquery-core/src/main/java/org/apache/vxquery/types/processors/IntCastProcessor.java b/vxquery-core/src/main/java/org/apache/vxquery/types/processors/IntCastProcessor.java
deleted file mode 100644 (file)
index 8830c66..0000000
+++ /dev/null
@@ -1,55 +0,0 @@
-/*
-* Licensed to the Apache Software Foundation (ASF) under one or more
-* contributor license agreements.  See the NOTICE file distributed with
-* this work for additional information regarding copyright ownership.
-* The ASF licenses this file to You under the Apache License, Version 2.0
-* (the "License"); you may not use this file except in compliance with
-* the License.  You may obtain a copy of the License at
-*
-*     http://www.apache.org/licenses/LICENSE-2.0
-*
-* Unless required by applicable law or agreed to in writing, software
-* distributed under the License is distributed on an "AS IS" BASIS,
-* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-* See the License for the specific language governing permissions and
-* limitations under the License.
-*/
-package org.apache.vxquery.types.processors;
-
-import org.apache.vxquery.context.StaticContext;
-import org.apache.vxquery.exceptions.ErrorCode;
-import org.apache.vxquery.exceptions.SystemException;
-import org.apache.vxquery.exceptions.SystemExceptionFactory;
-import org.apache.vxquery.types.XQType;
-import org.apache.vxquery.v0datamodel.XDMItem;
-import org.apache.vxquery.v0datamodel.XDMValue;
-import org.apache.vxquery.v0datamodel.atomic.AtomicValueFactory;
-
-public class IntCastProcessor implements CastProcessor {
-    public static final CastProcessor INSTANCE = new IntCastProcessor();
-
-    private IntCastProcessor() {
-    }
-
-    @Override
-    public XDMValue cast(AtomicValueFactory avf, XDMValue value, SystemExceptionFactory ieFactory,
-            StaticContext ctx) throws SystemException {
-        CharSequence str = ((XDMItem) value).getStringValue();
-        return avf.createInt(str);
-    }
-
-    @Override
-    public boolean castable(XDMValue value, StaticContext ctx) {
-        return false;
-    }
-
-    @Override
-    public Boolean castable(XQType type) {
-        return null;
-    }
-
-    @Override
-    public ErrorCode getCastFailureErrorCode(XQType type) {
-        return null;
-    }
-}
\ No newline at end of file
diff --git a/vxquery-core/src/main/java/org/apache/vxquery/types/processors/IntegerCastProcessor.java b/vxquery-core/src/main/java/org/apache/vxquery/types/processors/IntegerCastProcessor.java
deleted file mode 100644 (file)
index b1a9321..0000000
+++ /dev/null
@@ -1,55 +0,0 @@
-/*
-* Licensed to the Apache Software Foundation (ASF) under one or more
-* contributor license agreements.  See the NOTICE file distributed with
-* this work for additional information regarding copyright ownership.
-* The ASF licenses this file to You under the Apache License, Version 2.0
-* (the "License"); you may not use this file except in compliance with
-* the License.  You may obtain a copy of the License at
-*
-*     http://www.apache.org/licenses/LICENSE-2.0
-*
-* Unless required by applicable law or agreed to in writing, software
-* distributed under the License is distributed on an "AS IS" BASIS,
-* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-* See the License for the specific language governing permissions and
-* limitations under the License.
-*/
-package org.apache.vxquery.types.processors;
-
-import org.apache.vxquery.context.StaticContext;
-import org.apache.vxquery.exceptions.ErrorCode;
-import org.apache.vxquery.exceptions.SystemException;
-import org.apache.vxquery.exceptions.SystemExceptionFactory;
-import org.apache.vxquery.types.XQType;
-import org.apache.vxquery.v0datamodel.XDMItem;
-import org.apache.vxquery.v0datamodel.XDMValue;
-import org.apache.vxquery.v0datamodel.atomic.AtomicValueFactory;
-
-public class IntegerCastProcessor implements CastProcessor {
-    public static final CastProcessor INSTANCE = new IntegerCastProcessor();
-
-    private IntegerCastProcessor() {
-    }
-
-    @Override
-    public XDMValue cast(AtomicValueFactory avf, XDMValue value, SystemExceptionFactory ieFactory,
-            StaticContext ctx) throws SystemException {
-        CharSequence str = ((XDMItem) value).getStringValue();
-        return avf.createInteger(str);
-    }
-
-    @Override
-    public boolean castable(XDMValue value, StaticContext ctx) {
-        return false;
-    }
-
-    @Override
-    public Boolean castable(XQType type) {
-        return null;
-    }
-
-    @Override
-    public ErrorCode getCastFailureErrorCode(XQType type) {
-        return null;
-    }
-}
\ No newline at end of file
diff --git a/vxquery-core/src/main/java/org/apache/vxquery/types/processors/LanguageCastProcessor.java b/vxquery-core/src/main/java/org/apache/vxquery/types/processors/LanguageCastProcessor.java
deleted file mode 100644 (file)
index c0314a0..0000000
+++ /dev/null
@@ -1,53 +0,0 @@
-/*
-* Licensed to the Apache Software Foundation (ASF) under one or more
-* contributor license agreements.  See the NOTICE file distributed with
-* this work for additional information regarding copyright ownership.
-* The ASF licenses this file to You under the Apache License, Version 2.0
-* (the "License"); you may not use this file except in compliance with
-* the License.  You may obtain a copy of the License at
-*
-*     http://www.apache.org/licenses/LICENSE-2.0
-*
-* Unless required by applicable law or agreed to in writing, software
-* distributed under the License is distributed on an "AS IS" BASIS,
-* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-* See the License for the specific language governing permissions and
-* limitations under the License.
-*/
-package org.apache.vxquery.types.processors;
-
-import org.apache.vxquery.context.StaticContext;
-import org.apache.vxquery.exceptions.ErrorCode;
-import org.apache.vxquery.exceptions.SystemException;
-import org.apache.vxquery.exceptions.SystemExceptionFactory;
-import org.apache.vxquery.types.XQType;
-import org.apache.vxquery.v0datamodel.XDMValue;
-import org.apache.vxquery.v0datamodel.atomic.AtomicValueFactory;
-
-public class LanguageCastProcessor implements CastProcessor {
-    public static final CastProcessor INSTANCE = new LanguageCastProcessor();
-
-    private LanguageCastProcessor() {
-    }
-
-    @Override
-    public XDMValue cast(AtomicValueFactory avf, XDMValue value, SystemExceptionFactory ieFactory,
-            StaticContext ctx) throws SystemException {
-        return null;
-    }
-
-    @Override
-    public boolean castable(XDMValue value, StaticContext ctx) {
-        return false;
-    }
-
-    @Override
-    public Boolean castable(XQType type) {
-        return null;
-    }
-
-    @Override
-    public ErrorCode getCastFailureErrorCode(XQType type) {
-        return null;
-    }
-}
\ No newline at end of file
diff --git a/vxquery-core/src/main/java/org/apache/vxquery/types/processors/LongCastProcessor.java b/vxquery-core/src/main/java/org/apache/vxquery/types/processors/LongCastProcessor.java
deleted file mode 100644 (file)
index 8736e64..0000000
+++ /dev/null
@@ -1,56 +0,0 @@
-/*
-* Licensed to the Apache Software Foundation (ASF) under one or more
-* contributor license agreements.  See the NOTICE file distributed with
-* this work for additional information regarding copyright ownership.
-* The ASF licenses this file to You under the Apache License, Version 2.0
-* (the "License"); you may not use this file except in compliance with
-* the License.  You may obtain a copy of the License at
-*
-*     http://www.apache.org/licenses/LICENSE-2.0
-*
-* Unless required by applicable law or agreed to in writing, software
-* distributed under the License is distributed on an "AS IS" BASIS,
-* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-* See the License for the specific language governing permissions and
-* limitations under the License.
-*/
-package org.apache.vxquery.types.processors;
-
-import org.apache.vxquery.context.StaticContext;
-import org.apache.vxquery.exceptions.ErrorCode;
-import org.apache.vxquery.exceptions.SystemException;
-import org.apache.vxquery.exceptions.SystemExceptionFactory;
-import org.apache.vxquery.types.BuiltinTypeRegistry;
-import org.apache.vxquery.types.XQType;
-import org.apache.vxquery.v0datamodel.XDMItem;
-import org.apache.vxquery.v0datamodel.XDMValue;
-import org.apache.vxquery.v0datamodel.atomic.AtomicValueFactory;
-
-public class LongCastProcessor implements CastProcessor {
-    public static final CastProcessor INSTANCE = new LongCastProcessor();
-
-    private LongCastProcessor() {
-    }
-
-    @Override
-    public XDMValue cast(AtomicValueFactory avf, XDMValue value, SystemExceptionFactory ieFactory,
-            StaticContext ctx) throws SystemException {
-        CharSequence str = ((XDMItem) value).getStringValue();
-        return avf.createInteger(str, BuiltinTypeRegistry.XS_LONG);
-    }
-
-    @Override
-    public boolean castable(XDMValue value, StaticContext ctx) {
-        return false;
-    }
-
-    @Override
-    public Boolean castable(XQType type) {
-        return null;
-    }
-
-    @Override
-    public ErrorCode getCastFailureErrorCode(XQType type) {
-        return null;
-    }
-}
\ No newline at end of file
diff --git a/vxquery-core/src/main/java/org/apache/vxquery/types/processors/NCNameCastProcessor.java b/vxquery-core/src/main/java/org/apache/vxquery/types/processors/NCNameCastProcessor.java
deleted file mode 100644 (file)
index 422cf2f..0000000
+++ /dev/null
@@ -1,53 +0,0 @@
-/*
-* Licensed to the Apache Software Foundation (ASF) under one or more
-* contributor license agreements.  See the NOTICE file distributed with
-* this work for additional information regarding copyright ownership.
-* The ASF licenses this file to You under the Apache License, Version 2.0
-* (the "License"); you may not use this file except in compliance with
-* the License.  You may obtain a copy of the License at
-*
-*     http://www.apache.org/licenses/LICENSE-2.0
-*
-* Unless required by applicable law or agreed to in writing, software
-* distributed under the License is distributed on an "AS IS" BASIS,
-* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-* See the License for the specific language governing permissions and
-* limitations under the License.
-*/
-package org.apache.vxquery.types.processors;
-
-import org.apache.vxquery.context.StaticContext;
-import org.apache.vxquery.exceptions.ErrorCode;
-import org.apache.vxquery.exceptions.SystemException;
-import org.apache.vxquery.exceptions.SystemExceptionFactory;
-import org.apache.vxquery.types.XQType;
-import org.apache.vxquery.v0datamodel.XDMValue;
-import org.apache.vxquery.v0datamodel.atomic.AtomicValueFactory;
-
-public class NCNameCastProcessor implements CastProcessor {
-    public static final CastProcessor INSTANCE = new NCNameCastProcessor();
-
-    private NCNameCastProcessor() {
-    }
-
-    @Override
-    public XDMValue cast(AtomicValueFactory avf, XDMValue value, SystemExceptionFactory ieFactory,
-            StaticContext ctx) throws SystemException {
-        return null;
-    }
-
-    @Override
-    public boolean castable(XDMValue value, StaticContext ctx) {
-        return false;
-    }
-
-    @Override
-    public Boolean castable(XQType type) {
-        return null;
-    }
-
-    @Override
-    public ErrorCode getCastFailureErrorCode(XQType type) {
-        return null;
-    }
-}
\ No newline at end of file
diff --git a/vxquery-core/src/main/java/org/apache/vxquery/types/processors/NMTokenCastProcessor.java b/vxquery-core/src/main/java/org/apache/vxquery/types/processors/NMTokenCastProcessor.java
deleted file mode 100644 (file)
index b0e1703..0000000
+++ /dev/null
@@ -1,53 +0,0 @@
-/*
-* Licensed to the Apache Software Foundation (ASF) under one or more
-* contributor license agreements.  See the NOTICE file distributed with
-* this work for additional information regarding copyright ownership.
-* The ASF licenses this file to You under the Apache License, Version 2.0
-* (the "License"); you may not use this file except in compliance with
-* the License.  You may obtain a copy of the License at
-*
-*     http://www.apache.org/licenses/LICENSE-2.0
-*
-* Unless required by applicable law or agreed to in writing, software
-* distributed under the License is distributed on an "AS IS" BASIS,
-* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-* See the License for the specific language governing permissions and
-* limitations under the License.
-*/
-package org.apache.vxquery.types.processors;
-
-import org.apache.vxquery.context.StaticContext;
-import org.apache.vxquery.exceptions.ErrorCode;
-import org.apache.vxquery.exceptions.SystemException;
-import org.apache.vxquery.exceptions.SystemExceptionFactory;
-import org.apache.vxquery.types.XQType;
-import org.apache.vxquery.v0datamodel.XDMValue;
-import org.apache.vxquery.v0datamodel.atomic.AtomicValueFactory;
-
-public class NMTokenCastProcessor implements CastProcessor {
-    public static final CastProcessor INSTANCE = new NMTokenCastProcessor();
-
-    private NMTokenCastProcessor() {
-    }
-
-    @Override
-    public XDMValue cast(AtomicValueFactory avf, XDMValue value, SystemExceptionFactory ieFactory,
-            StaticContext ctx) throws SystemException {
-        return null;
-    }
-
-    @Override
-    public boolean castable(XDMValue value, StaticContext ctx) {
-        return false;
-    }
-
-    @Override
-    public Boolean castable(XQType type) {
-        return null;
-    }
-
-    @Override
-    public ErrorCode getCastFailureErrorCode(XQType type) {
-        return null;
-    }
-}
\ No newline at end of file
diff --git a/vxquery-core/src/main/java/org/apache/vxquery/types/processors/NameCastProcessor.java b/vxquery-core/src/main/java/org/apache/vxquery/types/processors/NameCastProcessor.java
deleted file mode 100644 (file)
index 503fab3..0000000
+++ /dev/null
@@ -1,53 +0,0 @@
-/*
-* Licensed to the Apache Software Foundation (ASF) under one or more
-* contributor license agreements.  See the NOTICE file distributed with
-* this work for additional information regarding copyright ownership.
-* The ASF licenses this file to You under the Apache License, Version 2.0
-* (the "License"); you may not use this file except in compliance with
-* the License.  You may obtain a copy of the License at
-*
-*     http://www.apache.org/licenses/LICENSE-2.0
-*
-* Unless required by applicable law or agreed to in writing, software
-* distributed under the License is distributed on an "AS IS" BASIS,
-* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-* See the License for the specific language governing permissions and
-* limitations under the License.
-*/
-package org.apache.vxquery.types.processors;
-
-import org.apache.vxquery.context.StaticContext;
-import org.apache.vxquery.exceptions.ErrorCode;
-import org.apache.vxquery.exceptions.SystemException;
-import org.apache.vxquery.exceptions.SystemExceptionFactory;
-import org.apache.vxquery.types.XQType;
-import org.apache.vxquery.v0datamodel.XDMValue;
-import org.apache.vxquery.v0datamodel.atomic.AtomicValueFactory;
-
-public class NameCastProcessor implements CastProcessor {
-    public static final CastProcessor INSTANCE = new NameCastProcessor();
-
-    private NameCastProcessor() {
-    }
-
-    @Override
-    public XDMValue cast(AtomicValueFactory avf, XDMValue value, SystemExceptionFactory ieFactory,
-            StaticContext ctx) throws SystemException {
-        return null;
-    }
-
-    @Override
-    public boolean castable(XDMValue value, StaticContext ctx) {
-        return false;
-    }
-
-    @Override
-    public Boolean castable(XQType type) {
-        return null;
-    }
-
-    @Override
-    public ErrorCode getCastFailureErrorCode(XQType type) {
-        return null;
-    }
-}
\ No newline at end of file
diff --git a/vxquery-core/src/main/java/org/apache/vxquery/types/processors/NegativeIntegerCastProcessor.java b/vxquery-core/src/main/java/org/apache/vxquery/types/processors/NegativeIntegerCastProcessor.java
deleted file mode 100644 (file)
index b0b8d5b..0000000
+++ /dev/null
@@ -1,56 +0,0 @@
-/*
-* Licensed to the Apache Software Foundation (ASF) under one or more
-* contributor license agreements.  See the NOTICE file distributed with
-* this work for additional information regarding copyright ownership.
-* The ASF licenses this file to You under the Apache License, Version 2.0
-* (the "License"); you may not use this file except in compliance with
-* the License.  You may obtain a copy of the License at
-*
-*     http://www.apache.org/licenses/LICENSE-2.0
-*
-* Unless required by applicable law or agreed to in writing, software
-* distributed under the License is distributed on an "AS IS" BASIS,
-* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-* See the License for the specific language governing permissions and
-* limitations under the License.
-*/
-package org.apache.vxquery.types.processors;
-
-import org.apache.vxquery.context.StaticContext;
-import org.apache.vxquery.exceptions.ErrorCode;
-import org.apache.vxquery.exceptions.SystemException;
-import org.apache.vxquery.exceptions.SystemExceptionFactory;
-import org.apache.vxquery.types.BuiltinTypeRegistry;
-import org.apache.vxquery.types.XQType;
-import org.apache.vxquery.v0datamodel.XDMItem;
-import org.apache.vxquery.v0datamodel.XDMValue;
-import org.apache.vxquery.v0datamodel.atomic.AtomicValueFactory;
-
-public class NegativeIntegerCastProcessor implements CastProcessor {
-    public static final CastProcessor INSTANCE = new NegativeIntegerCastProcessor();
-
-    private NegativeIntegerCastProcessor() {
-    }
-
-    @Override
-    public XDMValue cast(AtomicValueFactory avf, XDMValue value, SystemExceptionFactory ieFactory,
-            StaticContext ctx) throws SystemException {
-        CharSequence str = ((XDMItem) value).getStringValue();
-        return avf.createInteger(str, BuiltinTypeRegistry.XS_NEGATIVE_INTEGER);
-    }
-
-    @Override
-    public boolean castable(XDMValue value, StaticContext ctx) {
-        return false;
-    }
-
-    @Override
-    public Boolean castable(XQType type) {
-        return null;
-    }
-
-    @Override
-    public ErrorCode getCastFailureErrorCode(XQType type) {
-        return null;
-    }
-}
\ No newline at end of file
diff --git a/vxquery-core/src/main/java/org/apache/vxquery/types/processors/NonNegativeIntegerCastProcessor.java b/vxquery-core/src/main/java/org/apache/vxquery/types/processors/NonNegativeIntegerCastProcessor.java
deleted file mode 100644 (file)
index be40847..0000000
+++ /dev/null
@@ -1,56 +0,0 @@
-/*
-* Licensed to the Apache Software Foundation (ASF) under one or more
-* contributor license agreements.  See the NOTICE file distributed with
-* this work for additional information regarding copyright ownership.
-* The ASF licenses this file to You under the Apache License, Version 2.0
-* (the "License"); you may not use this file except in compliance with
-* the License.  You may obtain a copy of the License at
-*
-*     http://www.apache.org/licenses/LICENSE-2.0
-*
-* Unless required by applicable law or agreed to in writing, software
-* distributed under the License is distributed on an "AS IS" BASIS,
-* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-* See the License for the specific language governing permissions and
-* limitations under the License.
-*/
-package org.apache.vxquery.types.processors;
-
-import org.apache.vxquery.context.StaticContext;
-import org.apache.vxquery.exceptions.ErrorCode;
-import org.apache.vxquery.exceptions.SystemException;
-import org.apache.vxquery.exceptions.SystemExceptionFactory;
-import org.apache.vxquery.types.BuiltinTypeRegistry;
-import org.apache.vxquery.types.XQType;
-import org.apache.vxquery.v0datamodel.XDMItem;
-import org.apache.vxquery.v0datamodel.XDMValue;
-import org.apache.vxquery.v0datamodel.atomic.AtomicValueFactory;
-
-public class NonNegativeIntegerCastProcessor implements CastProcessor {
-    public static final CastProcessor INSTANCE = new NonNegativeIntegerCastProcessor();
-
-    private NonNegativeIntegerCastProcessor() {
-    }
-
-    @Override
-    public XDMValue cast(AtomicValueFactory avf, XDMValue value, SystemExceptionFactory ieFactory,
-            StaticContext ctx) throws SystemException {
-        CharSequence str = ((XDMItem) value).getStringValue();
-        return avf.createInteger(str, BuiltinTypeRegistry.XS_NON_NEGATIVE_INTEGER);
-    }
-
-    @Override
-    public boolean castable(XDMValue value, StaticContext ctx) {
-        return false;
-    }
-
-    @Override
-    public Boolean castable(XQType type) {
-        return null;
-    }
-
-    @Override
-    public ErrorCode getCastFailureErrorCode(XQType type) {
-        return null;
-    }
-}
\ No newline at end of file
diff --git a/vxquery-core/src/main/java/org/apache/vxquery/types/processors/NonPositiveIntegerCastProcessor.java b/vxquery-core/src/main/java/org/apache/vxquery/types/processors/NonPositiveIntegerCastProcessor.java
deleted file mode 100644 (file)
index 9f1aafd..0000000
+++ /dev/null
@@ -1,56 +0,0 @@
-/*
-* Licensed to the Apache Software Foundation (ASF) under one or more
-* contributor license agreements.  See the NOTICE file distributed with
-* this work for additional information regarding copyright ownership.
-* The ASF licenses this file to You under the Apache License, Version 2.0
-* (the "License"); you may not use this file except in compliance with
-* the License.  You may obtain a copy of the License at
-*
-*     http://www.apache.org/licenses/LICENSE-2.0
-*
-* Unless required by applicable law or agreed to in writing, software
-* distributed under the License is distributed on an "AS IS" BASIS,
-* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-* See the License for the specific language governing permissions and
-* limitations under the License.
-*/
-package org.apache.vxquery.types.processors;
-
-import org.apache.vxquery.context.StaticContext;
-import org.apache.vxquery.exceptions.ErrorCode;
-import org.apache.vxquery.exceptions.SystemException;
-import org.apache.vxquery.exceptions.SystemExceptionFactory;
-import org.apache.vxquery.types.BuiltinTypeRegistry;
-import org.apache.vxquery.types.XQType;
-import org.apache.vxquery.v0datamodel.XDMItem;
-import org.apache.vxquery.v0datamodel.XDMValue;
-import org.apache.vxquery.v0datamodel.atomic.AtomicValueFactory;
-
-public class NonPositiveIntegerCastProcessor implements CastProcessor {
-    public static final CastProcessor INSTANCE = new NonPositiveIntegerCastProcessor();
-
-    private NonPositiveIntegerCastProcessor() {
-    }
-
-    @Override
-    public XDMValue cast(AtomicValueFactory avf, XDMValue value, SystemExceptionFactory ieFactory,
-            StaticContext ctx) throws SystemException {
-        CharSequence str = ((XDMItem) value).getStringValue();
-        return avf.createInteger(str, BuiltinTypeRegistry.XS_NON_POSITIVE_INTEGER);
-    }
-
-    @Override
-    public boolean castable(XDMValue value, StaticContext ctx) {
-        return false;
-    }
-
-    @Override
-    public Boolean castable(XQType type) {
-        return null;
-    }
-
-    @Override
-    public ErrorCode getCastFailureErrorCode(XQType type) {
-        return null;
-    }
-}
\ No newline at end of file
diff --git a/vxquery-core/src/main/java/org/apache/vxquery/types/processors/NoopCastProcessor.java b/vxquery-core/src/main/java/org/apache/vxquery/types/processors/NoopCastProcessor.java
deleted file mode 100644 (file)
index c555f24..0000000
+++ /dev/null
@@ -1,53 +0,0 @@
-/*
-* Licensed to the Apache Software Foundation (ASF) under one or more
-* contributor license agreements.  See the NOTICE file distributed with
-* this work for additional information regarding copyright ownership.
-* The ASF licenses this file to You under the Apache License, Version 2.0
-* (the "License"); you may not use this file except in compliance with
-* the License.  You may obtain a copy of the License at
-*
-*     http://www.apache.org/licenses/LICENSE-2.0
-*
-* Unless required by applicable law or agreed to in writing, software
-* distributed under the License is distributed on an "AS IS" BASIS,
-* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-* See the License for the specific language governing permissions and
-* limitations under the License.
-*/
-package org.apache.vxquery.types.processors;
-
-import org.apache.vxquery.context.StaticContext;
-import org.apache.vxquery.exceptions.ErrorCode;
-import org.apache.vxquery.exceptions.SystemException;
-import org.apache.vxquery.exceptions.SystemExceptionFactory;
-import org.apache.vxquery.types.XQType;
-import org.apache.vxquery.v0datamodel.XDMValue;
-import org.apache.vxquery.v0datamodel.atomic.AtomicValueFactory;
-
-public class NoopCastProcessor implements CastProcessor {
-    public static final CastProcessor INSTANCE = new NoopCastProcessor();
-
-    private NoopCastProcessor() {
-    }
-
-    @Override
-    public XDMValue cast(AtomicValueFactory avf, XDMValue value, SystemExceptionFactory ieFactory,
-            StaticContext ctx) throws SystemException {
-        return value;
-    }
-
-    @Override
-    public boolean castable(XDMValue value, StaticContext ctx) {
-        return true;
-    }
-
-    @Override
-    public Boolean castable(XQType type) {
-        return Boolean.TRUE;
-    }
-
-    @Override
-    public ErrorCode getCastFailureErrorCode(XQType type) {
-        return null;
-    }
-}
\ No newline at end of file
diff --git a/vxquery-core/src/main/java/org/apache/vxquery/types/processors/NormalizedStringCastProcessor.java b/vxquery-core/src/main/java/org/apache/vxquery/types/processors/NormalizedStringCastProcessor.java
deleted file mode 100644 (file)
index f634c32..0000000
+++ /dev/null
@@ -1,56 +0,0 @@
-/*
-* Licensed to the Apache Software Foundation (ASF) under one or more
-* contributor license agreements.  See the NOTICE file distributed with
-* this work for additional information regarding copyright ownership.
-* The ASF licenses this file to You under the Apache License, Version 2.0
-* (the "License"); you may not use this file except in compliance with
-* the License.  You may obtain a copy of the License at
-*
-*     http://www.apache.org/licenses/LICENSE-2.0
-*
-* Unless required by applicable law or agreed to in writing, software
-* distributed under the License is distributed on an "AS IS" BASIS,
-* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-* See the License for the specific language governing permissions and
-* limitations under the License.
-*/
-package org.apache.vxquery.types.processors;
-
-import org.apache.vxquery.context.StaticContext;
-import org.apache.vxquery.exceptions.ErrorCode;
-import org.apache.vxquery.exceptions.SystemException;
-import org.apache.vxquery.exceptions.SystemExceptionFactory;
-import org.apache.vxquery.types.BuiltinTypeRegistry;
-import org.apache.vxquery.types.XQType;
-import org.apache.vxquery.v0datamodel.XDMItem;
-import org.apache.vxquery.v0datamodel.XDMValue;
-import org.apache.vxquery.v0datamodel.atomic.AtomicValueFactory;
-
-public class NormalizedStringCastProcessor implements CastProcessor {
-    public static final CastProcessor INSTANCE = new NormalizedStringCastProcessor();
-
-    private NormalizedStringCastProcessor() {
-    }
-
-    @Override
-    public XDMValue cast(AtomicValueFactory avf, XDMValue value, SystemExceptionFactory ieFactory,
-            StaticContext ctx) throws SystemException {
-        CharSequence cs = ((XDMItem) value).getStringValue();
-        return avf.createString(cs, BuiltinTypeRegistry.XS_NORMALIZED_STRING);
-    }
-
-    @Override
-    public boolean castable(XDMValue value, StaticContext ctx) {
-        return true;
-    }
-
-    @Override
-    public Boolean castable(XQType type) {
-        return Boolean.TRUE;
-    }
-
-    @Override
-    public ErrorCode getCastFailureErrorCode(XQType type) {
-        return null;
-    }
-}
\ No newline at end of file
diff --git a/vxquery-core/src/main/java/org/apache/vxquery/types/processors/NotCastableCastProcessor.java b/vxquery-core/src/main/java/org/apache/vxquery/types/processors/NotCastableCastProcessor.java
deleted file mode 100644 (file)
index 5da4874..0000000
+++ /dev/null
@@ -1,58 +0,0 @@
-/*
-* Licensed to the Apache Software Foundation (ASF) under one or more
-* contributor license agreements.  See the NOTICE file distributed with
-* this work for additional information regarding copyright ownership.
-* The ASF licenses this file to You under the Apache License, Version 2.0
-* (the "License"); you may not use this file except in compliance with
-* the License.  You may obtain a copy of the License at
-*
-*     http://www.apache.org/licenses/LICENSE-2.0
-*
-* Unless required by applicable law or agreed to in writing, software
-* distributed under the License is distributed on an "AS IS" BASIS,
-* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-* See the License for the specific language governing permissions and
-* limitations under the License.
-*/
-package org.apache.vxquery.types.processors;
-
-import org.apache.vxquery.context.StaticContext;
-import org.apache.vxquery.exceptions.ErrorCode;
-import org.apache.vxquery.exceptions.SystemException;
-import org.apache.vxquery.exceptions.SystemExceptionFactory;
-import org.apache.vxquery.types.XQType;
-import org.apache.vxquery.v0datamodel.XDMValue;
-import org.apache.vxquery.v0datamodel.atomic.AtomicValueFactory;
-
-public final class NotCastableCastProcessor implements CastProcessor {
-    public static final CastProcessor INSTANCE_XPTY0004 = new NotCastableCastProcessor(ErrorCode.XPTY0004);
-    public static final CastProcessor INSTANCE_XPST0051 = new NotCastableCastProcessor(ErrorCode.XPST0051);
-    public static final CastProcessor INSTANCE_XPST0080 = new NotCastableCastProcessor(ErrorCode.XPST0080);
-
-    private ErrorCode eCode;
-
-    private NotCastableCastProcessor(ErrorCode eCode) {
-        this.eCode = eCode;
-    }
-
-    @Override
-    public XDMValue cast(AtomicValueFactory avf, XDMValue value, SystemExceptionFactory ieFactory,
-            StaticContext ctx) throws SystemException {
-        throw ieFactory.createException(eCode);
-    }
-
-    @Override
-    public boolean castable(XDMValue value, StaticContext ctx) {
-        return false;
-    }
-
-    @Override
-    public Boolean castable(XQType type) {
-        return Boolean.FALSE;
-    }
-
-    @Override
-    public ErrorCode getCastFailureErrorCode(XQType type) {
-        return eCode;
-    }
-}
\ No newline at end of file
diff --git a/vxquery-core/src/main/java/org/apache/vxquery/types/processors/PositiveIntegerCastProcessor.java b/vxquery-core/src/main/java/org/apache/vxquery/types/processors/PositiveIntegerCastProcessor.java
deleted file mode 100644 (file)
index 1e6f3d7..0000000
+++ /dev/null
@@ -1,56 +0,0 @@
-/*
-* Licensed to the Apache Software Foundation (ASF) under one or more
-* contributor license agreements.  See the NOTICE file distributed with
-* this work for additional information regarding copyright ownership.
-* The ASF licenses this file to You under the Apache License, Version 2.0
-* (the "License"); you may not use this file except in compliance with
-* the License.  You may obtain a copy of the License at
-*
-*     http://www.apache.org/licenses/LICENSE-2.0
-*
-* Unless required by applicable law or agreed to in writing, software
-* distributed under the License is distributed on an "AS IS" BASIS,
-* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-* See the License for the specific language governing permissions and
-* limitations under the License.
-*/
-package org.apache.vxquery.types.processors;
-
-import org.apache.vxquery.context.StaticContext;
-import org.apache.vxquery.exceptions.ErrorCode;
-import org.apache.vxquery.exceptions.SystemException;
-import org.apache.vxquery.exceptions.SystemExceptionFactory;
-import org.apache.vxquery.types.BuiltinTypeRegistry;
-import org.apache.vxquery.types.XQType;
-import org.apache.vxquery.v0datamodel.XDMItem;
-import org.apache.vxquery.v0datamodel.XDMValue;
-import org.apache.vxquery.v0datamodel.atomic.AtomicValueFactory;
-
-public class PositiveIntegerCastProcessor implements CastProcessor {
-    public static final CastProcessor INSTANCE = new PositiveIntegerCastProcessor();
-
-    private PositiveIntegerCastProcessor() {
-    }
-
-    @Override
-    public XDMValue cast(AtomicValueFactory avf, XDMValue value, SystemExceptionFactory ieFactory,
-            StaticContext ctx) throws SystemException {
-        CharSequence str = ((XDMItem) value).getStringValue();
-        return avf.createInteger(str, BuiltinTypeRegistry.XS_POSITIVE_INTEGER);
-    }
-
-    @Override
-    public boolean castable(XDMValue value, StaticContext ctx) {
-        return false;
-    }
-
-    @Override
-    public Boolean castable(XQType type) {
-        return null;
-    }
-
-    @Override
-    public ErrorCode getCastFailureErrorCode(XQType type) {
-        return null;
-    }
-}
\ No newline at end of file
diff --git a/vxquery-core/src/main/java/org/apache/vxquery/types/processors/QNameCastProcessor.java b/vxquery-core/src/main/java/org/apache/vxquery/types/processors/QNameCastProcessor.java
deleted file mode 100644 (file)
index d77a426..0000000
+++ /dev/null
@@ -1,69 +0,0 @@
-/*
-* Licensed to the Apache Software Foundation (ASF) under one or more
-* contributor license agreements.  See the NOTICE file distributed with
-* this work for additional information regarding copyright ownership.
-* The ASF licenses this file to You under the Apache License, Version 2.0
-* (the "License"); you may not use this file except in compliance with
-* the License.  You may obtain a copy of the License at
-*
-*     http://www.apache.org/licenses/LICENSE-2.0
-*
-* Unless required by applicable law or agreed to in writing, software
-* distributed under the License is distributed on an "AS IS" BASIS,
-* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-* See the License for the specific language governing permissions and
-* limitations under the License.
-*/
-package org.apache.vxquery.types.processors;
-
-import org.apache.vxquery.context.StaticContext;
-import org.apache.vxquery.exceptions.ErrorCode;
-import org.apache.vxquery.exceptions.SystemException;
-import org.apache.vxquery.exceptions.SystemExceptionFactory;
-import org.apache.vxquery.types.BuiltinTypeRegistry;
-import org.apache.vxquery.types.TypeUtils;
-import org.apache.vxquery.types.XQType;
-import org.apache.vxquery.v0datamodel.XDMAtomicValue;
-import org.apache.vxquery.v0datamodel.XDMItem;
-import org.apache.vxquery.v0datamodel.XDMValue;
-import org.apache.vxquery.v0datamodel.atomic.AtomicValueFactory;
-
-public class QNameCastProcessor implements CastProcessor {
-    public static final CastProcessor INSTANCE = new QNameCastProcessor();
-
-    private QNameCastProcessor() {
-    }
-
-    @Override
-    public XDMValue cast(AtomicValueFactory avf, XDMValue value, SystemExceptionFactory ieFactory,
-            StaticContext ctx) throws SystemException {
-        XDMAtomicValue aValue = (XDMAtomicValue) value;
-        if (TypeUtils.isSubtypeTypeOf(aValue.getAtomicType(), BuiltinTypeRegistry.XS_QNAME)) {
-            return value;
-        }
-        String str = ((XDMItem) value).getStringValue().toString();
-        int idx = str.indexOf(':');
-        if (idx < 0) {
-            return avf.createQName("", "", str);
-        }
-        String prefix = str.substring(0, idx);
-        String local = str.substring(idx + 1);
-        String nsUri = ctx.lookupNamespaceUri(prefix);
-        return avf.createQName(prefix, nsUri, local);
-    }
-
-    @Override
-    public boolean castable(XDMValue value, StaticContext ctx) {
-        return false;
-    }
-
-    @Override
-    public Boolean castable(XQType type) {
-        return null;
-    }
-
-    @Override
-    public ErrorCode getCastFailureErrorCode(XQType type) {
-        return null;
-    }
-}
\ No newline at end of file
diff --git a/vxquery-core/src/main/java/org/apache/vxquery/types/processors/ShortCastProcessor.java b/vxquery-core/src/main/java/org/apache/vxquery/types/processors/ShortCastProcessor.java
deleted file mode 100644 (file)
index 420697f..0000000
+++ /dev/null
@@ -1,56 +0,0 @@
-/*
-* Licensed to the Apache Software Foundation (ASF) under one or more
-* contributor license agreements.  See the NOTICE file distributed with
-* this work for additional information regarding copyright ownership.
-* The ASF licenses this file to You under the Apache License, Version 2.0
-* (the "License"); you may not use this file except in compliance with
-* the License.  You may obtain a copy of the License at
-*
-*     http://www.apache.org/licenses/LICENSE-2.0
-*
-* Unless required by applicable law or agreed to in writing, software
-* distributed under the License is distributed on an "AS IS" BASIS,
-* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-* See the License for the specific language governing permissions and
-* limitations under the License.
-*/
-package org.apache.vxquery.types.processors;
-
-import org.apache.vxquery.context.StaticContext;
-import org.apache.vxquery.exceptions.ErrorCode;
-import org.apache.vxquery.exceptions.SystemException;
-import org.apache.vxquery.exceptions.SystemExceptionFactory;
-import org.apache.vxquery.types.BuiltinTypeRegistry;
-import org.apache.vxquery.types.XQType;
-import org.apache.vxquery.v0datamodel.XDMItem;
-import org.apache.vxquery.v0datamodel.XDMValue;
-import org.apache.vxquery.v0datamodel.atomic.AtomicValueFactory;
-
-public class ShortCastProcessor implements CastProcessor {
-    public static final CastProcessor INSTANCE = new ShortCastProcessor();
-
-    private ShortCastProcessor() {
-    }
-
-    @Override
-    public XDMValue cast(AtomicValueFactory avf, XDMValue value, SystemExceptionFactory ieFactory,
-            StaticContext ctx) throws SystemException {
-        CharSequence str = ((XDMItem) value).getStringValue();
-        return avf.createInt(str, BuiltinTypeRegistry.XS_SHORT);
-    }
-
-    @Override
-    public boolean castable(XDMValue value, StaticContext ctx) {
-        return false;
-    }
-
-    @Override
-    public Boolean castable(XQType type) {
-        return null;
-    }
-
-    @Override
-    public ErrorCode getCastFailureErrorCode(XQType type) {
-        return null;
-    }
-}
\ No newline at end of file
diff --git a/vxquery-core/src/main/java/org/apache/vxquery/types/processors/StringCastProcessor.java b/vxquery-core/src/main/java/org/apache/vxquery/types/processors/StringCastProcessor.java
deleted file mode 100644 (file)
index 8c6db58..0000000
+++ /dev/null
@@ -1,54 +0,0 @@
-/*
-* Licensed to the Apache Software Foundation (ASF) under one or more
-* contributor license agreements.  See the NOTICE file distributed with
-* this work for additional information regarding copyright ownership.
-* The ASF licenses this file to You under the Apache License, Version 2.0
-* (the "License"); you may not use this file except in compliance with
-* the License.  You may obtain a copy of the License at
-*
-*     http://www.apache.org/licenses/LICENSE-2.0
-*
-* Unless required by applicable law or agreed to in writing, software
-* distributed under the License is distributed on an "AS IS" BASIS,
-* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-* See the License for the specific language governing permissions and
-* limitations under the License.
-*/
-package org.apache.vxquery.types.processors;
-
-import org.apache.vxquery.context.StaticContext;
-import org.apache.vxquery.exceptions.ErrorCode;
-import org.apache.vxquery.exceptions.SystemException;
-import org.apache.vxquery.exceptions.SystemExceptionFactory;
-import org.apache.vxquery.types.XQType;
-import org.apache.vxquery.v0datamodel.XDMItem;
-import org.apache.vxquery.v0datamodel.XDMValue;
-import org.apache.vxquery.v0datamodel.atomic.AtomicValueFactory;
-
-public class StringCastProcessor implements CastProcessor {
-    public static final CastProcessor INSTANCE = new StringCastProcessor();
-
-    private StringCastProcessor() {
-    }
-
-    @Override
-    public XDMValue cast(AtomicValueFactory avf, XDMValue value, SystemExceptionFactory ieFactory,
-            StaticContext ctx) throws SystemException {
-        return avf.createString(((XDMItem) value).getStringValue());
-    }
-
-    @Override
-    public boolean castable(XDMValue value, StaticContext ctx) {
-        return true;
-    }
-
-    @Override
-    public Boolean castable(XQType type) {
-        return Boolean.TRUE;
-    }
-
-    @Override
-    public ErrorCode getCastFailureErrorCode(XQType type) {
-        return null;
-    }
-}
\ No newline at end of file
diff --git a/vxquery-core/src/main/java/org/apache/vxquery/types/processors/TimeCastProcessor.java b/vxquery-core/src/main/java/org/apache/vxquery/types/processors/TimeCastProcessor.java
deleted file mode 100644 (file)
index 2c15b07..0000000
+++ /dev/null
@@ -1,55 +0,0 @@
-/*
-* Licensed to the Apache Software Foundation (ASF) under one or more
-* contributor license agreements.  See the NOTICE file distributed with
-* this work for additional information regarding copyright ownership.
-* The ASF licenses this file to You under the Apache License, Version 2.0
-* (the "License"); you may not use this file except in compliance with
-* the License.  You may obtain a copy of the License at
-*
-*     http://www.apache.org/licenses/LICENSE-2.0
-*
-* Unless required by applicable law or agreed to in writing, software
-* distributed under the License is distributed on an "AS IS" BASIS,
-* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-* See the License for the specific language governing permissions and
-* limitations under the License.
-*/
-package org.apache.vxquery.types.processors;
-
-import org.apache.vxquery.context.StaticContext;
-import org.apache.vxquery.exceptions.ErrorCode;
-import org.apache.vxquery.exceptions.SystemException;
-import org.apache.vxquery.exceptions.SystemExceptionFactory;
-import org.apache.vxquery.types.XQType;
-import org.apache.vxquery.v0datamodel.XDMItem;
-import org.apache.vxquery.v0datamodel.XDMValue;
-import org.apache.vxquery.v0datamodel.atomic.AtomicValueFactory;
-
-public class TimeCastProcessor implements CastProcessor {
-    public static final CastProcessor INSTANCE = new TimeCastProcessor();
-
-    private TimeCastProcessor() {
-    }
-
-    @Override
-    public XDMValue cast(AtomicValueFactory avf, XDMValue value, SystemExceptionFactory ieFactory,
-            StaticContext ctx) throws SystemException {
-        CharSequence str = ((XDMItem) value).getStringValue();
-        return avf.createTime(str.toString());
-    }
-
-    @Override
-    public boolean castable(XDMValue value, StaticContext ctx) {
-        return false;
-    }
-
-    @Override
-    public Boolean castable(XQType type) {
-        return null;
-    }
-
-    @Override
-    public ErrorCode getCastFailureErrorCode(XQType type) {
-        return null;
-    }
-}
\ No newline at end of file
diff --git a/vxquery-core/src/main/java/org/apache/vxquery/types/processors/TokenCastProcessor.java b/vxquery-core/src/main/java/org/apache/vxquery/types/processors/TokenCastProcessor.java
deleted file mode 100644 (file)
index b846414..0000000
+++ /dev/null
@@ -1,53 +0,0 @@
-/*
-* Licensed to the Apache Software Foundation (ASF) under one or more
-* contributor license agreements.  See the NOTICE file distributed with
-* this work for additional information regarding copyright ownership.
-* The ASF licenses this file to You under the Apache License, Version 2.0
-* (the "License"); you may not use this file except in compliance with
-* the License.  You may obtain a copy of the License at
-*
-*     http://www.apache.org/licenses/LICENSE-2.0
-*
-* Unless required by applicable law or agreed to in writing, software
-* distributed under the License is distributed on an "AS IS" BASIS,
-* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-* See the License for the specific language governing permissions and
-* limitations under the License.
-*/
-package org.apache.vxquery.types.processors;
-
-import org.apache.vxquery.context.StaticContext;
-import org.apache.vxquery.exceptions.ErrorCode;
-import org.apache.vxquery.exceptions.SystemException;
-import org.apache.vxquery.exceptions.SystemExceptionFactory;
-import org.apache.vxquery.types.XQType;
-import org.apache.vxquery.v0datamodel.XDMValue;
-import org.apache.vxquery.v0datamodel.atomic.AtomicValueFactory;
-
-public class TokenCastProcessor implements CastProcessor {
-    public static final CastProcessor INSTANCE = new TokenCastProcessor();
-
-    private TokenCastProcessor() {
-    }
-
-    @Override
-    public XDMValue cast(AtomicValueFactory avf, XDMValue value, SystemExceptionFactory ieFactory,
-            StaticContext ctx) throws SystemException {
-        return null;
-    }
-
-    @Override
-    public boolean castable(XDMValue value, StaticContext ctx) {
-        return false;
-    }
-
-    @Override
-    public Boolean castable(XQType type) {
-        return null;
-    }
-
-    @Override
-    public ErrorCode getCastFailureErrorCode(XQType type) {
-        return null;
-    }
-}
\ No newline at end of file
diff --git a/vxquery-core/src/main/java/org/apache/vxquery/types/processors/UnsignedByteCastProcessor.java b/vxquery-core/src/main/java/org/apache/vxquery/types/processors/UnsignedByteCastProcessor.java
deleted file mode 100644 (file)
index 1e20cd7..0000000
+++ /dev/null
@@ -1,56 +0,0 @@
-/*
-* Licensed to the Apache Software Foundation (ASF) under one or more
-* contributor license agreements.  See the NOTICE file distributed with
-* this work for additional information regarding copyright ownership.
-* The ASF licenses this file to You under the Apache License, Version 2.0
-* (the "License"); you may not use this file except in compliance with
-* the License.  You may obtain a copy of the License at
-*
-*     http://www.apache.org/licenses/LICENSE-2.0
-*
-* Unless required by applicable law or agreed to in writing, software
-* distributed under the License is distributed on an "AS IS" BASIS,
-* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-* See the License for the specific language governing permissions and
-* limitations under the License.
-*/
-package org.apache.vxquery.types.processors;
-
-import org.apache.vxquery.context.StaticContext;
-import org.apache.vxquery.exceptions.ErrorCode;
-import org.apache.vxquery.exceptions.SystemException;
-import org.apache.vxquery.exceptions.SystemExceptionFactory;
-import org.apache.vxquery.types.BuiltinTypeRegistry;
-import org.apache.vxquery.types.XQType;
-import org.apache.vxquery.v0datamodel.XDMItem;
-import org.apache.vxquery.v0datamodel.XDMValue;
-import org.apache.vxquery.v0datamodel.atomic.AtomicValueFactory;
-
-public class UnsignedByteCastProcessor implements CastProcessor {
-    public static final CastProcessor INSTANCE = new UnsignedByteCastProcessor();
-
-    private UnsignedByteCastProcessor() {
-    }
-
-    @Override
-    public XDMValue cast(AtomicValueFactory avf, XDMValue value, SystemExceptionFactory ieFactory,
-            StaticContext ctx) throws SystemException {
-        CharSequence str = ((XDMItem) value).getStringValue();
-        return avf.createInt(str, BuiltinTypeRegistry.XS_UNSIGNED_BYTE);
-    }
-
-    @Override
-    public boolean castable(XDMValue value, StaticContext ctx) {
-        return false;
-    }
-
-    @Override
-    public Boolean castable(XQType type) {
-        return null;
-    }
-
-    @Override
-    public ErrorCode getCastFailureErrorCode(XQType type) {
-        return null;
-    }
-}
\ No newline at end of file
diff --git a/vxquery-core/src/main/java/org/apache/vxquery/types/processors/UnsignedIntCastProcessor.java b/vxquery-core/src/main/java/org/apache/vxquery/types/processors/UnsignedIntCastProcessor.java
deleted file mode 100644 (file)
index df0ec4a..0000000
+++ /dev/null
@@ -1,56 +0,0 @@
-/*
-* Licensed to the Apache Software Foundation (ASF) under one or more
-* contributor license agreements.  See the NOTICE file distributed with
-* this work for additional information regarding copyright ownership.
-* The ASF licenses this file to You under the Apache License, Version 2.0
-* (the "License"); you may not use this file except in compliance with
-* the License.  You may obtain a copy of the License at
-*
-*     http://www.apache.org/licenses/LICENSE-2.0
-*
-* Unless required by applicable law or agreed to in writing, software
-* distributed under the License is distributed on an "AS IS" BASIS,
-* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-* See the License for the specific language governing permissions and
-* limitations under the License.
-*/
-package org.apache.vxquery.types.processors;
-
-import org.apache.vxquery.context.StaticContext;
-import org.apache.vxquery.exceptions.ErrorCode;
-import org.apache.vxquery.exceptions.SystemException;
-import org.apache.vxquery.exceptions.SystemExceptionFactory;
-import org.apache.vxquery.types.BuiltinTypeRegistry;
-import org.apache.vxquery.types.XQType;
-import org.apache.vxquery.v0datamodel.XDMItem;
-import org.apache.vxquery.v0datamodel.XDMValue;
-import org.apache.vxquery.v0datamodel.atomic.AtomicValueFactory;
-
-public class UnsignedIntCastProcessor implements CastProcessor {
-    public static final CastProcessor INSTANCE = new UnsignedIntCastProcessor();
-
-    private UnsignedIntCastProcessor() {
-    }
-
-    @Override
-    public XDMValue cast(AtomicValueFactory avf, XDMValue value, SystemExceptionFactory ieFactory,
-            StaticContext ctx) throws SystemException {
-        CharSequence str = ((XDMItem) value).getStringValue();
-        return avf.createInt(str, BuiltinTypeRegistry.XS_UNSIGNED_INT);
-    }
-
-    @Override
-    public boolean castable(XDMValue value, StaticContext ctx) {
-        return false;
-    }
-
-    @Override
-    public Boolean castable(XQType type) {
-        return null;
-    }
-
-    @Override
-    public ErrorCode getCastFailureErrorCode(XQType type) {
-        return null;
-    }
-}
\ No newline at end of file
diff --git a/vxquery-core/src/main/java/org/apache/vxquery/types/processors/UnsignedLongCastProcessor.java b/vxquery-core/src/main/java/org/apache/vxquery/types/processors/UnsignedLongCastProcessor.java
deleted file mode 100644 (file)
index 3cad526..0000000
+++ /dev/null
@@ -1,56 +0,0 @@
-/*
-* Licensed to the Apache Software Foundation (ASF) under one or more
-* contributor license agreements.  See the NOTICE file distributed with
-* this work for additional information regarding copyright ownership.
-* The ASF licenses this file to You under the Apache License, Version 2.0
-* (the "License"); you may not use this file except in compliance with
-* the License.  You may obtain a copy of the License at
-*
-*     http://www.apache.org/licenses/LICENSE-2.0
-*
-* Unless required by applicable law or agreed to in writing, software
-* distributed under the License is distributed on an "AS IS" BASIS,
-* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-* See the License for the specific language governing permissions and
-* limitations under the License.
-*/
-package org.apache.vxquery.types.processors;
-
-import org.apache.vxquery.context.StaticContext;
-import org.apache.vxquery.exceptions.ErrorCode;
-import org.apache.vxquery.exceptions.SystemException;
-import org.apache.vxquery.exceptions.SystemExceptionFactory;
-import org.apache.vxquery.types.BuiltinTypeRegistry;
-import org.apache.vxquery.types.XQType;
-import org.apache.vxquery.v0datamodel.XDMItem;
-import org.apache.vxquery.v0datamodel.XDMValue;
-import org.apache.vxquery.v0datamodel.atomic.AtomicValueFactory;
-
-public class UnsignedLongCastProcessor implements CastProcessor {
-    public static final CastProcessor INSTANCE = new UnsignedLongCastProcessor();
-
-    private UnsignedLongCastProcessor() {
-    }
-
-    @Override
-    public XDMValue cast(AtomicValueFactory avf, XDMValue value, SystemExceptionFactory ieFactory,
-            StaticContext ctx) throws SystemException {
-        CharSequence str = ((XDMItem) value).getStringValue();
-        return avf.createInteger(str, BuiltinTypeRegistry.XS_UNSIGNED_LONG);
-    }
-
-    @Override
-    public boolean castable(XDMValue value, StaticContext ctx) {
-        return false;
-    }
-
-    @Override
-    public Boolean castable(XQType type) {
-        return null;
-    }
-
-    @Override
-    public ErrorCode getCastFailureErrorCode(XQType type) {
-        return null;
-    }
-}
\ No newline at end of file
diff --git a/vxquery-core/src/main/java/org/apache/vxquery/types/processors/UnsignedShortCastProcessor.java b/vxquery-core/src/main/java/org/apache/vxquery/types/processors/UnsignedShortCastProcessor.java
deleted file mode 100644 (file)
index 35eb3d1..0000000
+++ /dev/null
@@ -1,56 +0,0 @@
-/*
-* Licensed to the Apache Software Foundation (ASF) under one or more
-* contributor license agreements.  See the NOTICE file distributed with
-* this work for additional information regarding copyright ownership.
-* The ASF licenses this file to You under the Apache License, Version 2.0
-* (the "License"); you may not use this file except in compliance with
-* the License.  You may obtain a copy of the License at
-*
-*     http://www.apache.org/licenses/LICENSE-2.0
-*
-* Unless required by applicable law or agreed to in writing, software
-* distributed under the License is distributed on an "AS IS" BASIS,
-* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-* See the License for the specific language governing permissions and
-* limitations under the License.
-*/
-package org.apache.vxquery.types.processors;
-
-import org.apache.vxquery.context.StaticContext;
-import org.apache.vxquery.exceptions.ErrorCode;
-import org.apache.vxquery.exceptions.SystemException;
-import org.apache.vxquery.exceptions.SystemExceptionFactory;
-import org.apache.vxquery.types.BuiltinTypeRegistry;
-import org.apache.vxquery.types.XQType;
-import org.apache.vxquery.v0datamodel.XDMItem;
-import org.apache.vxquery.v0datamodel.XDMValue;
-import org.apache.vxquery.v0datamodel.atomic.AtomicValueFactory;
-
-public class UnsignedShortCastProcessor implements CastProcessor {
-    public static final CastProcessor INSTANCE = new UnsignedShortCastProcessor();
-
-    private UnsignedShortCastProcessor() {
-    }
-
-    @Override
-    public XDMValue cast(AtomicValueFactory avf, XDMValue value, SystemExceptionFactory ieFactory,
-            StaticContext ctx) throws SystemException {
-        CharSequence str = ((XDMItem) value).getStringValue();
-        return avf.createInt(str, BuiltinTypeRegistry.XS_UNSIGNED_SHORT);
-    }
-
-    @Override
-    public boolean castable(XDMValue value, StaticContext ctx) {
-        return false;
-    }
-
-    @Override
-    public Boolean castable(XQType type) {
-        return null;
-    }
-
-    @Override
-    public ErrorCode getCastFailureErrorCode(XQType type) {
-        return null;
-    }
-}
\ No newline at end of file
diff --git a/vxquery-core/src/main/java/org/apache/vxquery/types/processors/UntypedAtomicCastProcessor.java b/vxquery-core/src/main/java/org/apache/vxquery/types/processors/UntypedAtomicCastProcessor.java
deleted file mode 100644 (file)
index bb0b750..0000000
+++ /dev/null
@@ -1,54 +0,0 @@
-/*
-* Licensed to the Apache Software Foundation (ASF) under one or more
-* contributor license agreements.  See the NOTICE file distributed with
-* this work for additional information regarding copyright ownership.
-* The ASF licenses this file to You under the Apache License, Version 2.0
-* (the "License"); you may not use this file except in compliance with
-* the License.  You may obtain a copy of the License at
-*
-*     http://www.apache.org/licenses/LICENSE-2.0
-*
-* Unless required by applicable law or agreed to in writing, software
-* distributed under the License is distributed on an "AS IS" BASIS,
-* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-* See the License for the specific language governing permissions and
-* limitations under the License.
-*/
-package org.apache.vxquery.types.processors;
-
-import org.apache.vxquery.context.StaticContext;
-import org.apache.vxquery.exceptions.ErrorCode;
-import org.apache.vxquery.exceptions.SystemException;
-import org.apache.vxquery.exceptions.SystemExceptionFactory;
-import org.apache.vxquery.types.XQType;
-import org.apache.vxquery.v0datamodel.XDMItem;
-import org.apache.vxquery.v0datamodel.XDMValue;
-import org.apache.vxquery.v0datamodel.atomic.AtomicValueFactory;
-
-public class UntypedAtomicCastProcessor implements CastProcessor {
-    public static final CastProcessor INSTANCE = new UntypedAtomicCastProcessor();
-
-    private UntypedAtomicCastProcessor() {
-    }
-
-    @Override
-    public XDMValue cast(AtomicValueFactory avf, XDMValue value, SystemExceptionFactory ieFactory,
-            StaticContext ctx) throws SystemException {
-        return avf.createUntypedAtomic(((XDMItem) value).getStringValue());
-    }
-
-    @Override
-    public boolean castable(XDMValue value, StaticContext ctx) {
-        return true;
-    }
-
-    @Override
-    public Boolean castable(XQType type) {
-        return Boolean.TRUE;
-    }
-
-    @Override
-    public ErrorCode getCastFailureErrorCode(XQType type) {
-        return null;
-    }
-}
\ No newline at end of file
diff --git a/vxquery-core/src/main/java/org/apache/vxquery/types/processors/YearMonthDurationCastProcessor.java b/vxquery-core/src/main/java/org/apache/vxquery/types/processors/YearMonthDurationCastProcessor.java
deleted file mode 100644 (file)
index f713a76..0000000
+++ /dev/null
@@ -1,55 +0,0 @@
-/*
-* Licensed to the Apache Software Foundation (ASF) under one or more
-* contributor license agreements.  See the NOTICE file distributed with
-* this work for additional information regarding copyright ownership.
-* The ASF licenses this file to You under the Apache License, Version 2.0
-* (the "License"); you may not use this file except in compliance with
-* the License.  You may obtain a copy of the License at
-*
-*     http://www.apache.org/licenses/LICENSE-2.0
-*
-* Unless required by applicable law or agreed to in writing, software
-* distributed under the License is distributed on an "AS IS" BASIS,
-* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-* See the License for the specific language governing permissions and
-* limitations under the License.
-*/
-package org.apache.vxquery.types.processors;
-
-import org.apache.vxquery.context.StaticContext;
-import org.apache.vxquery.exceptions.ErrorCode;
-import org.apache.vxquery.exceptions.SystemException;
-import org.apache.vxquery.exceptions.SystemExceptionFactory;
-import org.apache.vxquery.types.XQType;
-import org.apache.vxquery.v0datamodel.XDMItem;
-import org.apache.vxquery.v0datamodel.XDMValue;
-import org.apache.vxquery.v0datamodel.atomic.AtomicValueFactory;
-
-public class YearMonthDurationCastProcessor implements CastProcessor {
-    public static final CastProcessor INSTANCE = new YearMonthDurationCastProcessor();
-
-    private YearMonthDurationCastProcessor() {
-    }
-
-    @Override
-    public XDMValue cast(AtomicValueFactory avf, XDMValue value, SystemExceptionFactory ieFactory,
-            StaticContext ctx) throws SystemException {
-        CharSequence str = ((XDMItem) value).getStringValue();
-        return avf.createDuration(str.toString());
-    }
-
-    @Override
-    public boolean castable(XDMValue value, StaticContext ctx) {
-        return false;
-    }
-
-    @Override
-    public Boolean castable(XQType type) {
-        return null;
-    }
-
-    @Override
-    public ErrorCode getCastFailureErrorCode(XQType type) {
-        return null;
-    }
-}
\ No newline at end of file
diff --git a/vxquery-core/src/main/java/org/apache/vxquery/v0datamodel/AxisKind.java b/vxquery-core/src/main/java/org/apache/vxquery/v0datamodel/AxisKind.java
deleted file mode 100644 (file)
index ee91a8b..0000000
+++ /dev/null
@@ -1,42 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements.  See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License.  You may obtain a copy of the License at
- *
- *     http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-package org.apache.vxquery.v0datamodel;
-
-public enum AxisKind {
-    ANCESTOR(false),
-    ANCESTOR_OR_SELF(false),
-    ATTRIBUTE(true),
-    CHILD(true),
-    DESCENDANT(true),
-    DESCENDANT_OR_SELF(true),
-    FOLLOWING(true),
-    FOLLOWING_SIBLING(true),
-    PARENT(false),
-    PRECEDING(false),
-    PRECEDING_SIBLING(false),
-    SELF(true);
-
-    private boolean fwdAxis;
-
-    private AxisKind(boolean fwdAxis) {
-        this.fwdAxis = fwdAxis;
-    }
-
-    public boolean isForwardAxis() {
-        return fwdAxis;
-    }
-}
\ No newline at end of file
diff --git a/vxquery-core/src/main/java/org/apache/vxquery/v0datamodel/DMOKind.java b/vxquery-core/src/main/java/org/apache/vxquery/v0datamodel/DMOKind.java
deleted file mode 100644 (file)
index 8462333..0000000
+++ /dev/null
@@ -1,54 +0,0 @@
-/*
-* Licensed to the Apache Software Foundation (ASF) under one or more
-* contributor license agreements.  See the NOTICE file distributed with
-* this work for additional information regarding copyright ownership.
-* The ASF licenses this file to You under the Apache License, Version 2.0
-* (the "License"); you may not use this file except in compliance with
-* the License.  You may obtain a copy of the License at
-*
-*     http://www.apache.org/licenses/LICENSE-2.0
-*
-* Unless required by applicable law or agreed to in writing, software
-* distributed under the License is distributed on an "AS IS" BASIS,
-* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-* See the License for the specific language governing permissions and
-* limitations under the License.
-*/
-package org.apache.vxquery.v0datamodel;
-
-import org.apache.vxquery.types.NodeKind;
-
-public enum DMOKind {
-    ATOMIC_VALUE(true, false, false, null), DOCUMENT_NODE(true, true, false, NodeKind.DOCUMENT), ELEMENT_NODE(true,
-            true, true, NodeKind.ELEMENT), ATTRIBUTE_NODE(true, true, true, NodeKind.ATTRIBUTE), TEXT_NODE(true, true,
-            false, NodeKind.TEXT), COMMENT_NODE(true, true, false, NodeKind.COMMENT), PI_NODE(true, true, true,
-            NodeKind.PI), SEQUENCE(false, false, false, null);
-
-    private final boolean isItem;
-    private final boolean isNode;
-    private final boolean hasNodeName;
-    private final NodeKind nodeKind;
-
-    private DMOKind(boolean isItem, boolean isNode, boolean hasNodeName, NodeKind nodeKind) {
-        this.isItem = isItem;
-        this.isNode = isNode;
-        this.hasNodeName = hasNodeName;
-        this.nodeKind = nodeKind;
-    }
-
-    public boolean isItem() {
-        return isItem;
-    }
-
-    public boolean isNode() {
-        return isNode;
-    }
-
-    public NodeKind getNodeKind() {
-        return nodeKind;
-    }
-
-    public boolean hasNodeName() {
-        return hasNodeName;
-    }
-}
\ No newline at end of file
diff --git a/vxquery-core/src/main/java/org/apache/vxquery/v0datamodel/DatamodelHelper.java b/vxquery-core/src/main/java/org/apache/vxquery/v0datamodel/DatamodelHelper.java
deleted file mode 100644 (file)
index 85a4afd..0000000
+++ /dev/null
@@ -1,86 +0,0 @@
-/*
-* Licensed to the Apache Software Foundation (ASF) under one or more
-* contributor license agreements.  See the NOTICE file distributed with
-* this work for additional information regarding copyright ownership.
-* The ASF licenses this file to You under the Apache License, Version 2.0
-* (the "License"); you may not use this file except in compliance with
-* the License.  You may obtain a copy of the License at
-*
-*     http://www.apache.org/licenses/LICENSE-2.0
-*
-* Unless required by applicable law or agreed to in writing, software
-* distributed under the License is distributed on an "AS IS" BASIS,
-* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-* See the License for the specific language governing permissions and
-* limitations under the License.
-*/
-package org.apache.vxquery.v0datamodel;
-
-import org.apache.vxquery.exceptions.SystemException;
-import org.apache.vxquery.v0runtime.base.CloseableIterator;
-
-public class DatamodelHelper {
-    public static CharSequence serialize(CloseableIterator iter) throws SystemException {
-        try {
-            XDMValue v;
-            StringBuilder sb;
-            v = (XDMValue) iter.next();
-            if (v == null) {
-                return "";
-            } else if (v.getDMOKind() == DMOKind.SEQUENCE) {
-                sb = new StringBuilder();
-            } else {
-                XDMItem vi = (XDMItem) v;
-                XDMValue v2 = (XDMValue) iter.next();
-                if (v2 == null) {
-                    return vi.getStringValue();
-                }
-                sb = new StringBuilder();
-                sb.append(vi.getStringValue());
-                sb.append(" ");
-                v = v2;
-            }
-            boolean first = true;
-            do {
-                if (!first) {
-                    sb.append(" ");
-                }
-                first = false;
-                switch (v.getDMOKind()) {
-                    case SEQUENCE:
-                        serialize(sb, (XDMSequence) v);
-                        break;
-
-                    default:
-                        sb.append(((XDMItem) v).getStringValue());
-                        break;
-                }
-                v = (XDMValue) iter.next();
-            } while (v != null);
-            return sb;
-        } finally {
-            iter.close();
-        }
-    }
-
-    public static void serialize(StringBuilder sb, XDMSequence v) throws SystemException {
-        serializeItemIterator(sb, v.createItemIterator());
-    }
-
-    public static void serializeItemIterator(StringBuilder sb, CloseableIterator iter) throws SystemException {
-        try {
-            XDMItem v;
-            boolean first = true;
-            while ((v = (XDMItem) iter.next()) != null) {
-                if (!first) {
-                    sb.append(" ");
-                }
-                first = false;
-                sb.append(" ");
-                sb.append(v.getStringValue());
-            }
-        } finally {
-            iter.close();
-        }
-    }
-}
\ No newline at end of file
diff --git a/vxquery-core/src/main/java/org/apache/vxquery/v0datamodel/DatamodelStaticInterface.java b/vxquery-core/src/main/java/org/apache/vxquery/v0datamodel/DatamodelStaticInterface.java
deleted file mode 100644 (file)
index 1793a79..0000000
+++ /dev/null
@@ -1,25 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements.  See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License.  You may obtain a copy of the License at
- *
- *     http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-package org.apache.vxquery.v0datamodel;
-
-import org.apache.vxquery.v0datamodel.atomic.AtomicValueFactory;
-
-public interface DatamodelStaticInterface {
-    public AtomicValueFactory getAtomicValueFactory();
-
-    public NodeFactory getNodeFactory();
-}
\ No newline at end of file
diff --git a/vxquery-core/src/main/java/org/apache/vxquery/v0datamodel/EagerlyMaterializedXDMSequenceImpl.java b/vxquery-core/src/main/java/org/apache/vxquery/v0datamodel/EagerlyMaterializedXDMSequenceImpl.java