Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjmoller2011-03-21 22:09:13 +0000
committerjmoller2011-03-21 22:09:13 +0000
commit33a882f4a1231e91b79866f2193b93107e1b709e (patch)
treef20d086bcd19e27773287ef80192cfa147fbac02 /bundles
parentc56c064d373fe08a9ee0ca097a07a6a1d4faf14a (diff)
downloadwebtools.sourceediting.xpath-33a882f4a1231e91b79866f2193b93107e1b709e.tar.gz
webtools.sourceediting.xpath-33a882f4a1231e91b79866f2193b93107e1b709e.tar.xz
webtools.sourceediting.xpath-33a882f4a1231e91b79866f2193b93107e1b709e.zip
Bug 339771: Split WTP-specific schema type provider into separate plugin (plus test plugin)
Diffstat (limited to 'bundles')
-rw-r--r--bundles/org.eclipse.wst.xml.xpath2.processor/.classpath4
-rw-r--r--bundles/org.eclipse.wst.xml.xpath2.processor/.cvsignore1
-rw-r--r--bundles/org.eclipse.wst.xml.xpath2.processor/.settings/org.eclipse.jdt.core.prefs68
-rw-r--r--bundles/org.eclipse.wst.xml.xpath2.processor/build.properties3
-rw-r--r--bundles/org.eclipse.wst.xml.xpath2.processor/pom.xml12
-rw-r--r--bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/api/Function.java1
-rw-r--r--bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/api/XPath2PatternSet.java1
-rw-r--r--bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/DefaultDynamicContext.java9
-rw-r--r--bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/DynamicContext.java6
-rw-r--r--bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/DynamicError.java5
-rw-r--r--bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/StaticContext.java14
-rw-r--r--bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/XPathException.java2
-rw-r--r--bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/XercesLoader.java7
-rw-r--r--bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/ast/XPath.java4
-rw-r--r--bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/function/XSCtrLibrary.java12
-rw-r--r--bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/AncestorAxis.java4
-rw-r--r--bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/AttributeAxis.java4
-rw-r--r--bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/DefaultRSFactory.java6
-rw-r--r--bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/DefaultResultSequence.java13
-rw-r--r--bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/DefaultStaticContext.java6
-rw-r--r--bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/DescendantAxis.java4
-rw-r--r--bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/RangeResultSequence.java13
-rw-r--r--bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/ast/AddExpr.java4
-rw-r--r--bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/ast/AndExpr.java4
-rw-r--r--bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/ast/AnyKindTest.java9
-rw-r--r--bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/ast/AttributeTest.java7
-rw-r--r--bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/ast/AxisStep.java4
-rw-r--r--bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/ast/CastExpr.java4
-rw-r--r--bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/ast/CastableExpr.java4
-rw-r--r--bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/ast/CmpExpr.java4
-rw-r--r--bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/ast/CntxItemExpr.java4
-rw-r--r--bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/ast/CommentTest.java8
-rw-r--r--bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/ast/DecimalLiteral.java4
-rw-r--r--bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/ast/DivExpr.java4
-rw-r--r--bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/ast/DocumentTest.java8
-rw-r--r--bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/ast/DoubleLiteral.java4
-rw-r--r--bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/ast/ElementTest.java7
-rw-r--r--bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/ast/ExceptExpr.java4
-rw-r--r--bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/ast/FilterExpr.java4
-rw-r--r--bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/ast/ForExpr.java4
-rw-r--r--bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/ast/ForwardStep.java4
-rw-r--r--bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/ast/FunctionCall.java4
-rw-r--r--bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/ast/IDivExpr.java4
-rw-r--r--bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/ast/IfExpr.java4
-rw-r--r--bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/ast/InstOfExpr.java4
-rw-r--r--bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/ast/IntegerLiteral.java4
-rw-r--r--bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/ast/IntersectExpr.java4
-rw-r--r--bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/ast/ItemType.java4
-rw-r--r--bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/ast/MinusExpr.java4
-rw-r--r--bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/ast/ModExpr.java4
-rw-r--r--bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/ast/MulExpr.java4
-rw-r--r--bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/ast/NameTest.java4
-rw-r--r--bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/ast/OrExpr.java4
-rw-r--r--bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/ast/PITest.java8
-rw-r--r--bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/ast/ParExpr.java4
-rw-r--r--bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/ast/PipeExpr.java4
-rw-r--r--bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/ast/PlusExpr.java4
-rw-r--r--bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/ast/QuantifiedExpr.java4
-rw-r--r--bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/ast/RangeExpr.java4
-rw-r--r--bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/ast/ReverseStep.java4
-rw-r--r--bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/ast/SchemaAttrTest.java8
-rw-r--r--bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/ast/SchemaElemTest.java7
-rw-r--r--bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/ast/SequenceType.java2
-rw-r--r--bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/ast/SingleType.java4
-rw-r--r--bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/ast/StringLiteral.java4
-rw-r--r--bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/ast/SubExpr.java4
-rw-r--r--bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/ast/TextTest.java8
-rw-r--r--bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/ast/TreatAsExpr.java4
-rw-r--r--bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/ast/UnionExpr.java4
-rw-r--r--bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/ast/VarRef.java4
-rw-r--r--bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/ast/XPathExpr.java4
-rw-r--r--bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/AbstractRegExFunction.java7
-rw-r--r--bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/AbstractURIFunction.java4
-rw-r--r--bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/Constructor.java4
-rw-r--r--bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/FnAbs.java6
-rw-r--r--bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/FnAdjustDateTimeToTimeZone.java4
-rw-r--r--bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/FnAdjustDateToTimeZone.java4
-rw-r--r--bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/FnAdjustTimeToTimeZone.java4
-rw-r--r--bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/FnAvg.java4
-rw-r--r--bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/FnBaseUri.java4
-rw-r--r--bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/FnBoolean.java4
-rw-r--r--bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/FnCeiling.java4
-rw-r--r--bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/FnCodepointEqual.java4
-rw-r--r--bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/FnCodepointsToString.java10
-rw-r--r--bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/FnCollection.java29
-rw-r--r--bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/FnCompare.java4
-rw-r--r--bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/FnConcat.java4
-rw-r--r--bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/FnContains.java4
-rw-r--r--bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/FnCount.java4
-rw-r--r--bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/FnCurrentDate.java4
-rw-r--r--bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/FnCurrentDateTime.java4
-rw-r--r--bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/FnCurrentTime.java4
-rw-r--r--bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/FnData.java4
-rw-r--r--bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/FnDateTime.java6
-rw-r--r--bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/FnDayFromDate.java4
-rw-r--r--bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/FnDayFromDateTime.java4
-rw-r--r--bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/FnDaysFromDuration.java4
-rw-r--r--bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/FnDeepEqual.java4
-rw-r--r--bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/FnDefaultCollation.java4
-rw-r--r--bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/FnDoc.java4
-rw-r--r--bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/FnDocumentUri.java4
-rw-r--r--bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/FnEmpty.java4
-rw-r--r--bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/FnEncodeForURI.java4
-rw-r--r--bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/FnEndsWith.java4
-rw-r--r--bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/FnError.java4
-rw-r--r--bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/FnEscapeHTMLUri.java4
-rw-r--r--bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/FnExactlyOne.java4
-rw-r--r--bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/FnExists.java4
-rw-r--r--bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/FnFalse.java4
-rw-r--r--bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/FnFloor.java4
-rw-r--r--bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/FnHoursFromDateTime.java4
-rw-r--r--bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/FnHoursFromDuration.java4
-rw-r--r--bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/FnHoursFromTime.java4
-rw-r--r--bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/FnID.java4
-rw-r--r--bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/FnIDREF.java4
-rw-r--r--bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/FnImplicitTimezone.java4
-rw-r--r--bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/FnInScopePrefixes.java4
-rw-r--r--bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/FnIndexOf.java4
-rw-r--r--bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/FnInsertBefore.java4
-rw-r--r--bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/FnIriToURI.java4
-rw-r--r--bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/FnLang.java4
-rw-r--r--bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/FnLast.java4
-rw-r--r--bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/FnLocalName.java4
-rw-r--r--bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/FnLocalNameFromQName.java4
-rw-r--r--bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/FnLowerCase.java4
-rw-r--r--bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/FnMatches.java4
-rw-r--r--bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/FnMax.java4
-rw-r--r--bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/FnMin.java4
-rw-r--r--bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/FnMinutesFromDateTime.java4
-rw-r--r--bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/FnMinutesFromDuration.java4
-rw-r--r--bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/FnMinutesFromTime.java4
-rw-r--r--bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/FnMonthFromDate.java4
-rw-r--r--bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/FnMonthFromDateTime.java4
-rw-r--r--bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/FnMonthsFromDuration.java4
-rw-r--r--bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/FnName.java4
-rw-r--r--bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/FnNamespaceUri.java4
-rw-r--r--bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/FnNamespaceUriFromQName.java4
-rw-r--r--bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/FnNilled.java4
-rw-r--r--bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/FnNodeName.java4
-rw-r--r--bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/FnNormalizeSpace.java4
-rw-r--r--bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/FnNormalizeUnicode.java22
-rw-r--r--bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/FnNot.java4
-rw-r--r--bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/FnNumber.java4
-rw-r--r--bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/FnOneOrMore.java4
-rw-r--r--bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/FnPosition.java4
-rw-r--r--bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/FnPrefixFromQName.java4
-rw-r--r--bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/FnQName.java4
-rw-r--r--bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/FnRemove.java4
-rw-r--r--bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/FnReplace.java4
-rw-r--r--bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/FnResolveQName.java4
-rw-r--r--bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/FnResolveURI.java4
-rw-r--r--bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/FnReverse.java4
-rw-r--r--bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/FnRoot.java4
-rw-r--r--bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/FnRound.java4
-rw-r--r--bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/FnRoundHalfToEven.java4
-rw-r--r--bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/FnSecondsFromDateTime.java6
-rw-r--r--bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/FnSecondsFromDuration.java6
-rw-r--r--bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/FnSecondsFromTime.java6
-rw-r--r--bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/FnStartsWith.java4
-rw-r--r--bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/FnStaticBaseUri.java4
-rw-r--r--bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/FnString.java4
-rw-r--r--bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/FnStringJoin.java4
-rw-r--r--bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/FnStringLength.java8
-rw-r--r--bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/FnStringToCodepoints.java4
-rw-r--r--bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/FnSubstring.java10
-rw-r--r--bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/FnSubstringAfter.java4
-rw-r--r--bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/FnSubstringBefore.java4
-rw-r--r--bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/FnSum.java4
-rw-r--r--bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/FnTimezoneFromDate.java4
-rw-r--r--bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/FnTimezoneFromDateTime.java4
-rw-r--r--bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/FnTimezoneFromTime.java4
-rw-r--r--bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/FnTokenize.java15
-rw-r--r--bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/FnTrace.java4
-rw-r--r--bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/FnTranslate.java24
-rw-r--r--bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/FnTrue.java4
-rw-r--r--bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/FnUnordered.java4
-rw-r--r--bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/FnUpperCase.java4
-rw-r--r--bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/FnYearFromDate.java4
-rw-r--r--bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/FnYearFromDateTime.java4
-rw-r--r--bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/FnYearsFromDuration.java4
-rw-r--r--bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/FnZeroOrOne.java4
-rw-r--r--bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/FsConvertOperand.java4
-rw-r--r--bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/FsDiv.java4
-rw-r--r--bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/FsEq.java4
-rw-r--r--bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/FsGe.java4
-rw-r--r--bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/FsGt.java4
-rw-r--r--bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/FsIDiv.java4
-rw-r--r--bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/FsLe.java4
-rw-r--r--bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/FsLt.java4
-rw-r--r--bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/FsMinus.java4
-rw-r--r--bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/FsMod.java4
-rw-r--r--bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/FsNe.java4
-rw-r--r--bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/FsPlus.java4
-rw-r--r--bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/FsTimes.java4
-rw-r--r--bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/OpExcept.java4
-rw-r--r--bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/OpIntersect.java4
-rw-r--r--bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/OpTo.java4
-rw-r--r--bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/OpUnion.java4
-rw-r--r--bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/types/AnyType.java9
-rw-r--r--bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/types/AttrType.java15
-rw-r--r--bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/types/CommentType.java18
-rw-r--r--bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/types/DocType.java16
-rw-r--r--bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/types/ElementType.java13
-rw-r--r--bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/types/NodeType.java10
-rw-r--r--bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/types/PIType.java15
-rw-r--r--bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/types/QName.java26
-rw-r--r--bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/types/TextType.java15
-rw-r--r--bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/types/XPathDecimalFormat.java21
-rw-r--r--bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/types/XSAnyURI.java12
-rw-r--r--bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/types/XSBase64Binary.java11
-rw-r--r--bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/types/XSBoolean.java13
-rw-r--r--bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/types/XSByte.java10
-rw-r--r--bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/types/XSDate.java13
-rw-r--r--bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/types/XSDateTime.java14
-rw-r--r--bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/types/XSDayTimeDuration.java35
-rw-r--r--bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/types/XSDecimal.java7
-rw-r--r--bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/types/XSDouble.java53
-rw-r--r--bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/types/XSDuration.java17
-rw-r--r--bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/types/XSEntity.java12
-rw-r--r--bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/types/XSFloat.java51
-rw-r--r--bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/types/XSGDay.java17
-rw-r--r--bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/types/XSGMonth.java15
-rw-r--r--bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/types/XSGMonthDay.java15
-rw-r--r--bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/types/XSGYear.java14
-rw-r--r--bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/types/XSGYearMonth.java15
-rw-r--r--bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/types/XSHexBinary.java11
-rw-r--r--bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/types/XSID.java10
-rw-r--r--bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/types/XSIDREF.java9
-rw-r--r--bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/types/XSInt.java11
-rw-r--r--bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/types/XSInteger.java27
-rw-r--r--bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/types/XSLong.java10
-rw-r--r--bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/types/XSNCName.java11
-rw-r--r--bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/types/XSNMTOKEN.java10
-rw-r--r--bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/types/XSName.java9
-rw-r--r--bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/types/XSNegativeInteger.java9
-rw-r--r--bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/types/XSNonNegativeInteger.java10
-rw-r--r--bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/types/XSNonPositiveInteger.java10
-rw-r--r--bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/types/XSNormalizedString.java9
-rw-r--r--bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/types/XSNotation.java11
-rw-r--r--bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/types/XSPositiveInteger.java10
-rw-r--r--bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/types/XSShort.java9
-rw-r--r--bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/types/XSString.java12
-rw-r--r--bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/types/XSTime.java14
-rw-r--r--bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/types/XSToken.java9
-rw-r--r--bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/types/XSUnsignedByte.java9
-rw-r--r--bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/types/XSUnsignedInt.java9
-rw-r--r--bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/types/XSUnsignedLong.java10
-rw-r--r--bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/types/XSUnsignedShort.java10
-rw-r--r--bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/types/XSUntypedAtomic.java14
-rw-r--r--bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/types/XSYearMonthDuration.java20
-rw-r--r--bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/types/builtin/AtomicTypeDefinition.java10
-rw-r--r--bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/types/builtin/BuiltinAtomicTypeDefinition.java14
-rw-r--r--bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/types/builtin/BuiltinListTypeDefinition.java74
-rw-r--r--bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/types/builtin/BuiltinTypeDefinition.java110
-rw-r--r--bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/types/builtin/BuiltinTypeLibrary.java222
-rw-r--r--bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/types/xerces/ComplexXercesTypeDefinition.java (renamed from bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/types/ComplexXercesTypeDefinition.java)3
-rw-r--r--bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/types/xerces/SimpleXercesType.java (renamed from bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/types/SimpleXercesType.java)2
-rw-r--r--bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/types/xerces/SimpleXercesTypeDefinition.java (renamed from bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/types/SimpleXercesTypeDefinition.java)9
-rw-r--r--bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/types/xerces/XercesTypeDefinition.java13
-rw-r--r--bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/utils/ComparableTypePromoter.java12
-rw-r--r--bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/utils/LiteralUtils.java5
-rw-r--r--bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/utils/NumericTypePromoter.java12
-rw-r--r--bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/utils/ScalarTypePromoter.java12
-rw-r--r--bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/utils/StringCodePointIterator.java20
-rw-r--r--bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/utils/TypePromoter.java24
-rw-r--r--bundles/org.eclipse.wst.xml.xpath2.wtptypes/src/org/eclipse/wst/xml/xpath2/wtptypes/XsdDOMTypeProvider.java4
266 files changed, 1411 insertions, 938 deletions
diff --git a/bundles/org.eclipse.wst.xml.xpath2.processor/.classpath b/bundles/org.eclipse.wst.xml.xpath2.processor/.classpath
index fc8e603..492d1c1 100644
--- a/bundles/org.eclipse.wst.xml.xpath2.processor/.classpath
+++ b/bundles/org.eclipse.wst.xml.xpath2.processor/.classpath
@@ -1,11 +1,11 @@
<?xml version="1.0" encoding="UTF-8"?>
<classpath>
- <classpathentry excluding="**/*.lex|**/*.cup" kind="src" path="src"/>
- <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
+ <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/J2SE-1.5"/>
<classpathentry kind="con" path="org.eclipse.pde.core.requiredPlugins">
<accessrules>
<accessrule kind="accessible" pattern="org/eclipse/wst/xml/xpath2/**"/>
</accessrules>
</classpathentry>
+ <classpathentry excluding="**/*.lex|**/*.cup" kind="src" path="src"/>
<classpathentry kind="output" path="bin"/>
</classpath>
diff --git a/bundles/org.eclipse.wst.xml.xpath2.processor/.cvsignore b/bundles/org.eclipse.wst.xml.xpath2.processor/.cvsignore
index ccece86..ac075be 100644
--- a/bundles/org.eclipse.wst.xml.xpath2.processor/.cvsignore
+++ b/bundles/org.eclipse.wst.xml.xpath2.processor/.cvsignore
@@ -2,3 +2,4 @@ lib
.externalToolBuilders
.byecycle
JavaCUP-dump.txt
+target
diff --git a/bundles/org.eclipse.wst.xml.xpath2.processor/.settings/org.eclipse.jdt.core.prefs b/bundles/org.eclipse.wst.xml.xpath2.processor/.settings/org.eclipse.jdt.core.prefs
index 48a68cd..bd21bd6 100644
--- a/bundles/org.eclipse.wst.xml.xpath2.processor/.settings/org.eclipse.jdt.core.prefs
+++ b/bundles/org.eclipse.wst.xml.xpath2.processor/.settings/org.eclipse.jdt.core.prefs
@@ -1,74 +1,12 @@
-#Tue Feb 10 05:34:51 GMT 2009
+#Sat Mar 12 09:20:38 CET 2011
eclipse.preferences.version=1
org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled
-org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.5
+org.eclipse.jdt.core.compiler.codegen.targetPlatform=jsr14
org.eclipse.jdt.core.compiler.codegen.unusedLocal=preserve
-org.eclipse.jdt.core.compiler.compliance=1.5
+org.eclipse.jdt.core.compiler.compliance=1.4
org.eclipse.jdt.core.compiler.debug.lineNumber=generate
org.eclipse.jdt.core.compiler.debug.localVariable=generate
org.eclipse.jdt.core.compiler.debug.sourceFile=generate
-org.eclipse.jdt.core.compiler.problem.annotationSuperInterface=warning
org.eclipse.jdt.core.compiler.problem.assertIdentifier=error
-org.eclipse.jdt.core.compiler.problem.autoboxing=ignore
-org.eclipse.jdt.core.compiler.problem.comparingIdentical=warning
-org.eclipse.jdt.core.compiler.problem.deadCode=warning
-org.eclipse.jdt.core.compiler.problem.deprecation=warning
-org.eclipse.jdt.core.compiler.problem.deprecationInDeprecatedCode=disabled
-org.eclipse.jdt.core.compiler.problem.deprecationWhenOverridingDeprecatedMethod=disabled
-org.eclipse.jdt.core.compiler.problem.discouragedReference=warning
-org.eclipse.jdt.core.compiler.problem.emptyStatement=ignore
org.eclipse.jdt.core.compiler.problem.enumIdentifier=error
-org.eclipse.jdt.core.compiler.problem.fallthroughCase=ignore
-org.eclipse.jdt.core.compiler.problem.fatalOptionalError=enabled
-org.eclipse.jdt.core.compiler.problem.fieldHiding=ignore
-org.eclipse.jdt.core.compiler.problem.finalParameterBound=warning
-org.eclipse.jdt.core.compiler.problem.finallyBlockNotCompletingNormally=warning
-org.eclipse.jdt.core.compiler.problem.forbiddenReference=error
-org.eclipse.jdt.core.compiler.problem.hiddenCatchBlock=warning
-org.eclipse.jdt.core.compiler.problem.incompatibleNonInheritedInterfaceMethod=warning
-org.eclipse.jdt.core.compiler.problem.incompleteEnumSwitch=ignore
-org.eclipse.jdt.core.compiler.problem.indirectStaticAccess=ignore
-org.eclipse.jdt.core.compiler.problem.localVariableHiding=ignore
-org.eclipse.jdt.core.compiler.problem.methodWithConstructorName=warning
-org.eclipse.jdt.core.compiler.problem.missingDeprecatedAnnotation=ignore
-org.eclipse.jdt.core.compiler.problem.missingHashCodeMethod=ignore
-org.eclipse.jdt.core.compiler.problem.missingOverrideAnnotation=ignore
-org.eclipse.jdt.core.compiler.problem.missingSerialVersion=warning
-org.eclipse.jdt.core.compiler.problem.missingSynchronizedOnInheritedMethod=ignore
-org.eclipse.jdt.core.compiler.problem.noEffectAssignment=warning
-org.eclipse.jdt.core.compiler.problem.noImplicitStringConversion=warning
-org.eclipse.jdt.core.compiler.problem.nonExternalizedStringLiteral=ignore
-org.eclipse.jdt.core.compiler.problem.nullReference=warning
-org.eclipse.jdt.core.compiler.problem.overridingPackageDefaultMethod=warning
-org.eclipse.jdt.core.compiler.problem.parameterAssignment=ignore
-org.eclipse.jdt.core.compiler.problem.possibleAccidentalBooleanAssignment=ignore
-org.eclipse.jdt.core.compiler.problem.potentialNullReference=ignore
-org.eclipse.jdt.core.compiler.problem.rawTypeReference=ignore
-org.eclipse.jdt.core.compiler.problem.redundantNullCheck=ignore
-org.eclipse.jdt.core.compiler.problem.redundantSuperinterface=ignore
-org.eclipse.jdt.core.compiler.problem.specialParameterHidingField=disabled
-org.eclipse.jdt.core.compiler.problem.staticAccessReceiver=warning
-org.eclipse.jdt.core.compiler.problem.suppressWarnings=enabled
-org.eclipse.jdt.core.compiler.problem.syntheticAccessEmulation=ignore
-org.eclipse.jdt.core.compiler.problem.typeParameterHiding=warning
-org.eclipse.jdt.core.compiler.problem.uncheckedTypeOperation=ignore
-org.eclipse.jdt.core.compiler.problem.undocumentedEmptyBlock=ignore
-org.eclipse.jdt.core.compiler.problem.unhandledWarningToken=warning
-org.eclipse.jdt.core.compiler.problem.unnecessaryElse=ignore
-org.eclipse.jdt.core.compiler.problem.unnecessaryTypeCheck=ignore
-org.eclipse.jdt.core.compiler.problem.unqualifiedFieldAccess=ignore
-org.eclipse.jdt.core.compiler.problem.unusedDeclaredThrownException=ignore
-org.eclipse.jdt.core.compiler.problem.unusedDeclaredThrownExceptionExemptExceptionAndThrowable=enabled
-org.eclipse.jdt.core.compiler.problem.unusedDeclaredThrownExceptionIncludeDocCommentReference=enabled
-org.eclipse.jdt.core.compiler.problem.unusedDeclaredThrownExceptionWhenOverriding=disabled
-org.eclipse.jdt.core.compiler.problem.unusedImport=warning
-org.eclipse.jdt.core.compiler.problem.unusedLabel=warning
-org.eclipse.jdt.core.compiler.problem.unusedLocal=warning
-org.eclipse.jdt.core.compiler.problem.unusedParameter=ignore
-org.eclipse.jdt.core.compiler.problem.unusedParameterIncludeDocCommentReference=enabled
-org.eclipse.jdt.core.compiler.problem.unusedParameterWhenImplementingAbstract=disabled
-org.eclipse.jdt.core.compiler.problem.unusedParameterWhenOverridingConcrete=disabled
-org.eclipse.jdt.core.compiler.problem.unusedPrivateMember=warning
-org.eclipse.jdt.core.compiler.problem.unusedWarningToken=warning
-org.eclipse.jdt.core.compiler.problem.varargsArgumentNeedCast=warning
org.eclipse.jdt.core.compiler.source=1.5
diff --git a/bundles/org.eclipse.wst.xml.xpath2.processor/build.properties b/bundles/org.eclipse.wst.xml.xpath2.processor/build.properties
index 4dc4023..328c30f 100644
--- a/bundles/org.eclipse.wst.xml.xpath2.processor/build.properties
+++ b/bundles/org.eclipse.wst.xml.xpath2.processor/build.properties
@@ -7,3 +7,6 @@ source.. = src/
output.. = bin/
src.includes = about.html,\
grammars/
+javacSource = 1.5
+javacTarget = jsr14
+javacErrors.. = -enumIdentifier
diff --git a/bundles/org.eclipse.wst.xml.xpath2.processor/pom.xml b/bundles/org.eclipse.wst.xml.xpath2.processor/pom.xml
index bc68001..dcf541a 100644
--- a/bundles/org.eclipse.wst.xml.xpath2.processor/pom.xml
+++ b/bundles/org.eclipse.wst.xml.xpath2.processor/pom.xml
@@ -27,6 +27,18 @@
</plugins>
</pluginManagement>
<plugins>
+ <plugin>
+ <groupId>org.sonatype.tycho</groupId>
+ <artifactId>maven-osgi-compiler-plugin</artifactId>
+ <version>${tycho-version}</version>
+ <configuration>
+ <compilerId>jdt</compilerId>
+ <usePdeSourceRoots>true</usePdeSourceRoots>
+ <source>1.5</source>
+ <target>jsr14</target>
+ </configuration>
+ </plugin>
+
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-javadoc-plugin</artifactId>
diff --git a/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/api/Function.java b/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/api/Function.java
index ec57127..c4f2593 100644
--- a/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/api/Function.java
+++ b/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/api/Function.java
@@ -17,6 +17,7 @@ import org.eclipse.wst.xml.xpath2.api.typesystem.TypeDefinition;
/**
* Support for functions.
+ * @since 2.0
*/
public interface Function {
diff --git a/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/api/XPath2PatternSet.java b/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/api/XPath2PatternSet.java
index aa7b4f1..018fceb 100644
--- a/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/api/XPath2PatternSet.java
+++ b/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/api/XPath2PatternSet.java
@@ -15,6 +15,7 @@ import org.w3c.dom.Node;
/**
* @noimplement This interface is not intended to be implemented by clients.
+ * @since 2.0
*/
public interface XPath2PatternSet {
diff --git a/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/DefaultDynamicContext.java b/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/DefaultDynamicContext.java
index 9b72621..30c58aa 100644
--- a/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/DefaultDynamicContext.java
+++ b/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/DefaultDynamicContext.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2005, 2009 Andrea Bittau, University College London, and others
+ * Copyright (c) 2005, 2010 Andrea Bittau, University College London, and others
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
@@ -16,6 +16,7 @@
* Jesper Moller- bug 280555 - Add pluggable collation support
* Mukul Gandhi - bug 325262 - providing ability to store an XPath2 sequence into
* an user-defined variable.
+ * Mukul Gandhi - bug 280798 - PsychoPath support for JDK 1.4
*******************************************************************************/
package org.eclipse.wst.xml.xpath2.processor;
@@ -196,7 +197,6 @@ public class DefaultDynamicContext extends DefaultStaticContext implements
* Function library to add.
*
*/
- @Override
public void add_function_library(FunctionLibrary fl) {
super.add_function_library(fl);
fl.set_dynamic_context(this);
@@ -268,7 +268,6 @@ public class DefaultDynamicContext extends DefaultStaticContext implements
* @param val
* Variable value.
*/
- @Override
public void set_variable(QName var, AnyType val) {
super.set_variable(var, val);
}
@@ -310,7 +309,7 @@ public class DefaultDynamicContext extends DefaultStaticContext implements
* @since 1.1
*
*/
- public Comparator<Object> get_collation(String uri) {
+ public Comparator get_collation(String uri) {
if (CODEPOINT_COLLATION.equals(uri)) return CODEPOINT_COMPARATOR;
return _collation_provider != null ? _collation_provider.get_collation(uri) : null;
@@ -330,7 +329,6 @@ public class DefaultDynamicContext extends DefaultStaticContext implements
* Use focus().position() to retrieve the value.
* @deprecated This will be removed in a future version use focus().position().
*/
- @Deprecated
public int node_position(Node node) {
// unused parameter!
return _focus.position();
@@ -339,7 +337,6 @@ public class DefaultDynamicContext extends DefaultStaticContext implements
/**
* @since 2.0
*/
- @Override
public TypeModel getTypeModel(Node node) {
return super.getTypeModel(node);
}
diff --git a/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/DynamicContext.java b/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/DynamicContext.java
index 20ab937..e30cbbe 100644
--- a/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/DynamicContext.java
+++ b/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/DynamicContext.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2005, 2009 Andrea Bittau, University College London, and others
+ * Copyright (c) 2005, 2010 Andrea Bittau, University College London, and others
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
@@ -15,6 +15,7 @@
* Jesper Moller- bug 280555 - Add pluggable collation support
* Mukul Gandhi - bug 325262 - providing ability to store an XPath2 sequence into
* an user-defined variable.
+ * Mukul Gandhi - bug 280798 - PsychoPath support for JDK 1.4
*******************************************************************************/
package org.eclipse.wst.xml.xpath2.processor;
@@ -170,7 +171,7 @@ public interface DynamicContext extends StaticContext {
* @return A Jaa collator, or null, if no such Collator exists
* @since 1.1
*/
- public Comparator<Object> get_collation(String uri);
+ public Comparator get_collation(String uri);
/**
* Returns the current default collator
@@ -184,7 +185,6 @@ public interface DynamicContext extends StaticContext {
/**
* @deprecated
*/
- @Deprecated
public int node_position(Node node);
}
diff --git a/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/DynamicError.java b/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/DynamicError.java
index d704cae..eaebfca 100644
--- a/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/DynamicError.java
+++ b/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/DynamicError.java
@@ -15,6 +15,7 @@
* Jesper Steen Moller - bug 280555 - Add pluggable collation support
* Jesper Steen Moller - bug 262765 - Add FORG0006
* Jesper Steen Moller - bug 290337 - Revisit use of ICU
+ * Mukul Gandhi - bug 280798 - PsychoPath support for JDK 1.4
*******************************************************************************/
package org.eclipse.wst.xml.xpath2.processor;
@@ -108,9 +109,9 @@ public class DynamicError extends XPathException {
* @return the DynamicError.
* @since 1.1
*/
- public static DynamicError argument_type_error(Class<?> type) {
+ public static DynamicError argument_type_error(Class type) {
return new DynamicError("FORG0006", type != null ?
- "Invalid argument type :" + type.getSimpleName() : "Invalid argument type");
+ "Invalid argument type :" + type.getName() : "Invalid argument type");
}
/**
diff --git a/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/StaticContext.java b/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/StaticContext.java
index dd4825f..6e11fca 100644
--- a/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/StaticContext.java
+++ b/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/StaticContext.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2005, 2009 Andrea Bittau, University College London, and others
+ * Copyright (c) 2005, 2010 Andrea Bittau, University College London, and others
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
@@ -8,6 +8,7 @@
* Contributors:
* Andrea Bittau - initial API and implementation from the PsychoPath XPath 2.0
* David Carver (STAR) - bug 262765 - add ability to set the base uri
+ * Mukul Gandhi - bug 280798 - PsychoPath support for JDK 1.4
*******************************************************************************/
package org.eclipse.wst.xml.xpath2.processor;
@@ -261,13 +262,20 @@ public interface StaticContext {
/**
* @since 1.1
+ *
+ * Gets the collections map, which maps a String into a List of Document, in
+ * Java5 it would be <code>Map<String, List<Document>></code>
+ *
*/
- public Map<String, List<Document>> get_collections();
+ public Map get_collections();
/**
* @since 1.1
+ *
+ * Sets the collections map, which maps a String into a List of Document, in
+ * Java5 it would be <code>Map<String, List<Document>></code>
*/
- public void set_collections(Map<String, List<Document>> collections);
+ public void set_collections(Map collections);
/**
* Gets the type provider in use for the specified DOM node.
diff --git a/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/XPathException.java b/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/XPathException.java
index 2d592f0..ddedf52 100644
--- a/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/XPathException.java
+++ b/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/XPathException.java
@@ -8,6 +8,7 @@
* Contributors:
* Andrea Bittau - initial API and implementation from the PsychoPath XPath 2.0
* Jesper Steen Moller - bug 290337 - Revisit use of ICU
+ * Mukul Gandhi - bug 280798 - PsychoPath support for JDK 1.4
*******************************************************************************/
package org.eclipse.wst.xml.xpath2.processor;
@@ -41,7 +42,6 @@ public class XPathException extends Exception {
return _reason;
}
- @Override
public String getMessage() {
return _reason;
}
diff --git a/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/XercesLoader.java b/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/XercesLoader.java
index 8944494..ba576c7 100644
--- a/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/XercesLoader.java
+++ b/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/XercesLoader.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2005, 2009 Andrea Bittau, University College London, and others
+ * Copyright (c) 2005, 2010 Andrea Bittau, University College London, and others
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
@@ -12,6 +12,7 @@
* Jesper Steen Moller - Fixed namespace awareness
* David Carver - bug 281186 - implementation of fn:id and fn:idref. Correct
* loading of grammars if non-validating.
+ * Mukul Gandhi - bug 280798 - PsychoPath support for JDK 1.4
*******************************************************************************/
package org.eclipse.wst.xml.xpath2.processor;
@@ -84,8 +85,8 @@ public class XercesLoader implements DOMLoader {
factory.setNamespaceAware(true);
factory.setAttribute(SCHEMA_VALIDATION_FEATURE,
Boolean.valueOf(_validating));
- factory.setAttribute(LOAD_EXTERNAL_DTD_FEATURE, true);
- factory.setAttribute(NONVALIDATING_LOAD_DTD_GRAMMAR, true);
+ factory.setAttribute(LOAD_EXTERNAL_DTD_FEATURE, Boolean.TRUE);
+ factory.setAttribute(NONVALIDATING_LOAD_DTD_GRAMMAR, Boolean.TRUE);
factory.setAttribute(DOCUMENT_IMPLEMENTATION_PROPERTY,
DOCUMENT_PSVI_IMPLEMENTATION);
diff --git a/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/ast/XPath.java b/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/ast/XPath.java
index 9ef7b1b..98936c6 100644
--- a/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/ast/XPath.java
+++ b/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/ast/XPath.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2005, 2009 Andrea Bittau, University College London, and others
+ * Copyright (c) 2005, 2010 Andrea Bittau, University College London, and others
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
@@ -7,6 +7,7 @@
*
* Contributors:
* Andrea Bittau - initial API and implementation from the PsychoPath XPath 2.0
+ * Mukul Gandhi - bug 280798 - PsychoPath support for JDK 1.4
*******************************************************************************/
package org.eclipse.wst.xml.xpath2.processor.ast;
@@ -37,7 +38,6 @@ public class XPath extends XPathNode {
*
* @return Result of Visitor operation.
*/
- @Override
public Object accept(XPathVisitor v) {
return v.visit(this);
}
diff --git a/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/function/XSCtrLibrary.java b/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/function/XSCtrLibrary.java
index 282c1c6..99a3013 100644
--- a/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/function/XSCtrLibrary.java
+++ b/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/function/XSCtrLibrary.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2005, 2009 Andrea Bittau, University College London, and others
+ * Copyright (c) 2005, 2010 Andrea Bittau, University College London, and others
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
@@ -32,6 +32,7 @@
package org.eclipse.wst.xml.xpath2.processor.function;
+import org.eclipse.wst.xml.xpath2.api.typesystem.TypeDefinition;
import org.eclipse.wst.xml.xpath2.processor.internal.function.ConstructorFL;
import org.eclipse.wst.xml.xpath2.processor.internal.types.*;
@@ -62,14 +63,19 @@ public class XSCtrLibrary extends ConstructorFL {
add_type(new XSNotation());
add_abstract_type("anyAtomicType", new AnyAtomicType() {
- @Override
+
public String string_type() {
return null;
}
- @Override
+
public String string_value() {
return null;
}
+
+ public TypeDefinition getTypeDefinition() {
+ // TODO Auto-generated method stub
+ return null;
+ }
});
// numeric
diff --git a/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/AncestorAxis.java b/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/AncestorAxis.java
index 219b98c..55a3e54 100644
--- a/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/AncestorAxis.java
+++ b/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/AncestorAxis.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2005, 2009 Andrea Bittau, University College London, and others
+ * Copyright (c) 2005, 2010 Andrea Bittau, University College London, and others
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
@@ -7,6 +7,7 @@
*
* Contributors:
* Andrea Bittau - initial API and implementation from the PsychoPath XPath 2.0
+ * Mukul Gandhi - bug 280798 - PsychoPath support for JDK 1.4
*******************************************************************************/
package org.eclipse.wst.xml.xpath2.processor.internal;
@@ -31,7 +32,6 @@ public class AncestorAxis extends ParentAxis {
* @return The nodes that are ancestors of the context node.
*/
// XXX unify this with descendants axis ?
- @Override
public ResultSequence iterate(NodeType node, DynamicContext dc) {
// get the parent
diff --git a/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/AttributeAxis.java b/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/AttributeAxis.java
index 37baccc..c8caf5f 100644
--- a/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/AttributeAxis.java
+++ b/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/AttributeAxis.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2005, 2009 Andrea Bittau, University College London, and others
+ * Copyright (c) 2005, 2010 Andrea Bittau, University College London, and others
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
@@ -8,6 +8,7 @@
* Contributors:
* Andrea Bittau - initial API and implementation from the PsychoPath XPath 2.0
* Jesper Moller - bug 275610 - Avoid big time and memory overhead for externals
+ * Mukul Gandhi - bug 280798 - PsychoPath support for JDK 1.4
*******************************************************************************/
package org.eclipse.wst.xml.xpath2.processor.internal;
@@ -60,7 +61,6 @@ public class AttributeAxis extends ForwardAxis {
*
* @return The type of node.
*/
- @Override
public NodeType principal_node_kind() {
return new AttrType();
}
diff --git a/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/DefaultRSFactory.java b/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/DefaultRSFactory.java
index cb5b89c..2cb34ae 100644
--- a/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/DefaultRSFactory.java
+++ b/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/DefaultRSFactory.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2005, 2009 Andrea Bittau, University College London, and others
+ * Copyright (c) 2005, 2010 Andrea Bittau, University College London, and others
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
@@ -7,6 +7,7 @@
*
* Contributors:
* Andrea Bittau - initial API and implementation from the PsychoPath XPath 2.0
+ * Mukul Gandhi - bug 280798 - PsychoPath support for JDK 1.4
*******************************************************************************/
package org.eclipse.wst.xml.xpath2.processor.internal;
@@ -37,7 +38,6 @@ public class DefaultRSFactory extends ResultSequenceFactory {
_head_pos = POOL_SIZE - 1;
}
- @Override
protected ResultSequence fact_create_new() {
if (_head_pos > 0) {
return _rs_pool[_head_pos--];
@@ -46,7 +46,6 @@ public class DefaultRSFactory extends ResultSequenceFactory {
return _rs_creator.create_new();
}
- @Override
protected void fact_release(ResultSequence rs) {
int new_pos = _head_pos + 1;
@@ -58,7 +57,6 @@ public class DefaultRSFactory extends ResultSequenceFactory {
}
}
- @Override
protected void fact_print_debug() {
System.out.println("Head pos: " + _head_pos);
}
diff --git a/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/DefaultResultSequence.java b/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/DefaultResultSequence.java
index 4838f56..6ae29a1 100644
--- a/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/DefaultResultSequence.java
+++ b/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/DefaultResultSequence.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2005, 2009 Andrea Bittau, University College London, and others
+ * Copyright (c) 2005, 2010 Andrea Bittau, University College London, and others
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
@@ -7,12 +7,14 @@
*
* Contributors:
* Andrea Bittau - initial API and implementation from the PsychoPath XPath 2.0
+ * Mukul Gandhi - bug 280798 - PsychoPath support for JDK 1.4
*******************************************************************************/
package org.eclipse.wst.xml.xpath2.processor.internal;
import java.util.*;
+import org.eclipse.wst.xml.xpath2.api.typesystem.TypeDefinition;
import org.eclipse.wst.xml.xpath2.processor.ResultSequence;
import org.eclipse.wst.xml.xpath2.processor.internal.types.*;
@@ -46,7 +48,6 @@ public class DefaultResultSequence extends ResultSequence {
* @param item
* is added to array _seq
*/
- @Override
public void add(AnyType item) {
assert item != null;
_seq.add(item);
@@ -56,7 +57,6 @@ public class DefaultResultSequence extends ResultSequence {
* @param rs
* ResultSequence
*/
- @Override
public void concat(ResultSequence rs) {
for (Iterator i = rs.iterator(); i.hasNext();)
_seq.add(i.next());
@@ -65,7 +65,6 @@ public class DefaultResultSequence extends ResultSequence {
/**
* @return the next iteration of array _seq
*/
- @Override
public ListIterator iterator() {
return _seq.listIterator();
}
@@ -73,7 +72,6 @@ public class DefaultResultSequence extends ResultSequence {
/**
* @return integer of the size of array _seq
*/
- @Override
public int size() {
return _seq.size();
}
@@ -83,7 +81,6 @@ public class DefaultResultSequence extends ResultSequence {
* is the position of the array item that is wanted.
* @return item i from array _seq
*/
- @Override
public AnyType get(int i) {
return (AnyType) _seq.get(i);
}
@@ -91,7 +88,6 @@ public class DefaultResultSequence extends ResultSequence {
/**
* @return first item from array _seq
*/
- @Override
public AnyType first() {
if (_seq.size() == 0)
return null;
@@ -104,7 +100,6 @@ public class DefaultResultSequence extends ResultSequence {
*
* @return a boolean
*/
- @Override
public boolean empty() {
return _seq.isEmpty();
}
@@ -112,7 +107,6 @@ public class DefaultResultSequence extends ResultSequence {
/**
* Clears the sequence.
*/
- @Override
public void clear() {
_seq.clear();
}
@@ -122,7 +116,6 @@ public class DefaultResultSequence extends ResultSequence {
*
* @return The new sequence.
*/
- @Override
public ResultSequence create_new() {
return new DefaultResultSequence();
}
diff --git a/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/DefaultStaticContext.java b/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/DefaultStaticContext.java
index bd7df63..782a8b7 100644
--- a/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/DefaultStaticContext.java
+++ b/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/DefaultStaticContext.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2005, 2009 Andrea Bittau, University College London, and others
+ * Copyright (c) 2005, 2010 Andrea Bittau, University College London, and others
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
@@ -70,11 +70,11 @@ public class DefaultStaticContext implements StaticContext {
_cntxt_item_type = cntxtItemType;
}
- public Map<String, List<Document>> get_collections() {
+ public Map get_collections() {
return _collections;
}
- public void set_collections(Map<String, List<Document>> collections) {
+ public void set_collections(Map collections) {
_collections = collections;
}
diff --git a/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/DescendantAxis.java b/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/DescendantAxis.java
index 0cea2ee..5f1854f 100644
--- a/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/DescendantAxis.java
+++ b/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/DescendantAxis.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2005, 2009 Andrea Bittau, University College London, and others
+ * Copyright (c) 2005, 2010 Andrea Bittau, University College London, and others
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
@@ -7,6 +7,7 @@
*
* Contributors:
* Andrea Bittau - initial API and implementation from the PsychoPath XPath 2.0
+ * Mukul Gandhi - bug 280798 - PsychoPath support for JDK 1.4
*******************************************************************************/
package org.eclipse.wst.xml.xpath2.processor.internal;
@@ -31,7 +32,6 @@ public class DescendantAxis extends ChildAxis {
* is the dynamic context.
* @return The descendants of the context node.
*/
- @Override
public ResultSequence iterate(NodeType node, DynamicContext dc) {
// get the children
ResultSequence rs = super.iterate(node, dc);
diff --git a/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/RangeResultSequence.java b/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/RangeResultSequence.java
index 994acb2..c2bed15 100644
--- a/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/RangeResultSequence.java
+++ b/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/RangeResultSequence.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2005, 2009 Andrea Bittau, University College London, and others
+ * Copyright (c) 2005, 2010 Andrea Bittau, University College London, and others
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
@@ -8,6 +8,7 @@
* Contributors:
* Andrea Bittau - initial API and implementation from the PsychoPath XPath 2.0
* Mukul Gandhi - bug 274805 - improvements to xs:integer data type
+ * Mukul Gandhi - bug 280798 - PsychoPath support for JDK 1.4
*******************************************************************************/
package org.eclipse.wst.xml.xpath2.processor.internal;
@@ -55,7 +56,6 @@ public class RangeResultSequence extends ResultSequence {
* @param item
* is an integer.
*/
- @Override
public void add(AnyType item) {
_tail.add(item);
}
@@ -66,7 +66,6 @@ public class RangeResultSequence extends ResultSequence {
* @param rs
* is the range
*/
- @Override
public void concat(ResultSequence rs) {
_tail.concat(rs);
}
@@ -76,7 +75,6 @@ public class RangeResultSequence extends ResultSequence {
*
* @return tail
*/
- @Override
public ListIterator iterator() {
// XXX life is getting hard...
if (_size != 0) {
@@ -101,7 +99,6 @@ public class RangeResultSequence extends ResultSequence {
/**
* @return item from range
*/
- @Override
public AnyType get(int i) {
if (i < _size)
return new XSInteger(BigInteger.valueOf(_start + i));
@@ -112,7 +109,6 @@ public class RangeResultSequence extends ResultSequence {
/**
* @return size
*/
- @Override
public int size() {
return _size + _tail.size();
}
@@ -120,7 +116,6 @@ public class RangeResultSequence extends ResultSequence {
/**
* clear range
*/
- @Override
public void clear() {
_size = 0;
_tail.clear();
@@ -131,7 +126,6 @@ public class RangeResultSequence extends ResultSequence {
*
* @return null
*/
- @Override
public ResultSequence create_new() {
assert false;
return null;
@@ -140,7 +134,6 @@ public class RangeResultSequence extends ResultSequence {
/**
* @return first item in range
*/
- @Override
public AnyType first() {
return get(0);
}
@@ -150,7 +143,6 @@ public class RangeResultSequence extends ResultSequence {
*
* @return boolean
*/
- @Override
public boolean empty() {
return size() == 0;
}
@@ -158,7 +150,6 @@ public class RangeResultSequence extends ResultSequence {
/**
* release
*/
- @Override
public void release() {
}
}
diff --git a/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/ast/AddExpr.java b/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/ast/AddExpr.java
index 5950840..d93325d 100644
--- a/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/ast/AddExpr.java
+++ b/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/ast/AddExpr.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2005, 2009 Andrea Bittau, University College London, and others
+ * Copyright (c) 2005, 2010 Andrea Bittau, University College London, and others
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
@@ -7,6 +7,7 @@
*
* Contributors:
* Andrea Bittau - initial API and implementation from the PsychoPath XPath 2.0
+ * Mukul Gandhi - bug 280798 - PsychoPath support for JDK 1.4
*******************************************************************************/
package org.eclipse.wst.xml.xpath2.processor.internal.ast;
@@ -34,7 +35,6 @@ public class AddExpr extends BinExpr {
*
* @return Result of Visitor operation.
*/
- @Override
public Object accept(XPathVisitor v) {
return v.visit(this);
}
diff --git a/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/ast/AndExpr.java b/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/ast/AndExpr.java
index 28b837c..6e33163 100644
--- a/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/ast/AndExpr.java
+++ b/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/ast/AndExpr.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2005, 2009 Andrea Bittau, University College London, and others
+ * Copyright (c) 2005, 2010 Andrea Bittau, University College London, and others
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
@@ -7,6 +7,7 @@
*
* Contributors:
* Andrea Bittau - initial API and implementation from the PsychoPath XPath 2.0
+ * Mukul Gandhi - bug 280798 - PsychoPath support for JDK 1.4
*******************************************************************************/
package org.eclipse.wst.xml.xpath2.processor.internal.ast;
@@ -34,7 +35,6 @@ public class AndExpr extends BinExpr {
*
* @return Result of Visitor operation.
*/
- @Override
public Object accept(XPathVisitor v) {
return v.visit(this);
}
diff --git a/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/ast/AnyKindTest.java b/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/ast/AnyKindTest.java
index 7822491..46dbc27 100644
--- a/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/ast/AnyKindTest.java
+++ b/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/ast/AnyKindTest.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2005, 2009 Andrea Bittau, University College London, and others
+ * Copyright (c) 2005, 2010 Andrea Bittau, University College London, and others
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
@@ -7,7 +7,7 @@
*
* Contributors:
* Andrea Bittau - initial API and implementation from the PsychoPath XPath 2.0
- * David Carver - bug 298535 - Attribute instance of improvements
+ * Mukul Gandhi - bug 280798 - PsychoPath support for JDK 1.4
******************************************************************************/
package org.eclipse.wst.xml.xpath2.processor.internal.ast;
@@ -28,27 +28,22 @@ public class AnyKindTest extends KindTest {
*
* @return Result of Visitor operation.
*/
- @Override
public Object accept(XPathVisitor v) {
return v.visit(this);
}
- @Override
public AnyType createTestType(ResultSequence rs, StaticContext sc) {
return null;
}
- @Override
public QName name() {
return null;
}
- @Override
public boolean isWild() {
return false;
}
- @Override
public Class getXDMClassType() {
return NodeType.class;
}
diff --git a/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/ast/AttributeTest.java b/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/ast/AttributeTest.java
index 88d861f..0395477 100644
--- a/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/ast/AttributeTest.java
+++ b/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/ast/AttributeTest.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2005, 2009 Andrea Bittau, University College London, and others
+ * Copyright (c) 2005, 2010 Andrea Bittau, University College London, and others
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
@@ -8,6 +8,7 @@
* Contributors:
* Andrea Bittau - initial API and implementation from the PsychoPath XPath 2.0
* David Carver - bug 298535 - Attribute instance of improvements
+ * Mukul Gandhi - bug 280798 - PsychoPath support for JDK 1.4
*******************************************************************************/
package org.eclipse.wst.xml.xpath2.processor.internal.ast;
@@ -70,12 +71,10 @@ public class AttributeTest extends AttrElemTest {
*
* @return Result of Visitor operation.
*/
- @Override
public Object accept(XPathVisitor v) {
return v.visit(this);
}
- @Override
public AnyType createTestType(ResultSequence rs, StaticContext sc) {
if (name() == null && !wild()) {
return new AttrType();
@@ -131,12 +130,10 @@ public class AttributeTest extends AttrElemTest {
return anyType;
}
- @Override
public boolean isWild() {
return wild();
}
- @Override
public Class getXDMClassType() {
return AttrType.class;
}
diff --git a/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/ast/AxisStep.java b/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/ast/AxisStep.java
index 6dda7b2..e12e3c3 100644
--- a/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/ast/AxisStep.java
+++ b/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/ast/AxisStep.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2005, 2009 Andrea Bittau, University College London, and others
+ * Copyright (c) 2005, 2010 Andrea Bittau, University College London, and others
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
@@ -7,6 +7,7 @@
*
* Contributors:
* Andrea Bittau - initial API and implementation from the PsychoPath XPath 2.0
+ * Mukul Gandhi - bug 280798 - PsychoPath support for JDK 1.4
*******************************************************************************/
package org.eclipse.wst.xml.xpath2.processor.internal.ast;
@@ -40,7 +41,6 @@ public class AxisStep extends StepExpr {
*
* @return Result of Visitor operation.
*/
- @Override
public Object accept(XPathVisitor v) {
return v.visit(this);
}
diff --git a/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/ast/CastExpr.java b/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/ast/CastExpr.java
index 8084930..a80d033 100644
--- a/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/ast/CastExpr.java
+++ b/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/ast/CastExpr.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2005, 2009 Andrea Bittau, University College London, and others
+ * Copyright (c) 2005, 2010 Andrea Bittau, University College London, and others
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
@@ -7,6 +7,7 @@
*
* Contributors:
* Andrea Bittau - initial API and implementation from the PsychoPath XPath 2.0
+ * Mukul Gandhi - bug 280798 - PsychoPath support for JDK 1.4
*******************************************************************************/
package org.eclipse.wst.xml.xpath2.processor.internal.ast;
@@ -39,7 +40,6 @@ public class CastExpr extends BinExpr {
*
* @return Result of Visitor operation.
*/
- @Override
public Object accept(XPathVisitor v) {
return v.visit(this);
}
diff --git a/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/ast/CastableExpr.java b/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/ast/CastableExpr.java
index 0b60281..c05f357 100644
--- a/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/ast/CastableExpr.java
+++ b/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/ast/CastableExpr.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2005, 2009 Andrea Bittau, University College London, and others
+ * Copyright (c) 2005, 2010 Andrea Bittau, University College London, and others
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
@@ -7,6 +7,7 @@
*
* Contributors:
* Andrea Bittau - initial API and implementation from the PsychoPath XPath 2.0
+ * Mukul Gandhi - bug 280798 - PsychoPath support for JDK 1.4
*******************************************************************************/
package org.eclipse.wst.xml.xpath2.processor.internal.ast;
@@ -34,7 +35,6 @@ public class CastableExpr extends BinExpr {
*
* @return Result of Visitor operation.
*/
- @Override
public Object accept(XPathVisitor v) {
return v.visit(this);
}
diff --git a/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/ast/CmpExpr.java b/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/ast/CmpExpr.java
index 84785c0..d0e765e 100644
--- a/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/ast/CmpExpr.java
+++ b/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/ast/CmpExpr.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2005, 2009 Andrea Bittau, University College London, and others
+ * Copyright (c) 2005, 2010 Andrea Bittau, University College London, and others
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
@@ -7,6 +7,7 @@
*
* Contributors:
* Andrea Bittau - initial API and implementation from the PsychoPath XPath 2.0
+ * Mukul Gandhi - bug 280798 - PsychoPath support for JDK 1.4
*******************************************************************************/
package org.eclipse.wst.xml.xpath2.processor.internal.ast;
@@ -101,7 +102,6 @@ public class CmpExpr extends BinExpr {
*
* @return Result of Visitor operation.
*/
- @Override
public Object accept(XPathVisitor v) {
return v.visit(this);
}
diff --git a/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/ast/CntxItemExpr.java b/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/ast/CntxItemExpr.java
index 2deea82..0cd4694 100644
--- a/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/ast/CntxItemExpr.java
+++ b/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/ast/CntxItemExpr.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2005, 2009 Andrea Bittau, University College London, and others
+ * Copyright (c) 2005, 2010 Andrea Bittau, University College London, and others
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
@@ -7,6 +7,7 @@
*
* Contributors:
* Andrea Bittau - initial API and implementation from the PsychoPath XPath 2.0
+ * Mukul Gandhi - bug 280798 - PsychoPath support for JDK 1.4
*******************************************************************************/
package org.eclipse.wst.xml.xpath2.processor.internal.ast;
@@ -20,7 +21,6 @@ public class CntxItemExpr extends PrimaryExpr {
*
* @return Result of Visitor operation.
*/
- @Override
public Object accept(XPathVisitor v) {
return v.visit(this);
}
diff --git a/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/ast/CommentTest.java b/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/ast/CommentTest.java
index 20ddee3..09c8ded 100644
--- a/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/ast/CommentTest.java
+++ b/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/ast/CommentTest.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2005, 2009 Andrea Bittau, University College London, and others
+ * Copyright (c) 2005, 2010 Andrea Bittau, University College London, and others
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
@@ -8,6 +8,7 @@
* Contributors:
* Andrea Bittau - initial API and implementation from the PsychoPath XPath 2.0
* David Carver - bug 298535 - Attribute instance of improvements
+ * Mukul Gandhi - bug 280798 - PsychoPath support for JDK 1.4
*******************************************************************************/
package org.eclipse.wst.xml.xpath2.processor.internal.ast;
@@ -27,27 +28,22 @@ public class CommentTest extends KindTest {
*
* @return Result of Visitor operation.
*/
- @Override
public Object accept(XPathVisitor v) {
return v.visit(this);
}
- @Override
public AnyType createTestType(ResultSequence rs, StaticContext sc) {
return null;
}
- @Override
public QName name() {
return null;
}
- @Override
public boolean isWild() {
return false;
}
- @Override
public Class getXDMClassType() {
return CommentType.class;
}
diff --git a/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/ast/DecimalLiteral.java b/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/ast/DecimalLiteral.java
index 7b7ba7f..9157e7d 100644
--- a/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/ast/DecimalLiteral.java
+++ b/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/ast/DecimalLiteral.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2005, 2009 Andrea Bittau, University College London, and others
+ * Copyright (c) 2005, 2010 Andrea Bittau, University College London, and others
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
@@ -7,6 +7,7 @@
*
* Contributors:
* Andrea Bittau - initial API and implementation from the PsychoPath XPath 2.0
+ * Mukul Gandhi - bug 280798 - PsychoPath support for JDK 1.4
*******************************************************************************/
package org.eclipse.wst.xml.xpath2.processor.internal.ast;
@@ -38,7 +39,6 @@ public class DecimalLiteral extends NumericLiteral {
*
* @return Result of Visitor operation.
*/
- @Override
public Object accept(XPathVisitor v) {
return v.visit(this);
}
diff --git a/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/ast/DivExpr.java b/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/ast/DivExpr.java
index b8df3fd..00b66e4 100644
--- a/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/ast/DivExpr.java
+++ b/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/ast/DivExpr.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2005, 2009 Andrea Bittau, University College London, and others
+ * Copyright (c) 2005, 2010 Andrea Bittau, University College London, and others
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
@@ -7,6 +7,7 @@
*
* Contributors:
* Andrea Bittau - initial API and implementation from the PsychoPath XPath 2.0
+ * Mukul Gandhi - bug 280798 - PsychoPath support for JDK 1.4
*******************************************************************************/
package org.eclipse.wst.xml.xpath2.processor.internal.ast;
@@ -32,7 +33,6 @@ public class DivExpr extends BinExpr {
*
* @return Result of Visitor operation.
*/
- @Override
public Object accept(XPathVisitor v) {
return v.visit(this);
}
diff --git a/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/ast/DocumentTest.java b/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/ast/DocumentTest.java
index 67830e5..c6d5a6a 100644
--- a/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/ast/DocumentTest.java
+++ b/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/ast/DocumentTest.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2005, 2009 Andrea Bittau, University College London, and others
+ * Copyright (c) 2005, 2010 Andrea Bittau, University College London, and others
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
@@ -8,6 +8,7 @@
* Contributors:
* Andrea Bittau - initial API and implementation from the PsychoPath XPath 2.0
* David Carver - bug 298535 - Attribute instance of improvements
+ * Mukul Gandhi - bug 280798 - PsychoPath support for JDK 1.4
*******************************************************************************/
package org.eclipse.wst.xml.xpath2.processor.internal.ast;
@@ -76,7 +77,6 @@ public class DocumentTest extends KindTest {
*
* @return Result of Visitor operation.
*/
- @Override
public Object accept(XPathVisitor v) {
return v.visit(this);
}
@@ -108,24 +108,20 @@ public class DocumentTest extends KindTest {
return _schema_etest;
}
- @Override
public AnyType createTestType(ResultSequence rs, StaticContext sc) {
// TODO Auto-generated method stub
return null;
}
- @Override
public QName name() {
// TODO Auto-generated method stub
return null;
}
- @Override
public boolean isWild() {
return false;
}
- @Override
public Class getXDMClassType() {
return DocType.class;
}
diff --git a/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/ast/DoubleLiteral.java b/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/ast/DoubleLiteral.java
index 0570e76..b0d8c3c 100644
--- a/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/ast/DoubleLiteral.java
+++ b/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/ast/DoubleLiteral.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2005, 2009 Andrea Bittau, University College London, and others
+ * Copyright (c) 2005, 2010 Andrea Bittau, University College London, and others
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
@@ -7,6 +7,7 @@
*
* Contributors:
* Andrea Bittau - initial API and implementation from the PsychoPath XPath 2.0
+ * Mukul Gandhi - bug 280798 - PsychoPath support for JDK 1.4
*******************************************************************************/
package org.eclipse.wst.xml.xpath2.processor.internal.ast;
@@ -36,7 +37,6 @@ public class DoubleLiteral extends NumericLiteral {
*
* @return Result of Visitor operation.
*/
- @Override
public Object accept(XPathVisitor v) {
return v.visit(this);
}
diff --git a/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/ast/ElementTest.java b/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/ast/ElementTest.java
index eda0e7d..30b5ad7 100644
--- a/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/ast/ElementTest.java
+++ b/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/ast/ElementTest.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2005, 2009 Andrea Bittau, University College London, and others
+ * Copyright (c) 2005, 2010 Andrea Bittau, University College London, and others
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
@@ -8,6 +8,7 @@
* Contributors:
* Andrea Bittau - initial API and implementation from the PsychoPath XPath 2.0
* David Carver - bug 298535 - Attribute instance of improvements
+ * Mukul Gandhi - bug 280798 - PsychoPath support for JDK 1.4
*******************************************************************************/
package org.eclipse.wst.xml.xpath2.processor.internal.ast;
@@ -91,7 +92,6 @@ public class ElementTest extends AttrElemTest {
*
* @return Result of Visitor operation.
*/
- @Override
public Object accept(XPathVisitor v) {
return v.visit(this);
}
@@ -105,7 +105,6 @@ public class ElementTest extends AttrElemTest {
return _qmark;
}
- @Override
public AnyType createTestType(ResultSequence rs, StaticContext sc) {
if (name() == null && !wild()) {
@@ -166,12 +165,10 @@ public class ElementTest extends AttrElemTest {
return anyType;
}
- @Override
public boolean isWild() {
return wild();
}
- @Override
public Class getXDMClassType() {
return ElementType.class;
}
diff --git a/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/ast/ExceptExpr.java b/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/ast/ExceptExpr.java
index 7826ada..09319cc 100644
--- a/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/ast/ExceptExpr.java
+++ b/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/ast/ExceptExpr.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2005, 2009 Andrea Bittau, University College London, and others
+ * Copyright (c) 2005, 2010 Andrea Bittau, University College London, and others
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
@@ -7,6 +7,7 @@
*
* Contributors:
* Andrea Bittau - initial API and implementation from the PsychoPath XPath 2.0
+ * Mukul Gandhi - bug 280798 - PsychoPath support for JDK 1.4
*******************************************************************************/
package org.eclipse.wst.xml.xpath2.processor.internal.ast;
@@ -35,7 +36,6 @@ public class ExceptExpr extends BinExpr {
*
* @return Result of Visitor operation.
*/
- @Override
public Object accept(XPathVisitor v) {
return v.visit(this);
}
diff --git a/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/ast/FilterExpr.java b/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/ast/FilterExpr.java
index 9a30cc0..a6415c9 100644
--- a/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/ast/FilterExpr.java
+++ b/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/ast/FilterExpr.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2005, 2009 Andrea Bittau, University College London, and others
+ * Copyright (c) 2005, 2010 Andrea Bittau, University College London, and others
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
@@ -7,6 +7,7 @@
*
* Contributors:
* Andrea Bittau - initial API and implementation from the PsychoPath XPath 2.0
+ * Mukul Gandhi - bug 280798 - PsychoPath support for JDK 1.4
*******************************************************************************/
package org.eclipse.wst.xml.xpath2.processor.internal.ast;
@@ -46,7 +47,6 @@ public class FilterExpr extends StepExpr {
*
* @return Result of Visitor operation.
*/
- @Override
public Object accept(XPathVisitor v) {
return v.visit(this);
}
diff --git a/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/ast/ForExpr.java b/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/ast/ForExpr.java
index 78865e6..cac121e 100644
--- a/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/ast/ForExpr.java
+++ b/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/ast/ForExpr.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2005, 2009 Andrea Bittau, University College London, and others
+ * Copyright (c) 2005, 2010 Andrea Bittau, University College London, and others
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
@@ -7,6 +7,7 @@
*
* Contributors:
* Andrea Bittau - initial API and implementation from the PsychoPath XPath 2.0
+ * Mukul Gandhi - bug 280798 - PsychoPath support for JDK 1.4
*******************************************************************************/
package org.eclipse.wst.xml.xpath2.processor.internal.ast;
@@ -38,7 +39,6 @@ public class ForExpr extends Expr {
*
* @return Result of Visitor operation.
*/
- @Override
public Object accept(XPathVisitor v) {
return v.visit(this);
}
diff --git a/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/ast/ForwardStep.java b/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/ast/ForwardStep.java
index f0a13bc..925d930 100644
--- a/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/ast/ForwardStep.java
+++ b/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/ast/ForwardStep.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2005, 2009 Andrea Bittau, University College London, and others
+ * Copyright (c) 2005, 2010 Andrea Bittau, University College London, and others
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
@@ -7,6 +7,7 @@
*
* Contributors:
* Andrea Bittau - initial API and implementation from the PsychoPath XPath 2.0
+ * Mukul Gandhi - bug 280798 - PsychoPath support for JDK 1.4
*******************************************************************************/
package org.eclipse.wst.xml.xpath2.processor.internal.ast;
@@ -129,7 +130,6 @@ public class ForwardStep extends Step {
*
* @return Result of Visitor operation.
*/
- @Override
public Object accept(XPathVisitor v) {
return v.visit(this);
}
diff --git a/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/ast/FunctionCall.java b/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/ast/FunctionCall.java
index 39b5725..03d1076 100644
--- a/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/ast/FunctionCall.java
+++ b/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/ast/FunctionCall.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2005, 2009 Andrea Bittau, University College London, and others
+ * Copyright (c) 2005, 2010 Andrea Bittau, University College London, and others
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
@@ -7,6 +7,7 @@
*
* Contributors:
* Andrea Bittau - initial API and implementation from the PsychoPath XPath 2.0
+ * Mukul Gandhi - bug 280798 - PsychoPath support for JDK 1.4
*******************************************************************************/
package org.eclipse.wst.xml.xpath2.processor.internal.ast;
@@ -40,7 +41,6 @@ public class FunctionCall extends PrimaryExpr {
*
* @return Result of Visitor operation.
*/
- @Override
public Object accept(XPathVisitor v) {
return v.visit(this);
}
diff --git a/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/ast/IDivExpr.java b/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/ast/IDivExpr.java
index 830fdaa..92c0c11 100644
--- a/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/ast/IDivExpr.java
+++ b/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/ast/IDivExpr.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2005, 2009 Andrea Bittau, University College London, and others
+ * Copyright (c) 2005, 2010 Andrea Bittau, University College London, and others
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
@@ -7,6 +7,7 @@
*
* Contributors:
* Andrea Bittau - initial API and implementation from the PsychoPath XPath 2.0
+ * Mukul Gandhi - bug 280798 - PsychoPath support for JDK 1.4
*******************************************************************************/
package org.eclipse.wst.xml.xpath2.processor.internal.ast;
@@ -32,7 +33,6 @@ public class IDivExpr extends BinExpr {
*
* @return Result of Visitor operation.
*/
- @Override
public Object accept(XPathVisitor v) {
return v.visit(this);
}
diff --git a/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/ast/IfExpr.java b/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/ast/IfExpr.java
index e2f6c79..4ba1960 100644
--- a/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/ast/IfExpr.java
+++ b/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/ast/IfExpr.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2005, 2009 Andrea Bittau, University College London, and others
+ * Copyright (c) 2005, 2010 Andrea Bittau, University College London, and others
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
@@ -7,6 +7,7 @@
*
* Contributors:
* Andrea Bittau - initial API and implementation from the PsychoPath XPath 2.0
+ * Mukul Gandhi - bug 280798 - PsychoPath support for JDK 1.4
*******************************************************************************/
package org.eclipse.wst.xml.xpath2.processor.internal.ast;
@@ -42,7 +43,6 @@ public class IfExpr extends Expr {
*
* @return Result of Visitor operation.
*/
- @Override
public Object accept(XPathVisitor v) {
return v.visit(this);
}
diff --git a/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/ast/InstOfExpr.java b/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/ast/InstOfExpr.java
index 857caa6..84e7127 100644
--- a/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/ast/InstOfExpr.java
+++ b/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/ast/InstOfExpr.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2005, 2009 Andrea Bittau, University College London, and others
+ * Copyright (c) 2005, 2010 Andrea Bittau, University College London, and others
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
@@ -7,6 +7,7 @@
*
* Contributors:
* Andrea Bittau - initial API and implementation from the PsychoPath XPath 2.0
+ * Mukul Gandhi - bug 280798 - PsychoPath support for JDK 1.4
*******************************************************************************/
package org.eclipse.wst.xml.xpath2.processor.internal.ast;
@@ -34,7 +35,6 @@ public class InstOfExpr extends BinExpr {
*
* @return Result of Visitor operation.
*/
- @Override
public Object accept(XPathVisitor v) {
return v.visit(this);
}
diff --git a/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/ast/IntegerLiteral.java b/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/ast/IntegerLiteral.java
index 04cc1c9..0e296d7 100644
--- a/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/ast/IntegerLiteral.java
+++ b/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/ast/IntegerLiteral.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2005, 2009 Andrea Bittau, University College London, and others
+ * Copyright (c) 2005, 2010 Andrea Bittau, University College London, and others
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
@@ -8,6 +8,7 @@
* Contributors:
* Andrea Bittau - initial API and implementation from the PsychoPath XPath 2.0
* Mukul Gandhi - bug 274805 - improvements to xs:integer data type
+ * Mukul Gandhi - bug 280798 - PsychoPath support for JDK 1.4
*******************************************************************************/
package org.eclipse.wst.xml.xpath2.processor.internal.ast;
@@ -39,7 +40,6 @@ public class IntegerLiteral extends NumericLiteral {
*
* @return Result of Visitor operation.
*/
- @Override
public Object accept(XPathVisitor v) {
return v.visit(this);
}
diff --git a/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/ast/IntersectExpr.java b/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/ast/IntersectExpr.java
index 241ef6c..348772d 100644
--- a/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/ast/IntersectExpr.java
+++ b/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/ast/IntersectExpr.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2005, 2009 Andrea Bittau, University College London, and others
+ * Copyright (c) 2005, 2010 Andrea Bittau, University College London, and others
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
@@ -7,6 +7,7 @@
*
* Contributors:
* Andrea Bittau - initial API and implementation from the PsychoPath XPath 2.0
+ * Mukul Gandhi - bug 280798 - PsychoPath support for JDK 1.4
*******************************************************************************/
package org.eclipse.wst.xml.xpath2.processor.internal.ast;
@@ -34,7 +35,6 @@ public class IntersectExpr extends BinExpr {
*
* @return Result of Visitor operation.
*/
- @Override
public Object accept(XPathVisitor v) {
return v.visit(this);
}
diff --git a/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/ast/ItemType.java b/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/ast/ItemType.java
index 4c304e0..ba1cf7b 100644
--- a/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/ast/ItemType.java
+++ b/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/ast/ItemType.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2005, 2009 Andrea Bittau, University College London, and others
+ * Copyright (c) 2005, 2010 Andrea Bittau, University College London, and others
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
@@ -7,6 +7,7 @@
*
* Contributors:
* Andrea Bittau - initial API and implementation from the PsychoPath XPath 2.0
+ * Mukul Gandhi - bug 280798 - PsychoPath support for JDK 1.4
*******************************************************************************/
package org.eclipse.wst.xml.xpath2.processor.internal.ast;
@@ -64,7 +65,6 @@ public class ItemType extends XPathNode {
*
* @return Result of Visitor operation.
*/
- @Override
public Object accept(XPathVisitor v) {
return v.visit(this);
}
diff --git a/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/ast/MinusExpr.java b/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/ast/MinusExpr.java
index 42c56f2..2b1e1cc 100644
--- a/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/ast/MinusExpr.java
+++ b/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/ast/MinusExpr.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2005, 2009 Andrea Bittau, University College London, and others
+ * Copyright (c) 2005, 2010 Andrea Bittau, University College London, and others
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
@@ -7,6 +7,7 @@
*
* Contributors:
* Andrea Bittau - initial API and implementation from the PsychoPath XPath 2.0
+ * Mukul Gandhi - bug 280798 - PsychoPath support for JDK 1.4
*******************************************************************************/
package org.eclipse.wst.xml.xpath2.processor.internal.ast;
@@ -30,7 +31,6 @@ public class MinusExpr extends UnExpr {
*
* @return Result of Visitor operation.
*/
- @Override
public Object accept(XPathVisitor v) {
return v.visit(this);
}
diff --git a/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/ast/ModExpr.java b/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/ast/ModExpr.java
index 607fdd6..cbcc6b8 100644
--- a/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/ast/ModExpr.java
+++ b/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/ast/ModExpr.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2005, 2009 Andrea Bittau, University College London, and others
+ * Copyright (c) 2005, 2010 Andrea Bittau, University College London, and others
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
@@ -7,6 +7,7 @@
*
* Contributors:
* Andrea Bittau - initial API and implementation from the PsychoPath XPath 2.0
+ * Mukul Gandhi - bug 280798 - PsychoPath support for JDK 1.4
*******************************************************************************/
package org.eclipse.wst.xml.xpath2.processor.internal.ast;
@@ -32,7 +33,6 @@ public class ModExpr extends BinExpr {
*
* @return Result of Visitor operation.
*/
- @Override
public Object accept(XPathVisitor v) {
return v.visit(this);
}
diff --git a/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/ast/MulExpr.java b/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/ast/MulExpr.java
index 91204f2..230040a 100644
--- a/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/ast/MulExpr.java
+++ b/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/ast/MulExpr.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2005, 2009 Andrea Bittau, University College London, and others
+ * Copyright (c) 2005, 2010 Andrea Bittau, University College London, and others
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
@@ -7,6 +7,7 @@
*
* Contributors:
* Andrea Bittau - initial API and implementation from the PsychoPath XPath 2.0
+ * Mukul Gandhi - bug 280798 - PsychoPath support for JDK 1.4
*******************************************************************************/
package org.eclipse.wst.xml.xpath2.processor.internal.ast;
@@ -32,7 +33,6 @@ public class MulExpr extends BinExpr {
*
* @return Result of Visitor operation.
*/
- @Override
public Object accept(XPathVisitor v) {
return v.visit(this);
}
diff --git a/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/ast/NameTest.java b/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/ast/NameTest.java
index e25ac48..55a75b4 100644
--- a/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/ast/NameTest.java
+++ b/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/ast/NameTest.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2005, 2009 Andrea Bittau, University College London, and others
+ * Copyright (c) 2005, 2010 Andrea Bittau, University College London, and others
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
@@ -7,6 +7,7 @@
*
* Contributors:
* Andrea Bittau - initial API and implementation from the PsychoPath XPath 2.0
+ * Mukul Gandhi - bug 280798 - PsychoPath support for JDK 1.4
*******************************************************************************/
package org.eclipse.wst.xml.xpath2.processor.internal.ast;
@@ -34,7 +35,6 @@ public class NameTest extends NodeTest {
*
* @return Result of Visitor operation.
*/
- @Override
public Object accept(XPathVisitor v) {
return v.visit(this);
}
diff --git a/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/ast/OrExpr.java b/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/ast/OrExpr.java
index c3e9c24..cfd2837 100644
--- a/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/ast/OrExpr.java
+++ b/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/ast/OrExpr.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2005, 2009 Andrea Bittau, University College London, and others
+ * Copyright (c) 2005, 2010 Andrea Bittau, University College London, and others
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
@@ -7,6 +7,7 @@
*
* Contributors:
* Andrea Bittau - initial API and implementation from the PsychoPath XPath 2.0
+ * Mukul Gandhi - bug 280798 - PsychoPath support for JDK 1.4
*******************************************************************************/
package org.eclipse.wst.xml.xpath2.processor.internal.ast;
@@ -32,7 +33,6 @@ public class OrExpr extends BinExpr {
*
* @return Resulf of Visitor operation.
*/
- @Override
public Object accept(XPathVisitor v) {
return v.visit(this);
}
diff --git a/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/ast/PITest.java b/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/ast/PITest.java
index e56f206..9428b09 100644
--- a/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/ast/PITest.java
+++ b/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/ast/PITest.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2005, 2009 Andrea Bittau, University College London, and others
+ * Copyright (c) 2005, 2010 Andrea Bittau, University College London, and others
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
@@ -8,6 +8,7 @@
* Contributors:
* Andrea Bittau - initial API and implementation from the PsychoPath XPath 2.0
* David Carver - bug 298535 - Attribute instance of improvements
+ * Mukul Gandhi - bug 280798 - PsychoPath support for JDK 1.4
*******************************************************************************/
package org.eclipse.wst.xml.xpath2.processor.internal.ast;
@@ -46,7 +47,6 @@ public class PITest extends KindTest {
*
* @return Result of Visitor operation.
*/
- @Override
public Object accept(XPathVisitor v) {
return v.visit(this);
}
@@ -60,24 +60,20 @@ public class PITest extends KindTest {
return _arg;
}
- @Override
public AnyType createTestType(ResultSequence rs, StaticContext sc) {
// TODO Auto-generated method stub
return null;
}
- @Override
public QName name() {
// TODO Auto-generated method stub
return null;
}
- @Override
public boolean isWild() {
return false;
}
- @Override
public Class getXDMClassType() {
return PIType.class;
}
diff --git a/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/ast/ParExpr.java b/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/ast/ParExpr.java
index c880ac2..81da43c 100644
--- a/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/ast/ParExpr.java
+++ b/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/ast/ParExpr.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2005, 2009 Andrea Bittau, University College London, and others
+ * Copyright (c) 2005, 2010 Andrea Bittau, University College London, and others
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
@@ -7,6 +7,7 @@
*
* Contributors:
* Andrea Bittau - initial API and implementation from the PsychoPath XPath 2.0
+ * Mukul Gandhi - bug 280798 - PsychoPath support for JDK 1.4
*******************************************************************************/
package org.eclipse.wst.xml.xpath2.processor.internal.ast;
@@ -34,7 +35,6 @@ public class ParExpr extends PrimaryExpr {
*
* @return Result of Visitor operation.
*/
- @Override
public Object accept(XPathVisitor v) {
return v.visit(this);
}
diff --git a/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/ast/PipeExpr.java b/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/ast/PipeExpr.java
index 6f6c1ce..e01bc0e 100644
--- a/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/ast/PipeExpr.java
+++ b/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/ast/PipeExpr.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2005, 2009 Andrea Bittau, University College London, and others
+ * Copyright (c) 2005, 2010 Andrea Bittau, University College London, and others
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
@@ -7,6 +7,7 @@
*
* Contributors:
* Andrea Bittau - initial API and implementation from the PsychoPath XPath 2.0
+ * Mukul Gandhi - bug 280798 - PsychoPath support for JDK 1.4
*******************************************************************************/
package org.eclipse.wst.xml.xpath2.processor.internal.ast;
@@ -32,7 +33,6 @@ public class PipeExpr extends BinExpr {
*
* @return Result of Visitor operation.
*/
- @Override
public Object accept(XPathVisitor v) {
return v.visit(this);
}
diff --git a/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/ast/PlusExpr.java b/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/ast/PlusExpr.java
index 9e7eae4..75d57b9 100644
--- a/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/ast/PlusExpr.java
+++ b/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/ast/PlusExpr.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2005, 2009 Andrea Bittau, University College London, and others
+ * Copyright (c) 2005, 2010 Andrea Bittau, University College London, and others
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
@@ -7,6 +7,7 @@
*
* Contributors:
* Andrea Bittau - initial API and implementation from the PsychoPath XPath 2.0
+ * Mukul Gandhi - bug 280798 - PsychoPath support for JDK 1.4
*******************************************************************************/
package org.eclipse.wst.xml.xpath2.processor.internal.ast;
@@ -30,7 +31,6 @@ public class PlusExpr extends UnExpr {
*
* @return Result of Visitor operation.
*/
- @Override
public Object accept(XPathVisitor v) {
return v.visit(this);
}
diff --git a/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/ast/QuantifiedExpr.java b/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/ast/QuantifiedExpr.java
index 6a8255f..3f0c341 100644
--- a/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/ast/QuantifiedExpr.java
+++ b/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/ast/QuantifiedExpr.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2005, 2009 Andrea Bittau, University College London, and others
+ * Copyright (c) 2005, 2010 Andrea Bittau, University College London, and others
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
@@ -7,6 +7,7 @@
*
* Contributors:
* Andrea Bittau - initial API and implementation from the PsychoPath XPath 2.0
+ * Mukul Gandhi - bug 280798 - PsychoPath support for JDK 1.4
*******************************************************************************/
package org.eclipse.wst.xml.xpath2.processor.internal.ast;
@@ -52,7 +53,6 @@ public class QuantifiedExpr extends Expr {
*
* @return Result of Visitor operation.
*/
- @Override
public Object accept(XPathVisitor v) {
return v.visit(this);
}
diff --git a/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/ast/RangeExpr.java b/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/ast/RangeExpr.java
index 1896bcd..edfeaeb 100644
--- a/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/ast/RangeExpr.java
+++ b/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/ast/RangeExpr.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2005, 2009 Andrea Bittau, University College London, and others
+ * Copyright (c) 2005, 2010 Andrea Bittau, University College London, and others
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
@@ -7,6 +7,7 @@
*
* Contributors:
* Andrea Bittau - initial API and implementation from the PsychoPath XPath 2.0
+ * Mukul Gandhi - bug 280798 - PsychoPath support for JDK 1.4
*******************************************************************************/
package org.eclipse.wst.xml.xpath2.processor.internal.ast;
@@ -32,7 +33,6 @@ public class RangeExpr extends BinExpr {
*
* @return Result of Visitor operation.
*/
- @Override
public Object accept(XPathVisitor v) {
return v.visit(this);
}
diff --git a/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/ast/ReverseStep.java b/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/ast/ReverseStep.java
index d3c68e0..35a33e0 100644
--- a/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/ast/ReverseStep.java
+++ b/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/ast/ReverseStep.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2005, 2009 Andrea Bittau, University College London, and others
+ * Copyright (c) 2005, 2010 Andrea Bittau, University College London, and others
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
@@ -7,6 +7,7 @@
*
* Contributors:
* Andrea Bittau - initial API and implementation from the PsychoPath XPath 2.0
+ * Mukul Gandhi - bug 280798 - PsychoPath support for JDK 1.4
*******************************************************************************/
package org.eclipse.wst.xml.xpath2.processor.internal.ast;
@@ -95,7 +96,6 @@ public class ReverseStep extends Step {
*
* @return Result of Visitor operation.
*/
- @Override
public Object accept(XPathVisitor v) {
return v.visit(this);
}
diff --git a/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/ast/SchemaAttrTest.java b/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/ast/SchemaAttrTest.java
index 8552399..a621d4b 100644
--- a/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/ast/SchemaAttrTest.java
+++ b/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/ast/SchemaAttrTest.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2005, 2009 Andrea Bittau, University College London, and others
+ * Copyright (c) 2005, 2010 Andrea Bittau, University College London, and others
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
@@ -7,6 +7,7 @@
*
* Contributors:
* Andrea Bittau - initial API and implementation from the PsychoPath XPath 2.0
+ * Mukul Gandhi - bug 280798 - PsychoPath support for JDK 1.4
*******************************************************************************/
package org.eclipse.wst.xml.xpath2.processor.internal.ast;
@@ -36,7 +37,6 @@ public class SchemaAttrTest extends KindTest {
*
* @return Result of Visitor operation.
*/
- @Override
public Object accept(XPathVisitor v) {
return v.visit(this);
}
@@ -50,23 +50,19 @@ public class SchemaAttrTest extends KindTest {
return _arg;
}
- @Override
public AnyType createTestType(ResultSequence rs, StaticContext sc) {
// TODO Auto-generated method stub
return null;
}
- @Override
public QName name() {
return _arg;
}
- @Override
public boolean isWild() {
return false;
}
- @Override
public Class getXDMClassType() {
// TODO Auto-generated method stub
return null;
diff --git a/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/ast/SchemaElemTest.java b/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/ast/SchemaElemTest.java
index 6443cd1..49452f8 100644
--- a/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/ast/SchemaElemTest.java
+++ b/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/ast/SchemaElemTest.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2005, 2009 Andrea Bittau, University College London, and others
+ * Copyright (c) 2005, 2010 Andrea Bittau, University College London, and others
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
@@ -7,6 +7,7 @@
*
* Contributors:
* Andrea Bittau - initial API and implementation from the PsychoPath XPath 2.0
+ * Mukul Gandhi - bug 280798 - PsychoPath support for JDK 1.4
*******************************************************************************/
package org.eclipse.wst.xml.xpath2.processor.internal.ast;
@@ -36,7 +37,6 @@ public class SchemaElemTest extends KindTest {
*
* @return Result of Visitor operation.
*/
- @Override
public Object accept(XPathVisitor v) {
return v.visit(this);
}
@@ -50,18 +50,15 @@ public class SchemaElemTest extends KindTest {
return _arg;
}
- @Override
public AnyType createTestType(ResultSequence rs, StaticContext sc) {
// TODO Auto-generated method stub
return null;
}
- @Override
public boolean isWild() {
return false;
}
- @Override
public Class getXDMClassType() {
// TODO Auto-generated method stub
return null;
diff --git a/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/ast/SequenceType.java b/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/ast/SequenceType.java
index 4193587..e1d1ff7 100644
--- a/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/ast/SequenceType.java
+++ b/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/ast/SequenceType.java
@@ -8,6 +8,7 @@
* Contributors:
* Andrea Bittau - initial API and implementation from the PsychoPath XPath 2.0
* Jesper Steen Moller - bug 312191 - instance of test fails with partial matches
+ * Mukul Gandhi - bug 280798 - PsychoPath support for JDK 1.4
*******************************************************************************/
package org.eclipse.wst.xml.xpath2.processor.internal.ast;
@@ -58,7 +59,6 @@ public class SequenceType extends XPathNode {
*
* @return Result of Visitor operation.
*/
- @Override
public Object accept(XPathVisitor v) {
return v.visit(this);
}
diff --git a/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/ast/SingleType.java b/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/ast/SingleType.java
index d61d5c1..b9592c9 100644
--- a/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/ast/SingleType.java
+++ b/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/ast/SingleType.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2005, 2009 Andrea Bittau, University College London, and others
+ * Copyright (c) 2005, 2010 Andrea Bittau, University College London, and others
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
@@ -7,6 +7,7 @@
*
* Contributors:
* Andrea Bittau - initial API and implementation from the PsychoPath XPath 2.0
+ * Mukul Gandhi - bug 280798 - PsychoPath support for JDK 1.4
*******************************************************************************/
package org.eclipse.wst.xml.xpath2.processor.internal.ast;
@@ -46,7 +47,6 @@ public class SingleType extends XPathNode {
*
* @return Result of Visitor operation.
*/
- @Override
public Object accept(XPathVisitor v) {
return v.visit(this);
}
diff --git a/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/ast/StringLiteral.java b/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/ast/StringLiteral.java
index 706373b..93e4206 100644
--- a/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/ast/StringLiteral.java
+++ b/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/ast/StringLiteral.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2005, 2009 Andrea Bittau, University College London, and others
+ * Copyright (c) 2005, 2010 Andrea Bittau, University College London, and others
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
@@ -7,6 +7,7 @@
*
* Contributors:
* Andrea Bittau - initial API and implementation from the PsychoPath XPath 2.0
+ * Mukul Gandhi - bug 280798 - PsychoPath support for JDK 1.4
*******************************************************************************/
package org.eclipse.wst.xml.xpath2.processor.internal.ast;
@@ -41,7 +42,6 @@ public class StringLiteral extends Literal {
*
* @return Result of Visitor operation.
*/
- @Override
public Object accept(XPathVisitor v) {
return v.visit(this);
}
diff --git a/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/ast/SubExpr.java b/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/ast/SubExpr.java
index 4d5a549..116a511 100644
--- a/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/ast/SubExpr.java
+++ b/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/ast/SubExpr.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2005, 2009 Andrea Bittau, University College London, and others
+ * Copyright (c) 2005, 2010 Andrea Bittau, University College London, and others
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
@@ -7,6 +7,7 @@
*
* Contributors:
* Andrea Bittau - initial API and implementation from the PsychoPath XPath 2.0
+ * Mukul Gandhi - bug 280798 - PsychoPath support for JDK 1.4
*******************************************************************************/
package org.eclipse.wst.xml.xpath2.processor.internal.ast;
@@ -32,7 +33,6 @@ public class SubExpr extends BinExpr {
*
* @return Result of Visitor operation.
*/
- @Override
public Object accept(XPathVisitor v) {
return v.visit(this);
}
diff --git a/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/ast/TextTest.java b/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/ast/TextTest.java
index 1e2f7aa..a87bce2 100644
--- a/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/ast/TextTest.java
+++ b/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/ast/TextTest.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2005, 2009 Andrea Bittau, University College London, and others
+ * Copyright (c) 2005, 2010 Andrea Bittau, University College London, and others
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
@@ -8,6 +8,7 @@
* Contributors:
* Andrea Bittau - initial API and implementation from the PsychoPath XPath 2.0
* David Carver - bug 298535 - Attribute instance of improvements
+ * Mukul Gandhi - bug 280798 - PsychoPath support for JDK 1.4
*******************************************************************************/
package org.eclipse.wst.xml.xpath2.processor.internal.ast;
@@ -27,27 +28,22 @@ public class TextTest extends KindTest {
*
* @return Result of Visitor operation.
*/
- @Override
public Object accept(XPathVisitor v) {
return v.visit(this);
}
- @Override
public AnyType createTestType(ResultSequence rs, StaticContext sc) {
return null;
}
- @Override
public QName name() {
return null;
}
- @Override
public boolean isWild() {
return false;
}
- @Override
public Class getXDMClassType() {
return TextType.class;
}
diff --git a/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/ast/TreatAsExpr.java b/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/ast/TreatAsExpr.java
index d5083bd..5d8c87e 100644
--- a/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/ast/TreatAsExpr.java
+++ b/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/ast/TreatAsExpr.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2005, 2009 Andrea Bittau, University College London, and others
+ * Copyright (c) 2005, 2010 Andrea Bittau, University College London, and others
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
@@ -7,6 +7,7 @@
*
* Contributors:
* Andrea Bittau - initial API and implementation from the PsychoPath XPath 2.0
+ * Mukul Gandhi - bug 280798 - PsychoPath support for JDK 1.4
*******************************************************************************/
package org.eclipse.wst.xml.xpath2.processor.internal.ast;
@@ -33,7 +34,6 @@ public class TreatAsExpr extends BinExpr {
*
* @return Result of Visitor operation.
*/
- @Override
public Object accept(XPathVisitor v) {
return v.visit(this);
}
diff --git a/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/ast/UnionExpr.java b/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/ast/UnionExpr.java
index 01dc893..1eb094c 100644
--- a/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/ast/UnionExpr.java
+++ b/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/ast/UnionExpr.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2005, 2009 Andrea Bittau, University College London, and others
+ * Copyright (c) 2005, 2010 Andrea Bittau, University College London, and others
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
@@ -7,6 +7,7 @@
*
* Contributors:
* Andrea Bittau - initial API and implementation from the PsychoPath XPath 2.0
+ * Mukul Gandhi - bug 280798 - PsychoPath support for JDK 1.4
*******************************************************************************/
package org.eclipse.wst.xml.xpath2.processor.internal.ast;
@@ -34,7 +35,6 @@ public class UnionExpr extends BinExpr {
*
* @return Result of Visitor operation.
*/
- @Override
public Object accept(XPathVisitor v) {
return v.visit(this);
}
diff --git a/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/ast/VarRef.java b/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/ast/VarRef.java
index 14d22da..47c68ce 100644
--- a/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/ast/VarRef.java
+++ b/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/ast/VarRef.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2005, 2009 Andrea Bittau, University College London, and others
+ * Copyright (c) 2005, 2010 Andrea Bittau, University College London, and others
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
@@ -7,6 +7,7 @@
*
* Contributors:
* Andrea Bittau - initial API and implementation from the PsychoPath XPath 2.0
+ * Mukul Gandhi - bug 280798 - PsychoPath support for JDK 1.4
*******************************************************************************/
package org.eclipse.wst.xml.xpath2.processor.internal.ast;
@@ -35,7 +36,6 @@ public class VarRef extends PrimaryExpr {
*
* @return Result of Visitor operation.
*/
- @Override
public Object accept(XPathVisitor v) {
return v.visit(this);
}
diff --git a/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/ast/XPathExpr.java b/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/ast/XPathExpr.java
index c229d04..224bb97 100644
--- a/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/ast/XPathExpr.java
+++ b/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/ast/XPathExpr.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2005, 2009 Andrea Bittau, University College London, and others
+ * Copyright (c) 2005, 2010 Andrea Bittau, University College London, and others
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
@@ -7,6 +7,7 @@
*
* Contributors:
* Andrea Bittau - initial API and implementation from the PsychoPath XPath 2.0
+ * Mukul Gandhi - bug 280798 - PsychoPath support for JDK 1.4
*******************************************************************************/
package org.eclipse.wst.xml.xpath2.processor.internal.ast;
@@ -38,7 +39,6 @@ public class XPathExpr extends Expr {
*
* @return Result of Visitor operation.
*/
- @Override
public Object accept(XPathVisitor v) {
return v.visit(this);
}
diff --git a/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/AbstractRegExFunction.java b/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/AbstractRegExFunction.java
index 4fb3bb3..3312c9f 100644
--- a/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/AbstractRegExFunction.java
+++ b/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/AbstractRegExFunction.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2009 Standards for Technology in Automotive Retail and others.
+ * Copyright (c) 2009, 2010 Standards for Technology in Automotive Retail and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
@@ -7,6 +7,7 @@
*
* Contributors:
* David Carver - bug 262765 - initial API and implementation
+ * Mukul Gandhi - bug 280798 - PsychoPath support for JDK 1.4
*******************************************************************************/
package org.eclipse.wst.xml.xpath2.processor.internal.function;
@@ -28,8 +29,8 @@ public abstract class AbstractRegExFunction extends Function {
protected static boolean matches(String pattern, String flags, String src) {
boolean fnd = false;
- if (pattern.contains("-[")) {
- pattern = pattern.replace("-[", "&&[^");
+ if (pattern.indexOf("-[") != -1) {
+ pattern = pattern.replaceAll("\\-\\[", "&&[^");
}
Matcher m = compileAndExecute(pattern, flags, src);
while (m.find()) {
diff --git a/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/AbstractURIFunction.java b/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/AbstractURIFunction.java
index ac6990e..c1cc1d7 100644
--- a/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/AbstractURIFunction.java
+++ b/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/AbstractURIFunction.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2009 Standards for Technology in Automotive Retail and others
+ * Copyright (c) 2009, 2010 Standards for Technology in Automotive Retail and others
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
@@ -9,6 +9,7 @@
* David Carver - STAR - bug 262765 - renamed to correct function name.
* Jesper Steen Moeller - bug 285145 - implement full arity checking
* Jesper Steen Moeller - bug 285319 - fix UTF-8 escaping
+ * Mukul Gandhi - bug 280798 - PsychoPath support for JDK 1.4
*******************************************************************************/
package org.eclipse.wst.xml.xpath2.processor.internal.function;
@@ -161,7 +162,6 @@ public abstract class AbstractURIFunction extends Function {
super(name, min_arity, max_arity);
}
- @Override
public ResultSequence evaluate(Collection args) throws DynamicError {
// TODO Auto-generated method stub
return null;
diff --git a/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/Constructor.java b/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/Constructor.java
index 8e2fff6..2aa94ad 100644
--- a/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/Constructor.java
+++ b/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/Constructor.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2005, 2009 Andrea Bittau, University College London, and others
+ * Copyright (c) 2005, 2010 Andrea Bittau, University College London, and others
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
@@ -9,6 +9,7 @@
* Andrea Bittau - initial API and implementation from the PsychoPath XPath 2.0
* Mukul Gandhi - bug274784 - improvements to xs:boolean data type implementation
* Jesper Steen Moeller - bug 285145 - implement full arity checking
+ * Mukul Gandhi - bug 280798 - PsychoPath support for JDK 1.4
*******************************************************************************/
package org.eclipse.wst.xml.xpath2.processor.internal.function;
@@ -50,7 +51,6 @@ public class Constructor extends Function {
* Dynamic error.
* @return Result of evaluation.
*/
- @Override
public ResultSequence evaluate(Collection args) throws DynamicError {
assert args.size() >= min_arity() && args.size() <= max_arity();
diff --git a/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/FnAbs.java b/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/FnAbs.java
index dd41148..5a5361c 100644
--- a/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/FnAbs.java
+++ b/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/FnAbs.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2005, 2009 Andrea Bittau, University College London, and others
+ * Copyright (c) 2005, 2010 Andrea Bittau, University College London, and others
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
@@ -8,6 +8,7 @@
* Contributors:
* Andrea Bittau - initial API and implementation from the PsychoPath XPath 2.0
* Jesper Steen Moeller - bug 285145 - implement full arity checking
+ * Mukul Gandhi - bug 280798 - PsychoPath support for JDK 1.4
*******************************************************************************/
package org.eclipse.wst.xml.xpath2.processor.internal.function;
@@ -46,7 +47,6 @@ public class FnAbs extends Function {
* Dynamic error.
* @return Result of evaluation.
*/
- @Override
public ResultSequence evaluate(Collection args) throws DynamicError {
// 1 argument only!
assert args.size() >= min_arity() && args.size() <= max_arity();
@@ -90,7 +90,7 @@ public class FnAbs extends Function {
if (nt instanceof XSFloat) {
XSFloat dat = (XSFloat) nt;
if (dat.zero() || dat.negativeZero()) {
- rs.add(new XSFloat(Float.valueOf(0)));
+ rs.add(new XSFloat((new Float(0)).floatValue()));
return rs;
}
if (dat.infinite()) {
diff --git a/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/FnAdjustDateTimeToTimeZone.java b/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/FnAdjustDateTimeToTimeZone.java
index 7e8c0cd..1251c2a 100644
--- a/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/FnAdjustDateTimeToTimeZone.java
+++ b/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/FnAdjustDateTimeToTimeZone.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2009 Standards for Technology in Automotive Retail, and others
+ * Copyright (c) 2009, 2010 Standards for Technology in Automotive Retail, and others
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
@@ -7,6 +7,7 @@
*
* Contributors:
* David Carver - bug 280547 - initial API and implementation.
+ * Mukul Gandhi - bug 280798 - PsychoPath support for JDK 1.4
*******************************************************************************/
package org.eclipse.wst.xml.xpath2.processor.internal.function;
@@ -54,7 +55,6 @@ public class FnAdjustDateTimeToTimeZone extends Function {
* Dynamic error.
* @return Result of evaluation.
*/
- @Override
public ResultSequence evaluate(Collection args) throws DynamicError {
return adjustdateTime(args, dynamic_context());
}
diff --git a/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/FnAdjustDateToTimeZone.java b/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/FnAdjustDateToTimeZone.java
index 4fc4ef4..93ebff1 100644
--- a/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/FnAdjustDateToTimeZone.java
+++ b/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/FnAdjustDateToTimeZone.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2009 Standards for Technology in Automotive Retail, and others
+ * Copyright (c) 2009, 2010 Standards for Technology in Automotive Retail, and others
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
@@ -7,6 +7,7 @@
*
* Contributors:
* David Carver - bug 280547 - initial API and implementation.
+ * Mukul Gandhi - bug 280798 - PsychoPath support for JDK 1.4
*******************************************************************************/
package org.eclipse.wst.xml.xpath2.processor.internal.function;
@@ -54,7 +55,6 @@ public class FnAdjustDateToTimeZone extends Function {
* Dynamic error.
* @return Result of evaluation.
*/
- @Override
public ResultSequence evaluate(Collection args) throws DynamicError {
return adjustDate(args, dynamic_context());
}
diff --git a/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/FnAdjustTimeToTimeZone.java b/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/FnAdjustTimeToTimeZone.java
index 2ddadcd..4dd7695 100644
--- a/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/FnAdjustTimeToTimeZone.java
+++ b/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/FnAdjustTimeToTimeZone.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2009 Standards for Technology in Automotive Retail, and others
+ * Copyright (c) 2009, 2010 Standards for Technology in Automotive Retail, and others
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
@@ -7,6 +7,7 @@
*
* Contributors:
* David Carver - bug 280547 - initial API and implementation.
+ * Mukul Gandhi - bug 280798 - PsychoPath support for JDK 1.4
*******************************************************************************/
package org.eclipse.wst.xml.xpath2.processor.internal.function;
@@ -54,7 +55,6 @@ public class FnAdjustTimeToTimeZone extends Function {
* Dynamic error.
* @return Result of evaluation.
*/
- @Override
public ResultSequence evaluate(Collection args) throws DynamicError {
return adjustTime(args, dynamic_context());
}
diff --git a/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/FnAvg.java b/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/FnAvg.java
index c91942d..9f98796 100644
--- a/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/FnAvg.java
+++ b/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/FnAvg.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2005, 2009 Andrea Bittau, University College London, and others
+ * Copyright (c) 2005, 2010 Andrea Bittau, University College London, and others
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
@@ -13,6 +13,7 @@
* and formatting occur correctly.
* - fix fn:avg casting issues and divide by zero issues.
* Jesper Moller - bug 281028 - fix promotion rules for fn:avg
+ * Mukul Gandhi - bug 280798 - PsychoPath support for JDK 1.4
*******************************************************************************/
package org.eclipse.wst.xml.xpath2.processor.internal.function;
@@ -60,7 +61,6 @@ public class FnAvg extends Function {
* Dynamic error.
* @return Result of evaluation.
*/
- @Override
public ResultSequence evaluate(Collection args) throws DynamicError {
return avg(args);
}
diff --git a/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/FnBaseUri.java b/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/FnBaseUri.java
index 8d90451..0063993 100644
--- a/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/FnBaseUri.java
+++ b/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/FnBaseUri.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2005, 2009 Andrea Bittau, University College London, and others
+ * Copyright (c) 2005, 2010 Andrea Bittau, University College London, and others
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
@@ -9,6 +9,7 @@
* Andrea Bittau - initial API and implementation from the PsychoPath XPath 2.0
* Mukul Gandhi - bug274725 - implementation of base-uri function
* Jesper Steen Moeller - bug 285145 - implement full arity checking
+ * Mukul Gandhi - bug 280798 - PsychoPath support for JDK 1.4
*******************************************************************************/
package org.eclipse.wst.xml.xpath2.processor.internal.function;
@@ -55,7 +56,6 @@ public class FnBaseUri extends Function {
* Dynamic error.
* @return Result of evaluation.
*/
- @Override
public ResultSequence evaluate(Collection args) throws DynamicError {
return base_uri(args, dynamic_context());
}
diff --git a/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/FnBoolean.java b/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/FnBoolean.java
index 50b3e7a..e7c6ef2 100644
--- a/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/FnBoolean.java
+++ b/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/FnBoolean.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2005, 2009 Andrea Bittau, University College London, and others
+ * Copyright (c) 2005, 2010 Andrea Bittau, University College London, and others
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
@@ -10,6 +10,7 @@
* Jesper Steen Moeller - bug 285145 - implement full arity checking
* Jesper Steen Moller - bug 262765 - use correct 'effective boolean value'
* David Carver (STAR) - bug 262765 - fix checking of data types.
+ * Mukul Gandhi - bug 280798 - PsychoPath support for JDK 1.4
*******************************************************************************/
package org.eclipse.wst.xml.xpath2.processor.internal.function;
@@ -45,7 +46,6 @@ public class FnBoolean extends Function {
* argument expressions.
* @return Result of evaluation.
*/
- @Override
public ResultSequence evaluate(Collection args) throws DynamicError {
// 1 argument only!
assert args.size() >= min_arity() && args.size() <= max_arity();
diff --git a/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/FnCeiling.java b/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/FnCeiling.java
index 869e85d..14198db 100644
--- a/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/FnCeiling.java
+++ b/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/FnCeiling.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2005, 2009 Andrea Bittau, University College London, and others
+ * Copyright (c) 2005, 2010 Andrea Bittau, University College London, and others
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
@@ -8,6 +8,7 @@
* Contributors:
* Andrea Bittau - initial API and implementation from the PsychoPath XPath 2.0
* Jesper Steen Moeller - bug 285145 - implement full arity checking
+ * Mukul Gandhi - bug 280798 - PsychoPath support for JDK 1.4
*******************************************************************************/
package org.eclipse.wst.xml.xpath2.processor.internal.function;
@@ -47,7 +48,6 @@ public class FnCeiling extends Function {
* Dynamic error.
* @return Result of evaluation.
*/
- @Override
public ResultSequence evaluate(Collection args) throws DynamicError {
// 1 argument only!
assert args.size() >= min_arity() && args.size() <= max_arity();
diff --git a/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/FnCodepointEqual.java b/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/FnCodepointEqual.java
index 86fbc3e..ea60e00 100644
--- a/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/FnCodepointEqual.java
+++ b/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/FnCodepointEqual.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2009 Jesper Steen Moller, and others
+ * Copyright (c) 2009, 2010 Jesper Steen Moller, and others
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
@@ -7,6 +7,7 @@
*
* Contributors:
* Jesper Steen Moller - initial API and implementation
+ * Mukul Gandhi - bug 280798 - PsychoPath support for JDK 1.4
*******************************************************************************/
package org.eclipse.wst.xml.xpath2.processor.internal.function;
@@ -67,7 +68,6 @@ public class FnCodepointEqual extends Function {
* Dynamic error.
* @return The evaluation of the comparison of the arguments.
*/
- @Override
public ResultSequence evaluate(Collection args) throws DynamicError {
return codepoint_equals(args, dynamic_context());
}
diff --git a/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/FnCodepointsToString.java b/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/FnCodepointsToString.java
index f9c4951..97f7e0d 100644
--- a/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/FnCodepointsToString.java
+++ b/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/FnCodepointsToString.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2005, 2009 Andrea Bittau, University College London, and others
+ * Copyright (c) 2005, 2010 Andrea Bittau, University College London, and others
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
@@ -11,6 +11,7 @@
* David Carver - bug 282096 - improvements for surrogate handling
* Jesper Steen Moeller - bug 282096 - clean up string storage
* Jesper Steen Moeller - bug 280553 - further checks of legal Unicode codepoints.
+ * Mukul Gandhi - bug 280798 - PsychoPath support for JDK 1.4
*******************************************************************************/
package org.eclipse.wst.xml.xpath2.processor.internal.function;
@@ -21,6 +22,8 @@ import org.eclipse.wst.xml.xpath2.processor.ResultSequenceFactory;
import org.eclipse.wst.xml.xpath2.processor.internal.*;
import org.eclipse.wst.xml.xpath2.processor.internal.types.*;
+import com.ibm.icu.text.UTF16;
+
import java.util.*;
/**
@@ -58,7 +61,6 @@ public class FnCodepointsToString extends Function {
* Dynamic error.
* @return Result of evaluation.
*/
- @Override
public ResultSequence evaluate(Collection args) throws DynamicError {
return codepoints_to_string(args);
}
@@ -98,10 +100,8 @@ public class FnCodepointsToString extends Function {
codePointIndex++;
}
- // "new String(int[] codePoints, int offset, int count)" is a facility
- // introduced in Java 1.5
try {
- String str = new String(codePointArray, 0, codePointArray.length);
+ String str = UTF16.newString(codePointArray, 0, codePointArray.length);
rs.add(new XSString(str));
} catch (IllegalArgumentException iae) {
// This should be duoble checked above, but rather safe than sorry
diff --git a/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/FnCollection.java b/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/FnCollection.java
index 2716245..2839136 100644
--- a/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/FnCollection.java
+++ b/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/FnCollection.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2005, 2009 Andrea Bittau, University College London, and others
+ * Copyright (c) 2005, 2010 Andrea Bittau, University College London, and others
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
@@ -8,23 +8,29 @@
* Contributors:
* Andrea Bittau - initial API and implementation from the PsychoPath XPath 2.0
* Jesper Steen Moller - bug 281159 - fix document loading and resolving URIs
+ * Mukul Gandhi - bug 280798 - PsychoPath support for JDK 1.4
*******************************************************************************/
package org.eclipse.wst.xml.xpath2.processor.internal.function;
+import java.net.URI;
+import java.net.URISyntaxException;
+import java.util.ArrayList;
+import java.util.Collection;
+import java.util.Iterator;
+import java.util.List;
+import java.util.Map;
+
import org.eclipse.wst.xml.xpath2.processor.DynamicContext;
import org.eclipse.wst.xml.xpath2.processor.DynamicError;
import org.eclipse.wst.xml.xpath2.processor.ResultSequence;
import org.eclipse.wst.xml.xpath2.processor.ResultSequenceFactory;
-import org.eclipse.wst.xml.xpath2.processor.StaticContext;
-import org.eclipse.wst.xml.xpath2.processor.internal.*;
-import org.eclipse.wst.xml.xpath2.processor.internal.types.*;
+import org.eclipse.wst.xml.xpath2.processor.internal.SeqType;
+import org.eclipse.wst.xml.xpath2.processor.internal.types.DocType;
+import org.eclipse.wst.xml.xpath2.processor.internal.types.QName;
+import org.eclipse.wst.xml.xpath2.processor.internal.types.XSString;
import org.w3c.dom.Document;
-import java.net.URI;
-import java.net.URISyntaxException;
-import java.util.*;
-
/**
* Summary: This function takes an xs:string as argument and returns a sequence
* of nodes obtained by interpreting $arg as an xs:anyURI and resolving it
@@ -75,7 +81,6 @@ public class FnCollection extends Function {
* Dynamic error.
* @return Result of evaluation.
*/
- @Override
public ResultSequence evaluate(Collection args) throws DynamicError {
return collection(args, dynamic_context());
}
@@ -151,10 +156,10 @@ public class FnCollection extends Function {
private static ResultSequence getCollection(String uri, DynamicContext dc) {
ResultSequence rs = ResultSequenceFactory.create_new();
- Map<String, List<Document>> collectionMap = dc.get_collections();
- List<Document> docList = collectionMap.get(uri);
+ Map/*<String, List<Document>>*/ collectionMap = dc.get_collections();
+ List/*<Document>*/ docList = (List) collectionMap.get(uri);
for (int i = 0; i < docList.size(); i++) {
- Document doc = docList.get(i);
+ Document doc = (Document) docList.get(i);
rs.add(new DocType(doc, dc.getTypeModel(doc)));
}
return rs;
diff --git a/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/FnCompare.java b/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/FnCompare.java
index 441279b..93732b7 100644
--- a/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/FnCompare.java
+++ b/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/FnCompare.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2005, 2009 Andrea Bittau, University College London, and others
+ * Copyright (c) 2005, 2010 Andrea Bittau, University College London, and others
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
@@ -9,6 +9,7 @@
* Andrea Bittau - initial API and implementation from the PsychoPath XPath 2.0
* Jesper Steen Moeller - bug 285145 - implement full arity checking
* Jesper Steen Moeller - bug 280555 - Add pluggable collation support
+ * Mukul Gandhi - bug 280798 - PsychoPath support for JDK 1.4
*******************************************************************************/
package org.eclipse.wst.xml.xpath2.processor.internal.function;
@@ -72,7 +73,6 @@ public class FnCompare extends Function {
* Dynamic error.
* @return The evaluation of the comparison of the arguments.
*/
- @Override
public ResultSequence evaluate(Collection args) throws DynamicError {
return compare(args, dynamic_context());
}
diff --git a/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/FnConcat.java b/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/FnConcat.java
index 2b53fb6..e122881 100644
--- a/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/FnConcat.java
+++ b/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/FnConcat.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2005, 2009 Andrea Bittau, University College London, and others
+ * Copyright (c) 2005, 2010 Andrea Bittau, University College London, and others
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
@@ -8,6 +8,7 @@
* Contributors:
* Andrea Bittau - initial API and implementation from the PsychoPath XPath 2.0
* Jesper Steen Moeller - bug 285145 - implement full arity checking
+ * Mukul Gandhi - bug 280798 - PsychoPath support for JDK 1.4
*******************************************************************************/
package org.eclipse.wst.xml.xpath2.processor.internal.function;
@@ -59,7 +60,6 @@ public class FnConcat extends Function {
* Dynamic error.
* @return The evaluation of the concatenation of the arguments.
*/
- @Override
public ResultSequence evaluate(Collection args) throws DynamicError {
return concat(args);
}
diff --git a/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/FnContains.java b/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/FnContains.java
index f72a969..3f6e291 100644
--- a/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/FnContains.java
+++ b/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/FnContains.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2005, 2009 Andrea Bittau, University College London, and others
+ * Copyright (c) 2005, 2010 Andrea Bittau, University College London, and others
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
@@ -8,6 +8,7 @@
* Contributors:
* Andrea Bittau - initial API and implementation from the PsychoPath XPath 2.0
* David Carver - STAR - bug 262765 - check for empty string in second arg before first.
+ * Mukul Gandhi - bug 280798 - PsychoPath support for JDK 1.4
*******************************************************************************/
package org.eclipse.wst.xml.xpath2.processor.internal.function;
@@ -45,7 +46,6 @@ public class FnContains extends Function {
* Dynamic error.
* @return Result of evaluation.
*/
- @Override
public ResultSequence evaluate(Collection args) throws DynamicError {
return contains(args);
}
diff --git a/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/FnCount.java b/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/FnCount.java
index 9a28baa..98c6c0b 100644
--- a/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/FnCount.java
+++ b/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/FnCount.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2005, 2009 Andrea Bittau, University College London, and others
+ * Copyright (c) 2005, 2010 Andrea Bittau, University College London, and others
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
@@ -7,6 +7,7 @@
*
* Contributors:
* Andrea Bittau - initial API and implementation from the PsychoPath XPath 2.0
+ * Mukul Gandhi - bug 280798 - PsychoPath support for JDK 1.4
*******************************************************************************/
package org.eclipse.wst.xml.xpath2.processor.internal.function;
@@ -40,7 +41,6 @@ public class FnCount extends Function {
* Dynamic error.
* @return Result of evaluation.
*/
- @Override
public ResultSequence evaluate(Collection args) throws DynamicError {
return count(args);
}
diff --git a/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/FnCurrentDate.java b/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/FnCurrentDate.java
index 2502531..d5ef1ae 100644
--- a/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/FnCurrentDate.java
+++ b/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/FnCurrentDate.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2005, 2009 Andrea Bittau, University College London, and others
+ * Copyright (c) 2005, 2010 Andrea Bittau, University College London, and others
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
@@ -8,6 +8,7 @@
* Contributors:
* Andrea Bittau - initial API and implementation from the PsychoPath XPath 2.0
* Jesper S Moller - bug 286452 - always return the stable date/time from dynamic context
+ * Mukul Gandhi - bug 280798 - PsychoPath support for JDK 1.4
*******************************************************************************/
package org.eclipse.wst.xml.xpath2.processor.internal.function;
@@ -44,7 +45,6 @@ public class FnCurrentDate extends Function {
* Dynamic error.
* @return Result of evaluation.
*/
- @Override
public ResultSequence evaluate(Collection args) throws DynamicError {
return current_date(args, dynamic_context());
}
diff --git a/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/FnCurrentDateTime.java b/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/FnCurrentDateTime.java
index 26f94f6..1d3f94c 100644
--- a/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/FnCurrentDateTime.java
+++ b/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/FnCurrentDateTime.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2005, 2009 Andrea Bittau, University College London, and others
+ * Copyright (c) 2005, 2010 Andrea Bittau, University College London, and others
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
@@ -8,6 +8,7 @@
* Contributors:
* Andrea Bittau - initial API and implementation from the PsychoPath XPath 2.0
* Jesper S Moller - bug 286452 - always return the stable date/time from dynamic context
+ * Mukul Gandhi - bug 280798 - PsychoPath support for JDK 1.4
*******************************************************************************/
package org.eclipse.wst.xml.xpath2.processor.internal.function;
@@ -45,7 +46,6 @@ public class FnCurrentDateTime extends Function {
* Dynamic error.
* @return Result of evaluation.
*/
- @Override
public ResultSequence evaluate(Collection args) throws DynamicError {
return current_dateTime(args, dynamic_context());
}
diff --git a/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/FnCurrentTime.java b/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/FnCurrentTime.java
index d5a9dd9..d6b16e2 100644
--- a/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/FnCurrentTime.java
+++ b/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/FnCurrentTime.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2005, 2009 Andrea Bittau, University College London, and others
+ * Copyright (c) 2005, 2010 Andrea Bittau, University College London, and others
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
@@ -8,6 +8,7 @@
* Contributors:
* Andrea Bittau - initial API and implementation from the PsychoPath XPath 2.0
* Jesper S Moller - bug 286452 - always return the stable date/time from dynamic context
+ * Mukul Gandhi - bug 280798 - PsychoPath support for JDK 1.4
*******************************************************************************/
package org.eclipse.wst.xml.xpath2.processor.internal.function;
@@ -44,7 +45,6 @@ public class FnCurrentTime extends Function {
* Dynamic error.
* @return Result of evaluation.
*/
- @Override
public ResultSequence evaluate(Collection args) throws DynamicError {
return current_time(args, dynamic_context());
}
diff --git a/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/FnData.java b/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/FnData.java
index f4a6ddb..9b8f625 100644
--- a/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/FnData.java
+++ b/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/FnData.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2005, 2009 Andrea Bittau, University College London, and others
+ * Copyright (c) 2005, 2010 Andrea Bittau, University College London, and others
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
@@ -10,6 +10,7 @@
* Mukul Gandhi - bug 276134 - improvements to schema aware primitive type support
* for attribute/element nodes
* Jesper Steen Moeller - bug 285145 - implement full arity checking
+ * Mukul Gandhi - bug 280798 - PsychoPath support for JDK 1.4
*******************************************************************************/
package org.eclipse.wst.xml.xpath2.processor.internal.function;
@@ -48,7 +49,6 @@ public class FnData extends Function {
* argument expressions.
* @return Result of evaluation.
*/
- @Override
public ResultSequence evaluate(Collection args) {
// 1 argument only!
assert args.size() >= min_arity() && args.size() <= max_arity();
diff --git a/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/FnDateTime.java b/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/FnDateTime.java
index ceb5e9e..68b7646 100644
--- a/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/FnDateTime.java
+++ b/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/FnDateTime.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2009 Mukul Gandhi, and others
+ * Copyright (c) 2009, 2010 Mukul Gandhi, and others
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
@@ -8,6 +8,7 @@
* Contributors:
* Mukul Gandhi - bug 281822 - initial API and implementation
* David Carver - bug 282223 - implementation of xs:duration
+ * Mukul Gandhi - bug 280798 - PsychoPath support for JDK 1.4
*******************************************************************************/
package org.eclipse.wst.xml.xpath2.processor.internal.function;
@@ -45,7 +46,6 @@ public class FnDateTime extends Function {
* Dynamic error.
* @return Result of evaluation.
*/
- @Override
public ResultSequence evaluate(Collection args) throws DynamicError {
return dateTime(args, static_context());
}
@@ -85,7 +85,7 @@ public class FnDateTime extends Function {
cal.set(param1.year(), param1.month() - 1, param1.day());
cal.set(Calendar.HOUR_OF_DAY, param2.hour());
cal.set(Calendar.MINUTE, param2.minute());
- cal.set(Calendar.SECOND, (Double.valueOf(Math.floor(param2.second())).intValue()));
+ cal.set(Calendar.SECOND, (new Double(Math.floor(param2.second())).intValue()));
cal.set(Calendar.MILLISECOND, 0);
XSDuration dateTimeZone = param1.tz();
diff --git a/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/FnDayFromDate.java b/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/FnDayFromDate.java
index 90b31cb..392ea71 100644
--- a/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/FnDayFromDate.java
+++ b/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/FnDayFromDate.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2005, 2009 Andrea Bittau, University College London, and others
+ * Copyright (c) 2005, 2010 Andrea Bittau, University College London, and others
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
@@ -7,6 +7,7 @@
*
* Contributors:
* Andrea Bittau - initial API and implementation from the PsychoPath XPath 2.0
+ * Mukul Gandhi - bug 280798 - PsychoPath support for JDK 1.4
*******************************************************************************/
package org.eclipse.wst.xml.xpath2.processor.internal.function;
@@ -44,7 +45,6 @@ public class FnDayFromDate extends Function {
* Dynamic error.
* @return Result of evaluation.
*/
- @Override
public ResultSequence evaluate(Collection args) throws DynamicError {
return day_from_date(args);
}
diff --git a/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/FnDayFromDateTime.java b/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/FnDayFromDateTime.java
index d3e3d68..debb060 100644
--- a/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/FnDayFromDateTime.java
+++ b/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/FnDayFromDateTime.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2005, 2009 Andrea Bittau, University College London, and others
+ * Copyright (c) 2005, 2010 Andrea Bittau, University College London, and others
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
@@ -7,6 +7,7 @@
*
* Contributors:
* Andrea Bittau - initial API and implementation from the PsychoPath XPath 2.0
+ * Mukul Gandhi - bug 280798 - PsychoPath support for JDK 1.4
*******************************************************************************/
package org.eclipse.wst.xml.xpath2.processor.internal.function;
@@ -44,7 +45,6 @@ public class FnDayFromDateTime extends Function {
* Dynamic error.
* @return Result of evaluation.
*/
- @Override
public ResultSequence evaluate(Collection args) throws DynamicError {
return day_from_date_time(args);
}
diff --git a/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/FnDaysFromDuration.java b/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/FnDaysFromDuration.java
index 4383451..884c4ca 100644
--- a/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/FnDaysFromDuration.java
+++ b/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/FnDaysFromDuration.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2005, 2009 Andrea Bittau, University College London, and others
+ * Copyright (c) 2005, 2010 Andrea Bittau, University College London, and others
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
@@ -10,6 +10,7 @@
* Mukul Gandhi - bug 273760 - wrong namespace for functions and data types
* David Carver - bug 282223 - implementation of xs:duration.
* David Carver (STAR) - bug 262765 - fixed expected xs:duration argument.
+ * Mukul Gandhi - bug 280798 - PsychoPath support for JDK 1.4
*******************************************************************************/
package org.eclipse.wst.xml.xpath2.processor.internal.function;
@@ -47,7 +48,6 @@ public class FnDaysFromDuration extends Function {
* Dynamic error.
* @return Result of evaluation.
*/
- @Override
public ResultSequence evaluate(Collection args) throws DynamicError {
return days_from_duration(args);
}
diff --git a/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/FnDeepEqual.java b/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/FnDeepEqual.java
index ab3b089..51c1007 100644
--- a/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/FnDeepEqual.java
+++ b/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/FnDeepEqual.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2005, 2009 Andrea Bittau, University College London, and others
+ * Copyright (c) 2005, 2010 Andrea Bittau, University College London, and others
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
@@ -8,6 +8,7 @@
* Contributors:
* Andrea Bittau - initial API and implementation from the PsychoPath XPath 2.0
* Jesper Moller - bug 280555 - Add pluggable collation support
+ * Mukul Gandhi - bug 280798 - PsychoPath support for JDK 1.4
*******************************************************************************/
package org.eclipse.wst.xml.xpath2.processor.internal.function;
@@ -49,7 +50,6 @@ public class FnDeepEqual extends AbstractCollationEqualFunction {
* Dynamic error.
* @return Result of evaluation.
*/
- @Override
public ResultSequence evaluate(Collection args) throws DynamicError {
return deep_equal(args, dynamic_context());
}
diff --git a/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/FnDefaultCollation.java b/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/FnDefaultCollation.java
index 5947096..1bbcfc6 100644
--- a/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/FnDefaultCollation.java
+++ b/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/FnDefaultCollation.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2009 Standards for Technology in Automotive Retail and others.
+ * Copyright (c) 2009, 2010 Standards for Technology in Automotive Retail and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
@@ -9,6 +9,7 @@
* David Carver (STAR) - initial API and implementation
* Jesper Steen Moeller - bug 285145 - implement full arity checking
* Jesper Steen Moeller - bug 280555 - Add pluggable collation support
+ * Mukul Gandhi - bug 280798 - PsychoPath support for JDK 1.4
*******************************************************************************/
package org.eclipse.wst.xml.xpath2.processor.internal.function;
@@ -47,7 +48,6 @@ public class FnDefaultCollation extends Function {
super(new QName("default-collation"), 0);
}
- @Override
public ResultSequence evaluate(Collection args) throws DynamicError {
assert args.size() >= min_arity() && args.size() <= max_arity();
ResultSequence rs = ResultSequenceFactory.create_new();
diff --git a/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/FnDoc.java b/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/FnDoc.java
index 00dca91..4696150 100644
--- a/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/FnDoc.java
+++ b/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/FnDoc.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2005, 2009 Andrea Bittau, University College London, and others
+ * Copyright (c) 2005, 2010 Andrea Bittau, University College London, and others
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
@@ -8,6 +8,7 @@
* Contributors:
* Andrea Bittau - initial API and implementation from the PsychoPath XPath 2.0
* Jesper Steen Moller - bug 281159 - fix document loading and resolving URIs
+ * Mukul Gandhi - bug 280798 - PsychoPath support for JDK 1.4
*******************************************************************************/
package org.eclipse.wst.xml.xpath2.processor.internal.function;
@@ -53,7 +54,6 @@ public class FnDoc extends Function {
* Dynamic error.
* @return Result of evaluation.
*/
- @Override
public ResultSequence evaluate(Collection args) throws DynamicError {
return doc(args, dynamic_context());
}
diff --git a/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/FnDocumentUri.java b/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/FnDocumentUri.java
index 42fc878..975c8a5 100644
--- a/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/FnDocumentUri.java
+++ b/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/FnDocumentUri.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2005, 2009 Andrea Bittau, University College London, and others
+ * Copyright (c) 2005, 2010 Andrea Bittau, University College London, and others
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
@@ -9,6 +9,7 @@
* Andrea Bittau - initial API and implementation from the PsychoPath XPath 2.0
* Mukul Gandhi - bug274731 - implementation of fn:document-uri function
* Jesper Moller- bug 281159 - fix document loading and resolving URIs
+ * Mukul Gandhi - bug 280798 - PsychoPath support for JDK 1.4
*******************************************************************************/
package org.eclipse.wst.xml.xpath2.processor.internal.function;
@@ -48,7 +49,6 @@ public class FnDocumentUri extends Function {
* Dynamic error.
* @return Result of evaluation.
*/
- @Override
public ResultSequence evaluate(Collection args) throws DynamicError {
return document_uri(args);
}
diff --git a/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/FnEmpty.java b/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/FnEmpty.java
index 46c189d..8d2be42 100644
--- a/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/FnEmpty.java
+++ b/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/FnEmpty.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2005, 2009 Andrea Bittau, University College London, and others
+ * Copyright (c) 2005, 2010 Andrea Bittau, University College London, and others
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
@@ -8,6 +8,7 @@
* Contributors:
* Andrea Bittau - initial API and implementation from the PsychoPath XPath 2.0
* Jesper Steen Moeller - bug 285145 - implement full arity checking
+ * Mukul Gandhi - bug 280798 - PsychoPath support for JDK 1.4
*******************************************************************************/
package org.eclipse.wst.xml.xpath2.processor.internal.function;
@@ -40,7 +41,6 @@ public class FnEmpty extends Function {
* Dynamic error.
* @return Result of evaluation.
*/
- @Override
public ResultSequence evaluate(Collection args) throws DynamicError {
return empty(args);
}
diff --git a/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/FnEncodeForURI.java b/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/FnEncodeForURI.java
index 13645ce..a157bb1 100644
--- a/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/FnEncodeForURI.java
+++ b/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/FnEncodeForURI.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2009 David Carver, University College London, and others
+ * Copyright (c) 2009, 2010 David Carver, University College London, and others
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
@@ -8,6 +8,7 @@
* Contributors:
* David Carver - STAR - bug 285321 - initial api and implementation
* Jesper Steen Moeller - bug 285319 - fix UTF-8 escaping
+ * Mukul Gandhi - bug 280798 - PsychoPath support for JDK 1.4
*******************************************************************************/
package org.eclipse.wst.xml.xpath2.processor.internal.function;
@@ -67,7 +68,6 @@ public class FnEncodeForURI extends AbstractURIFunction {
* @return The evaluation of the arguments after application of the URI
* escaping rules.
*/
- @Override
public ResultSequence evaluate(Collection args) throws DynamicError {
return escape_uri(args, true, true);
}
diff --git a/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/FnEndsWith.java b/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/FnEndsWith.java
index 5251723..b3dbcdc 100644
--- a/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/FnEndsWith.java
+++ b/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/FnEndsWith.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2005, 2009 Andrea Bittau, University College London, and others
+ * Copyright (c) 2005, 2010 Andrea Bittau, University College London, and others
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
@@ -7,6 +7,7 @@
*
* Contributors:
* Andrea Bittau - initial API and implementation from the PsychoPath XPath 2.0
+ * Mukul Gandhi - bug 280798 - PsychoPath support for JDK 1.4
*******************************************************************************/
package org.eclipse.wst.xml.xpath2.processor.internal.function;
@@ -43,7 +44,6 @@ public class FnEndsWith extends Function {
* Dynamic error.
* @return Result of evaluation.
*/
- @Override
public ResultSequence evaluate(Collection args) throws DynamicError {
return ends_with(args);
}
diff --git a/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/FnError.java b/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/FnError.java
index c9b83ee..bc8642c 100644
--- a/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/FnError.java
+++ b/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/FnError.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2005, 2009 Andrea Bittau, University College London, and others
+ * Copyright (c) 2005, 2010 Andrea Bittau, University College London, and others
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
@@ -8,6 +8,7 @@
* Contributors:
* Andrea Bittau - initial API and implementation from the PsychoPath XPath 2.0
* Jesper Steen Moeller - bug 28149 - add remaining fn:error functionality
+ * Mukul Gandhi - bug 280798 - PsychoPath support for JDK 1.4
*******************************************************************************/
package org.eclipse.wst.xml.xpath2.processor.internal.function;
@@ -51,7 +52,6 @@ public class FnError extends Function {
* Dynamic error.
* @return Result of evaluation.
*/
- @Override
public ResultSequence evaluate(Collection args) throws DynamicError {
// Differentiate depending on whether there is one (required) argument or whatever.
Collection cargs = Function.convert_arguments(args, args.size() == 1 ? expected_args1() : expected_args());
diff --git a/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/FnEscapeHTMLUri.java b/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/FnEscapeHTMLUri.java
index 9a25268..abc1fa7 100644
--- a/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/FnEscapeHTMLUri.java
+++ b/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/FnEscapeHTMLUri.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2005, 2009 Andrea Bittau, University College London, and others
+ * Copyright (c) 2005, 2010 Andrea Bittau, University College London, and others
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
@@ -10,6 +10,7 @@
* David Carver - STAR - bug 262765 - renamed to correct function name.
* Jesper Steen Moeller - bug 285145 - implement full arity checking
* Jesper Steen Moeller - bug 285319 - fix UTF-8 escaping, and fix arity bug
+ * Mukul Gandhi - bug 280798 - PsychoPath support for JDK 1.4
*******************************************************************************/
package org.eclipse.wst.xml.xpath2.processor.internal.function;
@@ -103,7 +104,6 @@ public class FnEscapeHTMLUri extends AbstractURIFunction {
* @return The evaluation of the arguments after application of the URI
* escaping rules.
*/
- @Override
public ResultSequence evaluate(Collection args) throws DynamicError {
return escape_uri(args, false, false);
}
diff --git a/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/FnExactlyOne.java b/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/FnExactlyOne.java
index 79d0d85..284ed94 100644
--- a/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/FnExactlyOne.java
+++ b/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/FnExactlyOne.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2005, 2009 Andrea Bittau, University College London, and others
+ * Copyright (c) 2005, 2010 Andrea Bittau, University College London, and others
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
@@ -7,6 +7,7 @@
*
* Contributors:
* Andrea Bittau - initial API and implementation from the PsychoPath XPath 2.0
+ * Mukul Gandhi - bug 280798 - PsychoPath support for JDK 1.4
*******************************************************************************/
package org.eclipse.wst.xml.xpath2.processor.internal.function;
@@ -38,7 +39,6 @@ public class FnExactlyOne extends Function {
* Dynamic error.
* @return Result of evaluation.
*/
- @Override
public ResultSequence evaluate(Collection args) throws DynamicError {
return exactly_one(args);
}
diff --git a/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/FnExists.java b/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/FnExists.java
index d020396..5a96a96 100644
--- a/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/FnExists.java
+++ b/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/FnExists.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2005, 2009 Andrea Bittau, University College London, and others
+ * Copyright (c) 2005, 2010 Andrea Bittau, University College London, and others
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
@@ -7,6 +7,7 @@
*
* Contributors:
* Andrea Bittau - initial API and implementation from the PsychoPath XPath 2.0
+ * Mukul Gandhi - bug 280798 - PsychoPath support for JDK 1.4
*******************************************************************************/
package org.eclipse.wst.xml.xpath2.processor.internal.function;
@@ -39,7 +40,6 @@ public class FnExists extends Function {
* Dynamic error.
* @return Result of evaluation.
*/
- @Override
public ResultSequence evaluate(Collection args) throws DynamicError {
return exists(args);
}
diff --git a/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/FnFalse.java b/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/FnFalse.java
index 0ba9b5d..5e44c56 100644
--- a/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/FnFalse.java
+++ b/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/FnFalse.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2005, 2009 Andrea Bittau, University College London, and others
+ * Copyright (c) 2005, 2010 Andrea Bittau, University College London, and others
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
@@ -7,6 +7,7 @@
*
* Contributors:
* Andrea Bittau - initial API and implementation from the PsychoPath XPath 2.0
+ * Mukul Gandhi - bug 280798 - PsychoPath support for JDK 1.4
*******************************************************************************/
package org.eclipse.wst.xml.xpath2.processor.internal.function;
@@ -38,7 +39,6 @@ public class FnFalse extends Function {
* Dynamic error.
* @return Result of evaluation.
*/
- @Override
public ResultSequence evaluate(Collection args) throws DynamicError {
return fn_false(args);
}
diff --git a/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/FnFloor.java b/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/FnFloor.java
index 76659c1..fd89eb3 100644
--- a/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/FnFloor.java
+++ b/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/FnFloor.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2005, 2009 Andrea Bittau, University College London, and others
+ * Copyright (c) 2005, 2010 Andrea Bittau, University College London, and others
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
@@ -8,6 +8,7 @@
* Contributors:
* Andrea Bittau - initial API and implementation from the PsychoPath XPath 2.0
* Jesper Steen Moeller - bug 285145 - implement full arity checking
+ * Mukul Gandhi - bug 280798 - PsychoPath support for JDK 1.4
*******************************************************************************/
package org.eclipse.wst.xml.xpath2.processor.internal.function;
@@ -46,7 +47,6 @@ public class FnFloor extends Function {
* Dynamic error.
* @return Result of evaluation.
*/
- @Override
public ResultSequence evaluate(Collection args) throws DynamicError {
// 1 argument only!
assert args.size() >= min_arity() && args.size() <= max_arity();
diff --git a/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/FnHoursFromDateTime.java b/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/FnHoursFromDateTime.java
index a4cb6b8..63b76ad 100644
--- a/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/FnHoursFromDateTime.java
+++ b/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/FnHoursFromDateTime.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2005, 2009 Andrea Bittau, University College London, and others
+ * Copyright (c) 2005, 2010 Andrea Bittau, University College London, and others
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
@@ -7,6 +7,7 @@
*
* Contributors:
* Andrea Bittau - initial API and implementation from the PsychoPath XPath 2.0
+ * Mukul Gandhi - bug 280798 - PsychoPath support for JDK 1.4
*******************************************************************************/
package org.eclipse.wst.xml.xpath2.processor.internal.function;
@@ -44,7 +45,6 @@ public class FnHoursFromDateTime extends Function {
* Dynamic error.
* @return Result of evaluation.
*/
- @Override
public ResultSequence evaluate(Collection args) throws DynamicError {
return hours_from_date_time(args);
}
diff --git a/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/FnHoursFromDuration.java b/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/FnHoursFromDuration.java
index 855a712..06f9af8 100644
--- a/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/FnHoursFromDuration.java
+++ b/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/FnHoursFromDuration.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2005, 2009 Andrea Bittau, University College London, and others
+ * Copyright (c) 2005, 2010 Andrea Bittau, University College London, and others
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
@@ -10,6 +10,7 @@
* Mukul Gandhi - bug 273760 - wrong namespace for functions and data types
* David Carver - bug 282223 - implementation of xs:duration
* David Carver (STAR) - bug 262765 - fixed expected xs:duration argument.
+ * Mukul Gandhi - bug 280798 - PsychoPath support for JDK 1.4
*******************************************************************************/
package org.eclipse.wst.xml.xpath2.processor.internal.function;
@@ -47,7 +48,6 @@ public class FnHoursFromDuration extends Function {
* Dynamic error.
* @return Result of evaluation.
*/
- @Override
public ResultSequence evaluate(Collection args) throws DynamicError {
return hours_from_duration(args);
}
diff --git a/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/FnHoursFromTime.java b/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/FnHoursFromTime.java
index f0929e9..3342e18 100644
--- a/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/FnHoursFromTime.java
+++ b/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/FnHoursFromTime.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2005, 2009 Andrea Bittau, University College London, and others
+ * Copyright (c) 2005, 2010 Andrea Bittau, University College London, and others
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
@@ -7,6 +7,7 @@
*
* Contributors:
* Andrea Bittau - initial API and implementation from the PsychoPath XPath 2.0
+ * Mukul Gandhi - bug 280798 - PsychoPath support for JDK 1.4
*******************************************************************************/
package org.eclipse.wst.xml.xpath2.processor.internal.function;
@@ -44,7 +45,6 @@ public class FnHoursFromTime extends Function {
* Dynamic error.
* @return Result of evaluation.
*/
- @Override
public ResultSequence evaluate(Collection args) throws DynamicError {
return hours_from_time(args);
}
diff --git a/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/FnID.java b/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/FnID.java
index ec025d2..328d4b7 100644
--- a/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/FnID.java
+++ b/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/FnID.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2009 Standard for Technology in Automotive Retail, and others
+ * Copyright (c) 2009, 2010 Standard for Technology in Automotive Retail, and others
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
@@ -8,6 +8,7 @@
* Contributors:
* David Carver (STAR) - bug 281168 - initial API and implementation
* David Carver - bug 281186 - implementation of fn:id and fn:idref
+ * Mukul Gandhi - bug 280798 - PsychoPath support for JDK 1.4
*******************************************************************************/
package org.eclipse.wst.xml.xpath2.processor.internal.function;
@@ -49,7 +50,6 @@ public class FnID extends Function {
* Dynamic error.
* @return Result of evaluation.
*/
- @Override
public ResultSequence evaluate(Collection args) throws DynamicError {
return id(args, dynamic_context());
}
diff --git a/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/FnIDREF.java b/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/FnIDREF.java
index fb4d372..5b0329b 100644
--- a/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/FnIDREF.java
+++ b/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/FnIDREF.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2009 Standard for Technology in Automotive Retail, and others
+ * Copyright (c) 2009, 2010 Standard for Technology in Automotive Retail, and others
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
@@ -8,6 +8,7 @@
* Contributors:
* David Carver (STAR) - bug 281168 - initial API and implementation
* David Carver - bug 281186 - implementation of fn:id and fn:idref
+ * Mukul Gandhi - bug 280798 - PsychoPath support for JDK 1.4
*******************************************************************************/
package org.eclipse.wst.xml.xpath2.processor.internal.function;
@@ -49,7 +50,6 @@ public class FnIDREF extends Function {
* Dynamic error.
* @return Result of evaluation.
*/
- @Override
public ResultSequence evaluate(Collection args) throws DynamicError {
return idref(args, dynamic_context(), dynamic_context());
}
diff --git a/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/FnImplicitTimezone.java b/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/FnImplicitTimezone.java
index 3e78493..347c61d 100644
--- a/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/FnImplicitTimezone.java
+++ b/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/FnImplicitTimezone.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2005, 2009 Andrea Bittau, University College London, and others
+ * Copyright (c) 2005, 2010 Andrea Bittau, University College London, and others
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
@@ -9,6 +9,7 @@
* Andrea Bittau - initial API and implementation from the PsychoPath XPath 2.0
* Mukul Gandhi - bug 273760 - wrong namespace for functions and data types
* David Carver - bug 282223 - implementation of xs:duration
+ * Mukul Gandhi - bug 280798 - PsychoPath support for JDK 1.4
*******************************************************************************/
package org.eclipse.wst.xml.xpath2.processor.internal.function;
@@ -43,7 +44,6 @@ public class FnImplicitTimezone extends Function {
* Dynamic error.
* @return Result of evaluation.
*/
- @Override
public ResultSequence evaluate(Collection args) throws DynamicError {
return implicit_timezone(args, dynamic_context());
}
diff --git a/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/FnInScopePrefixes.java b/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/FnInScopePrefixes.java
index f709d78..2dc2432 100644
--- a/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/FnInScopePrefixes.java
+++ b/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/FnInScopePrefixes.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2009 Standards for Technology in Automotive Retail and others
+ * Copyright (c) 2009, 2010 Standards for Technology in Automotive Retail and others
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
@@ -7,6 +7,7 @@
*
* Contributors:
* David Carver - initial API and implementation
+ * Mukul Gandhi - bug 280798 - PsychoPath support for JDK 1.4
*******************************************************************************/
package org.eclipse.wst.xml.xpath2.processor.internal.function;
@@ -47,7 +48,6 @@ public class FnInScopePrefixes extends Function {
* Dynamic error.
* @return Result of evaluation.
*/
- @Override
public ResultSequence evaluate(Collection args) throws DynamicError {
return inScopePrefixes(args, _fl.dynamic_context());
}
diff --git a/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/FnIndexOf.java b/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/FnIndexOf.java
index e0d8649..67838a6 100644
--- a/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/FnIndexOf.java
+++ b/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/FnIndexOf.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2005, 2009 Andrea Bittau, University College London, and others
+ * Copyright (c) 2005, 2010 Andrea Bittau, University College London, and others
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
@@ -9,6 +9,7 @@
* Andrea Bittau - initial API and implementation from the PsychoPath XPath 2.0
* Jesper Moller - bug 280555 - Add pluggable collation support
* David Carver (STAR) - bug 262765 - fixed collation and comparison issues.
+ * Mukul Gandhi - bug 280798 - PsychoPath support for JDK 1.4
*******************************************************************************/
package org.eclipse.wst.xml.xpath2.processor.internal.function;
@@ -57,7 +58,6 @@ public class FnIndexOf extends AbstractCollationEqualFunction {
* Dynamic error.
* @return Result of evaluation.
*/
- @Override
public ResultSequence evaluate(Collection args) throws DynamicError {
return index_of(args, dynamic_context());
}
diff --git a/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/FnInsertBefore.java b/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/FnInsertBefore.java
index 74465b0..3b0a165 100644
--- a/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/FnInsertBefore.java
+++ b/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/FnInsertBefore.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2005, 2009 Andrea Bittau, University College London, and others
+ * Copyright (c) 2005, 2010 Andrea Bittau, University College London, and others
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
@@ -8,6 +8,7 @@
* Contributors:
* Andrea Bittau - initial API and implementation from the PsychoPath XPath 2.0
* Mukul Gandhi - bug 274805 - improvements to xs:integer data type
+ * Mukul Gandhi - bug 280798 - PsychoPath support for JDK 1.4
*******************************************************************************/
package org.eclipse.wst.xml.xpath2.processor.internal.function;
@@ -41,7 +42,6 @@ public class FnInsertBefore extends Function {
* Dynamic error.
* @return Result of evaluation.
*/
- @Override
public ResultSequence evaluate(Collection args) throws DynamicError {
return insert_before(args);
}
diff --git a/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/FnIriToURI.java b/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/FnIriToURI.java
index 5feab4f..5c89240 100644
--- a/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/FnIriToURI.java
+++ b/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/FnIriToURI.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2009 Standards for Technology in Automotive Retail and others
+ * Copyright (c) 2009, 2010 Standards for Technology in Automotive Retail and others
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
@@ -9,6 +9,7 @@
* David Carver - STAR - bug 262765 - renamed to correct function name.
* Jesper Steen Moeller - bug 285145 - implement full arity checking
* Jesper Steen Moeller - bug 285319 - fix UTF-8 escaping
+ * Mukul Gandhi - bug 280798 - PsychoPath support for JDK 1.4
*******************************************************************************/
package org.eclipse.wst.xml.xpath2.processor.internal.function;
@@ -35,7 +36,6 @@ public class FnIriToURI extends AbstractURIFunction {
* @return The evaluation of the arguments after application of the URI
* escaping rules.
*/
- @Override
public ResultSequence evaluate(Collection args) throws DynamicError {
return escape_uri(args, false, true);
}
diff --git a/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/FnLang.java b/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/FnLang.java
index f82fbbc..0d4d447 100644
--- a/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/FnLang.java
+++ b/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/FnLang.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2005, 2009 Andrea Bittau, University College London, and others
+ * Copyright (c) 2005, 2010 Andrea Bittau, University College London, and others
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
@@ -10,6 +10,7 @@
* David Carver (STAR) - bug 280972 - fix fn:lang implementation so it matches spec.
* Jesper Steen Moeller - bug 285145 - implement full arity checking
* David Carver (STAR) - bug 262765 - correct invalidType to throw XPTY0004 instead of FORG0006
+ * Mukul Gandhi - bug 280798 - PsychoPath support for JDK 1.4
*******************************************************************************/
package org.eclipse.wst.xml.xpath2.processor.internal.function;
@@ -53,7 +54,6 @@ public class FnLang extends Function {
* Dynamic error.
* @return Result of evaluation.
*/
- @Override
public ResultSequence evaluate(Collection args) throws DynamicError {
return lang(args, dynamic_context());
}
diff --git a/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/FnLast.java b/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/FnLast.java
index 70fcf69..37c8ea7 100644
--- a/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/FnLast.java
+++ b/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/FnLast.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2005, 2009 Andrea Bittau, University College London, and others
+ * Copyright (c) 2005, 2010 Andrea Bittau, University College London, and others
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
@@ -7,6 +7,7 @@
*
* Contributors:
* Andrea Bittau - initial API and implementation from the PsychoPath XPath 2.0
+ * Mukul Gandhi - bug 280798 - PsychoPath support for JDK 1.4
*******************************************************************************/
package org.eclipse.wst.xml.xpath2.processor.internal.function;
@@ -42,7 +43,6 @@ public class FnLast extends Function {
* Dynamic error.
* @return Result of evaluation.
*/
- @Override
public ResultSequence evaluate(Collection args) throws DynamicError {
return last(args, dynamic_context());
}
diff --git a/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/FnLocalName.java b/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/FnLocalName.java
index 1482e81..ca72629 100644
--- a/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/FnLocalName.java
+++ b/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/FnLocalName.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2005, 2009 Andrea Bittau, University College London, and others
+ * Copyright (c) 2005, 2010 Andrea Bittau, University College London, and others
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
@@ -9,6 +9,7 @@
* Andrea Bittau - initial API and implementation from the PsychoPath XPath 2.0
* David Carver - STAR - bug 262765 - fixed implementation of fn:local-name according to spec.
* Jesper Steen Moeller - bug 285145 - implement full arity checking
+ * Mukul Gandhi - bug 280798 - PsychoPath support for JDK 1.4
*******************************************************************************/
package org.eclipse.wst.xml.xpath2.processor.internal.function;
@@ -45,7 +46,6 @@ public class FnLocalName extends Function {
* Dynamic error.
* @return Result of evaluation.
*/
- @Override
public ResultSequence evaluate(Collection args) throws DynamicError {
return local_name(args, dynamic_context());
}
diff --git a/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/FnLocalNameFromQName.java b/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/FnLocalNameFromQName.java
index b6942b3..a0d9739 100644
--- a/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/FnLocalNameFromQName.java
+++ b/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/FnLocalNameFromQName.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2005, 2009 Andrea Bittau, University College London, and others
+ * Copyright (c) 2005, 2010 Andrea Bittau, University College London, and others
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
@@ -7,6 +7,7 @@
*
* Contributors:
* Andrea Bittau - initial API and implementation from the PsychoPath XPath 2.0
+ * Mukul Gandhi - bug 280798 - PsychoPath support for JDK 1.4
*******************************************************************************/
package org.eclipse.wst.xml.xpath2.processor.internal.function;
@@ -42,7 +43,6 @@ public class FnLocalNameFromQName extends Function {
* Dynamic error.
* @return Result of evaluation.
*/
- @Override
public ResultSequence evaluate(Collection args) throws DynamicError {
return local_name(args);
}
diff --git a/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/FnLowerCase.java b/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/FnLowerCase.java
index 1a17b44..ba24805 100644
--- a/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/FnLowerCase.java
+++ b/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/FnLowerCase.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2005, 2009 Andrea Bittau, University College London, and others
+ * Copyright (c) 2005, 2010 Andrea Bittau, University College London, and others
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
@@ -9,6 +9,7 @@
* Andrea Bittau - initial API and implementation from the PsychoPath XPath 2.0
* David Carver - bug 282096 - improvements for surrogate handling
* Jesper Steen Moeller - bug 282096 - clean up string storage
+ * Mukul Gandhi - bug 280798 - PsychoPath support for JDK 1.4
*******************************************************************************/
package org.eclipse.wst.xml.xpath2.processor.internal.function;
@@ -60,7 +61,6 @@ public class FnLowerCase extends Function {
* Dynamic error.
* @return The evaluation of the arguments being converted to lower case.
*/
- @Override
public ResultSequence evaluate(Collection args) throws DynamicError {
return lower_case(args);
}
diff --git a/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/FnMatches.java b/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/FnMatches.java
index b950c42..4ad727f 100644
--- a/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/FnMatches.java
+++ b/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/FnMatches.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2005, 2009 Andrea Bittau, University College London, and others
+ * Copyright (c) 2005, 2010 Andrea Bittau, University College London, and others
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
@@ -10,6 +10,7 @@
* David Carver - bug 282096 - improvements for surrogate handling
* David Carver - bug 262765 - improvements to Regular Expression
* Jesper Steen Moeller - bug 282096 - clean up string storage
+ * Mukul Gandhi - bug 280798 - PsychoPath support for JDK 1.4
*******************************************************************************/
package org.eclipse.wst.xml.xpath2.processor.internal.function;
@@ -47,7 +48,6 @@ public class FnMatches extends AbstractRegExFunction {
* Dynamic error.
* @return Result of evaluation.
*/
- @Override
public ResultSequence evaluate(Collection args) throws DynamicError {
return matches(args);
}
diff --git a/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/FnMax.java b/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/FnMax.java
index 826fb36..c778f3e 100644
--- a/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/FnMax.java
+++ b/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/FnMax.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2005, 2009 Andrea Bittau, University College London, and others
+ * Copyright (c) 2005, 2010 Andrea Bittau, University College London, and others
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
@@ -10,6 +10,7 @@
* Jesper Moller - bug 280555 - Add pluggable collation support
* David Carver (STAR) - bug 262765 - fixed promotion issue
* Jesper Moller - bug 281028 - fix promotion rules for fn:max
+ * Mukul Gandhi - bug 280798 - PsychoPath support for JDK 1.4
*******************************************************************************/
package org.eclipse.wst.xml.xpath2.processor.internal.function;
@@ -52,7 +53,6 @@ public class FnMax extends Function {
* Dynamic error.
* @return Result of evaluation.
*/
- @Override
public ResultSequence evaluate(Collection args) throws DynamicError {
return max(args, dynamic_context());
}
diff --git a/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/FnMin.java b/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/FnMin.java
index d243075..cdfe845 100644
--- a/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/FnMin.java
+++ b/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/FnMin.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2005, 2009 Andrea Bittau, University College London, and others
+ * Copyright (c) 2005, 2010 Andrea Bittau, University College London, and others
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
@@ -10,6 +10,7 @@
* Jesper Moller - bug 280555 - Add pluggable collation support
* David Carver (STAR) - bug 262765 - fixed promotion issue
* Jesper Moller - bug 281028 - fix promotion rules for fn:min
+ * Mukul Gandhi - bug 280798 - PsychoPath support for JDK 1.4
*******************************************************************************/
package org.eclipse.wst.xml.xpath2.processor.internal.function;
@@ -52,7 +53,6 @@ public class FnMin extends Function {
* Dynamic error.
* @return Result of evaluation.
*/
- @Override
public ResultSequence evaluate(Collection args) throws DynamicError {
return min(args, dynamic_context());
}
diff --git a/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/FnMinutesFromDateTime.java b/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/FnMinutesFromDateTime.java
index 65e3f48..9441ae0 100644
--- a/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/FnMinutesFromDateTime.java
+++ b/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/FnMinutesFromDateTime.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2005, 2009 Andrea Bittau, University College London, and others
+ * Copyright (c) 2005, 2010 Andrea Bittau, University College London, and others
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
@@ -7,6 +7,7 @@
*
* Contributors:
* Andrea Bittau - initial API and implementation from the PsychoPath XPath 2.0
+ * Mukul Gandhi - bug 280798 - PsychoPath support for JDK 1.4
*******************************************************************************/
package org.eclipse.wst.xml.xpath2.processor.internal.function;
@@ -44,7 +45,6 @@ public class FnMinutesFromDateTime extends Function {
* Dynamic error.
* @return Result of evaluation.
*/
- @Override
public ResultSequence evaluate(Collection args) throws DynamicError {
return minutes_from_date_time(args);
}
diff --git a/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/FnMinutesFromDuration.java b/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/FnMinutesFromDuration.java
index b817260..a350c72 100644
--- a/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/FnMinutesFromDuration.java
+++ b/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/FnMinutesFromDuration.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2005, 2009 Andrea Bittau, University College London, and others
+ * Copyright (c) 2005, 2010 Andrea Bittau, University College London, and others
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
@@ -10,6 +10,7 @@
* Mukul Gandhi - bug 273760 - wrong namespace for functions and data types
* David Carver (STAR) - bug 282223 - implementation of xs:duration
* David Carver (STAR) - bug 262765 - fixed expected args for fnMinutesFromDuration
+ * Mukul Gandhi - bug 280798 - PsychoPath support for JDK 1.4
*******************************************************************************/
package org.eclipse.wst.xml.xpath2.processor.internal.function;
@@ -47,7 +48,6 @@ public class FnMinutesFromDuration extends Function {
* Dynamic error.
* @return Result of evaluation.
*/
- @Override
public ResultSequence evaluate(Collection args) throws DynamicError {
return minutes_from_duration(args);
}
diff --git a/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/FnMinutesFromTime.java b/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/FnMinutesFromTime.java
index b467f80..883ba29 100644
--- a/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/FnMinutesFromTime.java
+++ b/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/FnMinutesFromTime.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2005, 2009 Andrea Bittau, University College London, and others
+ * Copyright (c) 2005, 2010 Andrea Bittau, University College London, and others
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
@@ -7,6 +7,7 @@
*
* Contributors:
* Andrea Bittau - initial API and implementation from the PsychoPath XPath 2.0
+ * Mukul Gandhi - bug 280798 - PsychoPath support for JDK 1.4
*******************************************************************************/
package org.eclipse.wst.xml.xpath2.processor.internal.function;
@@ -44,7 +45,6 @@ public class FnMinutesFromTime extends Function {
* Dynamic error.
* @return Result of evaluation.
*/
- @Override
public ResultSequence evaluate(Collection args) throws DynamicError {
return minutes_from_time(args);
}
diff --git a/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/FnMonthFromDate.java b/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/FnMonthFromDate.java
index 15dd087..427beda 100644
--- a/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/FnMonthFromDate.java
+++ b/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/FnMonthFromDate.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2005, 2009 Andrea Bittau, University College London, and others
+ * Copyright (c) 2005, 2010 Andrea Bittau, University College London, and others
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
@@ -7,6 +7,7 @@
*
* Contributors:
* Andrea Bittau - initial API and implementation from the PsychoPath XPath 2.0
+ * Mukul Gandhi - bug 280798 - PsychoPath support for JDK 1.4
*******************************************************************************/
package org.eclipse.wst.xml.xpath2.processor.internal.function;
@@ -44,7 +45,6 @@ public class FnMonthFromDate extends Function {
* Dynamic error.
* @return Result of evaluation.
*/
- @Override
public ResultSequence evaluate(Collection args) throws DynamicError {
return month_from_date(args);
}
diff --git a/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/FnMonthFromDateTime.java b/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/FnMonthFromDateTime.java
index bc8ff6d..40e1881 100644
--- a/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/FnMonthFromDateTime.java
+++ b/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/FnMonthFromDateTime.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2005, 2009 Andrea Bittau, University College London, and others
+ * Copyright (c) 2005, 2010 Andrea Bittau, University College London, and others
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
@@ -8,6 +8,7 @@
* Contributors:
* Andrea Bittau - initial API and implementation from the PsychoPath XPath 2.0
* Mukul Gandhi - bug 274805 - improvements to xs:integer data type
+ * Mukul Gandhi - bug 280798 - PsychoPath support for JDK 1.4
*******************************************************************************/
package org.eclipse.wst.xml.xpath2.processor.internal.function;
@@ -45,7 +46,6 @@ public class FnMonthFromDateTime extends Function {
* Dynamic error.
* @return Result of evaluation.
*/
- @Override
public ResultSequence evaluate(Collection args) throws DynamicError {
return month_from_date_time(args);
}
diff --git a/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/FnMonthsFromDuration.java b/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/FnMonthsFromDuration.java
index f427bb8..6a5e342 100644
--- a/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/FnMonthsFromDuration.java
+++ b/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/FnMonthsFromDuration.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2005, 2009 Andrea Bittau, University College London, and others
+ * Copyright (c) 2005, 2010 Andrea Bittau, University College London, and others
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
@@ -11,6 +11,7 @@
* Mukul Gandhi - bug 274805 - improvements to xs:integer data type
* David Carver - bug 282223 - implementation of xs:duration.
* David Carver (STAR) - bug 262765 - fixed expected xs:duration argument
+ * Mukul Gandhi - bug 280798 - PsychoPath support for JDK 1.4
*******************************************************************************/
package org.eclipse.wst.xml.xpath2.processor.internal.function;
@@ -48,7 +49,6 @@ public class FnMonthsFromDuration extends Function {
* Dynamic error.
* @return Result of evaluation.
*/
- @Override
public ResultSequence evaluate(Collection args) throws DynamicError {
return months_from_duration(args);
}
diff --git a/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/FnName.java b/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/FnName.java
index 9c31f17..4c8fa49 100644
--- a/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/FnName.java
+++ b/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/FnName.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2005, 2009 Andrea Bittau, University College London, and others
+ * Copyright (c) 2005, 2010 Andrea Bittau, University College London, and others
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
@@ -11,6 +11,7 @@
* Jesper Steen Moeller - bug 285145 - implement full arity checking
* Mukul Gandhi - bug 301539 - fixed "context undefined" bug in case of zero
* arity.
+ * Mukul Gandhi - bug 280798 - PsychoPath support for JDK 1.4
*******************************************************************************/
package org.eclipse.wst.xml.xpath2.processor.internal.function;
@@ -47,7 +48,6 @@ public class FnName extends Function {
* Dynamic error.
* @return Result of evaluation.
*/
- @Override
public ResultSequence evaluate(Collection args) throws DynamicError {
return name(args, dynamic_context());
}
diff --git a/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/FnNamespaceUri.java b/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/FnNamespaceUri.java
index 95e1557..d4352aa 100644
--- a/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/FnNamespaceUri.java
+++ b/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/FnNamespaceUri.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2005, 2009 Andrea Bittau, University College London, and others
+ * Copyright (c) 2005, 2010 Andrea Bittau, University College London, and others
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
@@ -9,6 +9,7 @@
* Andrea Bittau - initial API and implementation from the PsychoPath XPath 2.0
* David Carver - bug 262765 - corrected implementation according to spec.
* Jesper Steen Moeller - bug 285145 - implement full arity checking
+ * Mukul Gandhi - bug 280798 - PsychoPath support for JDK 1.4
*******************************************************************************/
package org.eclipse.wst.xml.xpath2.processor.internal.function;
@@ -44,7 +45,6 @@ public class FnNamespaceUri extends Function {
* Dynamic error.
* @return Result of evaluation.
*/
- @Override
public ResultSequence evaluate(Collection args) throws DynamicError {
return namespace_uri(args, dynamic_context());
}
diff --git a/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/FnNamespaceUriFromQName.java b/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/FnNamespaceUriFromQName.java
index 25711c3..66aa056 100644
--- a/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/FnNamespaceUriFromQName.java
+++ b/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/FnNamespaceUriFromQName.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2005, 2009 Andrea Bittau, University College London, and others
+ * Copyright (c) 2005, 2010 Andrea Bittau, University College London, and others
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
@@ -7,6 +7,7 @@
*
* Contributors:
* Andrea Bittau - initial API and implementation from the PsychoPath XPath 2.0
+ * Mukul Gandhi - bug 280798 - PsychoPath support for JDK 1.4
*******************************************************************************/
package org.eclipse.wst.xml.xpath2.processor.internal.function;
@@ -43,7 +44,6 @@ public class FnNamespaceUriFromQName extends Function {
* Dynamic error.
* @return Result of evaluation.
*/
- @Override
public ResultSequence evaluate(Collection args) throws DynamicError {
return namespace(args);
}
diff --git a/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/FnNilled.java b/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/FnNilled.java
index 4377c0a..ac15578 100644
--- a/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/FnNilled.java
+++ b/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/FnNilled.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2005, 2009 Andrea Bittau, University College London, and others
+ * Copyright (c) 2005, 2010 Andrea Bittau, University College London, and others
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
@@ -8,6 +8,7 @@
* Contributors:
* Andrea Bittau - initial API and implementation from the PsychoPath XPath 2.0
* Jesper Steen Moeller - bug 285145 - implement full arity checking
+ * Mukul Gandhi - bug 280798 - PsychoPath support for JDK 1.4
*******************************************************************************/
package org.eclipse.wst.xml.xpath2.processor.internal.function;
@@ -42,7 +43,6 @@ public class FnNilled extends Function {
* Dynamic error.
* @return Result of evaluation.
*/
- @Override
public ResultSequence evaluate(Collection args) throws DynamicError {
return nilled(args);
}
diff --git a/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/FnNodeName.java b/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/FnNodeName.java
index 37c530d..b9e6897 100644
--- a/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/FnNodeName.java
+++ b/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/FnNodeName.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2005, 2009 Andrea Bittau, University College London, and others
+ * Copyright (c) 2005, 2010 Andrea Bittau, University College London, and others
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
@@ -7,6 +7,7 @@
*
* Contributors:
* Andrea Bittau - initial API and implementation from the PsychoPath XPath 2.0
+ * Mukul Gandhi - bug 280798 - PsychoPath support for JDK 1.4
*******************************************************************************/
package org.eclipse.wst.xml.xpath2.processor.internal.function;
@@ -43,7 +44,6 @@ public class FnNodeName extends Function {
* Dynamic error.
* @return Result of evaluation.
*/
- @Override
public ResultSequence evaluate(Collection args) throws DynamicError {
return node_name(args);
}
diff --git a/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/FnNormalizeSpace.java b/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/FnNormalizeSpace.java
index e306924..eaeac57 100644
--- a/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/FnNormalizeSpace.java
+++ b/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/FnNormalizeSpace.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2005, 2009 Andrea Bittau, University College London, and others
+ * Copyright (c) 2005, 2010 Andrea Bittau, University College London, and others
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
@@ -11,6 +11,7 @@
* David Carver (STAR) - bug 262765 - correct implementation to correctly get context node
* Jesper Steen Moeller - bug 285145 - implement full arity checking
* Jesper Steen Moller - bug 281938 - handle context and empty sequences correctly
+ * Mukul Gandhi - bug 280798 - PsychoPath support for JDK 1.4
*******************************************************************************/
package org.eclipse.wst.xml.xpath2.processor.internal.function;
@@ -64,7 +65,6 @@ public class FnNormalizeSpace extends Function {
* Dynamic error.
* @return The evaluation of the space in the arguments being normalized.
*/
- @Override
public ResultSequence evaluate(Collection args) throws DynamicError {
return normalize_space(args, dynamic_context());
}
diff --git a/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/FnNormalizeUnicode.java b/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/FnNormalizeUnicode.java
index a045c7c..ae2d8bc 100644
--- a/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/FnNormalizeUnicode.java
+++ b/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/FnNormalizeUnicode.java
@@ -8,12 +8,11 @@
* Contributors:
* Jesper Steen Moeller - bug 285152 - implement fn:normalize-unicocde
* Jesper Steen Moller - bug 290337 - Revisit use of ICU
+ * Mukul Gandhi - bug 280798 - PsychoPath support for JDK 1.4
*******************************************************************************/
package org.eclipse.wst.xml.xpath2.processor.internal.function;
-import java.lang.reflect.InvocationTargetException;
-import java.lang.reflect.Method;
import java.util.ArrayList;
import java.util.Collection;
import java.util.HashMap;
@@ -68,7 +67,7 @@ public class FnNormalizeUnicode extends Function {
*/
static class ICUNormalizer implements W3CNormalizer {
- private Map<String, Normalizer.Mode> modeMap = new HashMap<String, Normalizer.Mode>();
+ private Map modeMap = new HashMap();
{
// Can't handle "FULLY-NORMALIZED" yet
@@ -80,7 +79,7 @@ public class FnNormalizeUnicode extends Function {
public String normalize(String argument, String normalizationForm)
throws DynamicError {
- Normalizer.Mode mode = modeMap.get(normalizationForm);
+ Normalizer.Mode mode = (Normalizer.Mode)modeMap.get(normalizationForm);
if (mode != null) {
return Normalizer.normalize(argument, mode);
} else {
@@ -89,11 +88,12 @@ public class FnNormalizeUnicode extends Function {
}
}
+ /*
static class JDK6Normalizer implements W3CNormalizer {
private Method normalizeMethod;
- private Map<String, Enum> formMap = new HashMap<String, Enum>();
+ private Map formMap = new HashMap();
- public JDK6Normalizer(Class<?> normalizerCls, Class<? extends Enum> formCls) throws SecurityException, NoSuchMethodException {
+ public JDK6Normalizer(Class normalizerCls, Class formCls) throws SecurityException, NoSuchMethodException {
this.normalizeMethod = normalizerCls.getMethod("normalize", CharSequence.class, formCls);
Enum[] formConstants = formCls.getEnumConstants();
for (Enum form : formConstants) {
@@ -124,6 +124,7 @@ public class FnNormalizeUnicode extends Function {
}
}
}
+ */
static class FailingNormalizer implements W3CNormalizer {
@@ -142,7 +143,6 @@ public class FnNormalizeUnicode extends Function {
* Dynamic error.
* @return The evaluation of the space in the arguments being normalized.
*/
- @Override
public ResultSequence evaluate(Collection args) throws DynamicError {
return normalize_unicode(args, dynamic_context());
}
@@ -192,9 +192,11 @@ public class FnNormalizeUnicode extends Function {
ClassLoader classLoader = Thread.currentThread().getContextClassLoader();
normalizer = createICUNormalizer(classLoader);
+ /*
if (normalizer == null) {
normalizer = createJDKNormalizer(classLoader);
}
+ */
if (normalizer == null) {
normalizer = new FailingNormalizer();
}
@@ -202,11 +204,12 @@ public class FnNormalizeUnicode extends Function {
return normalizer;
}
+ /*
private static W3CNormalizer createJDKNormalizer(ClassLoader classLoader) {
// If that fails, we'll check for the Java 6 Normalizer class
try {
- Class<?> normalizerClass = classLoader.loadClass("java.text.Normalizer");
- Class<? extends Enum> formClass = (Class<? extends Enum>) classLoader.loadClass("java.text.Normalizer$Form");
+ Class normalizerClass = classLoader.loadClass("java.text.Normalizer");
+ Class formClass = classLoader.loadClass("java.text.Normalizer$Form");
return new JDK6Normalizer(normalizerClass, formClass);
} catch (ClassNotFoundException e) {
@@ -215,6 +218,7 @@ public class FnNormalizeUnicode extends Function {
}
return null;
}
+ */
private static W3CNormalizer createICUNormalizer(ClassLoader classLoader) {
// First attempt is to try the IBM ICU library
diff --git a/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/FnNot.java b/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/FnNot.java
index 5214283..118d97c 100644
--- a/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/FnNot.java
+++ b/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/FnNot.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2005, 2009 Andrea Bittau, University College London, and others
+ * Copyright (c) 2005, 2010 Andrea Bittau, University College London, and others
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
@@ -9,6 +9,7 @@
* Andrea Bittau - initial API and implementation from the PsychoPath XPath 2.0
* Jesper Steen Moeller - bug 285145 - implement full arity checking
* Jesper Steen Moller - bug 262765 - propagate possible errors from xs:boolean
+ * Mukul Gandhi - bug 280798 - PsychoPath support for JDK 1.4
*******************************************************************************/
package org.eclipse.wst.xml.xpath2.processor.internal.function;
@@ -41,7 +42,6 @@ public class FnNot extends Function {
* @return Result of evaluation.
* @throws DynamicError
*/
- @Override
public ResultSequence evaluate(Collection args) throws DynamicError {
// 1 argument only!
assert args.size() >= min_arity() && args.size() <= max_arity();
diff --git a/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/FnNumber.java b/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/FnNumber.java
index 09a79c5..fd52659 100644
--- a/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/FnNumber.java
+++ b/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/FnNumber.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2005, 2009 Andrea Bittau, University College London, and others
+ * Copyright (c) 2005, 2010 Andrea Bittau, University College London, and others
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
@@ -11,6 +11,7 @@
* Jesper Steen Moeller - bug 262765 - fixes float handling for fn:number
* Mukul Gandhi - bug 298519 - improvements to fn:number implementation,
* catering to node arguments.
+ * Mukul Gandhi - bug 280798 - PsychoPath support for JDK 1.4
*******************************************************************************/
package org.eclipse.wst.xml.xpath2.processor.internal.function;
@@ -48,7 +49,6 @@ public class FnNumber extends Function {
* Dynamic error.
* @return Result of evaluation.
*/
- @Override
public ResultSequence evaluate(Collection args) throws DynamicError {
assert args.size() >= min_arity() && args.size() <= max_arity();
diff --git a/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/FnOneOrMore.java b/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/FnOneOrMore.java
index 9e03bdc..a2af3cc 100644
--- a/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/FnOneOrMore.java
+++ b/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/FnOneOrMore.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2005, 2009 Andrea Bittau, University College London, and others
+ * Copyright (c) 2005, 2010 Andrea Bittau, University College London, and others
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
@@ -7,6 +7,7 @@
*
* Contributors:
* Andrea Bittau - initial API and implementation from the PsychoPath XPath 2.0
+ * Mukul Gandhi - bug 280798 - PsychoPath support for JDK 1.4
*******************************************************************************/
package org.eclipse.wst.xml.xpath2.processor.internal.function;
@@ -38,7 +39,6 @@ public class FnOneOrMore extends Function {
* Dynamic error.
* @return Result of evaluation.
*/
- @Override
public ResultSequence evaluate(Collection args) throws DynamicError {
return one_or_more(args);
}
diff --git a/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/FnPosition.java b/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/FnPosition.java
index f6b7ca3..900f3ee 100644
--- a/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/FnPosition.java
+++ b/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/FnPosition.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2005, 2009 Andrea Bittau, University College London, and others
+ * Copyright (c) 2005, 2010 Andrea Bittau, University College London, and others
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
@@ -8,6 +8,7 @@
* Contributors:
* Andrea Bittau - initial API and implementation from the PsychoPath XPath 2.0
* Mukul Gandhi - bug 274805 - improvements to xs:integer data type
+ * Mukul Gandhi - bug 280798 - PsychoPath support for JDK 1.4
*******************************************************************************/
package org.eclipse.wst.xml.xpath2.processor.internal.function;
@@ -43,7 +44,6 @@ public class FnPosition extends Function {
* Dynamic error.
* @return Result of evaluation.
*/
- @Override
public ResultSequence evaluate(Collection args) throws DynamicError {
return position(args, dynamic_context());
}
diff --git a/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/FnPrefixFromQName.java b/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/FnPrefixFromQName.java
index b3d9385..452dd95 100644
--- a/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/FnPrefixFromQName.java
+++ b/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/FnPrefixFromQName.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2009 Mukul Gandhi, and others
+ * Copyright (c) 2009, 2010 Mukul Gandhi, and others
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
@@ -7,6 +7,7 @@
*
* Contributors:
* Mukul Gandhi - initial API and implementation
+ * Mukul Gandhi - bug 280798 - PsychoPath support for JDK 1.4
*******************************************************************************/
package org.eclipse.wst.xml.xpath2.processor.internal.function;
@@ -43,7 +44,6 @@ public class FnPrefixFromQName extends Function {
* Dynamic error.
* @return Result of evaluation.
*/
- @Override
public ResultSequence evaluate(Collection args) throws DynamicError {
return prefix(args, _fl.dynamic_context());
}
diff --git a/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/FnQName.java b/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/FnQName.java
index 9e0827a..ff838c4 100644
--- a/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/FnQName.java
+++ b/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/FnQName.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2005, 2009 Andrea Bittau, University College London, and others
+ * Copyright (c) 2005, 2010 Andrea Bittau, University College London, and others
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
@@ -7,6 +7,7 @@
*
* Contributors:
* Andrea Bittau - initial API and implementation from the PsychoPath XPath 2.0
+ * Mukul Gandhi - bug 280798 - PsychoPath support for JDK 1.4
*******************************************************************************/
package org.eclipse.wst.xml.xpath2.processor.internal.function;
@@ -46,7 +47,6 @@ public class FnQName extends Function {
* Dynamic error.
* @return Result of evaluation.
*/
- @Override
public ResultSequence evaluate(Collection args) throws DynamicError {
return resolve_QName(args, static_context());
}
diff --git a/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/FnRemove.java b/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/FnRemove.java
index 110b1c2..4e06d03 100644
--- a/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/FnRemove.java
+++ b/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/FnRemove.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2005, 2009 Andrea Bittau, University College London, and others
+ * Copyright (c) 2005, 2010 Andrea Bittau, University College London, and others
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
@@ -8,6 +8,7 @@
* Contributors:
* Andrea Bittau - initial API and implementation from the PsychoPath XPath 2.0
* Mukul Gandhi - bug 274805 - improvements to xs:integer data type
+ * Mukul Gandhi - bug 280798 - PsychoPath support for JDK 1.4
*******************************************************************************/
package org.eclipse.wst.xml.xpath2.processor.internal.function;
@@ -45,7 +46,6 @@ public class FnRemove extends Function {
* Dynamic error.
* @return Result of evaluation.
*/
- @Override
public ResultSequence evaluate(Collection args) throws DynamicError {
return remove(args);
}
diff --git a/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/FnReplace.java b/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/FnReplace.java
index bbe3450..adf27b0 100644
--- a/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/FnReplace.java
+++ b/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/FnReplace.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2005, 2009 Andrea Bittau, University College London, and others
+ * Copyright (c) 2005, 2010 Andrea Bittau, University College London, and others
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
@@ -9,6 +9,7 @@
* Andrea Bittau - initial API and implementation from the PsychoPath XPath 2.0
* David Carver (STAR) - bug 262765 - added exception handling to toss correct error numbers.
* Jesper Steen Moeller - bug 285145 - implement full arity checking
+ * Mukul Gandhi - bug 280798 - PsychoPath support for JDK 1.4
*******************************************************************************/
package org.eclipse.wst.xml.xpath2.processor.internal.function;
@@ -46,7 +47,6 @@ public class FnReplace extends Function {
* Dynamic error.
* @return Result of evaluation.
*/
- @Override
public ResultSequence evaluate(Collection args) throws DynamicError {
return replace(args);
}
diff --git a/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/FnResolveQName.java b/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/FnResolveQName.java
index 0341601..9a78bbf 100644
--- a/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/FnResolveQName.java
+++ b/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/FnResolveQName.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2005, 2009 Andrea Bittau, University College London, and others
+ * Copyright (c) 2005, 2010 Andrea Bittau, University College London, and others
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
@@ -8,6 +8,7 @@
* Contributors:
* Andrea Bittau - initial API and implementation from the PsychoPath XPath 2.0
* David Carver (STAR) - bug 288886 - add unit tests and fix fn:resolve-qname function
+ * Mukul Gandhi - bug 280798 - PsychoPath support for JDK 1.4
*******************************************************************************/
package org.eclipse.wst.xml.xpath2.processor.internal.function;
@@ -47,7 +48,6 @@ public class FnResolveQName extends Function {
* Dynamic error.
* @return Result of evaluation.
*/
- @Override
public ResultSequence evaluate(Collection args) throws DynamicError {
return resolve_QName(args, static_context());
}
diff --git a/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/FnResolveURI.java b/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/FnResolveURI.java
index 7a4ef61..07ff17f 100644
--- a/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/FnResolveURI.java
+++ b/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/FnResolveURI.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2009 Standards for Technology in Automotive Retail and others
+ * Copyright (c) 2009, 2010 Standards for Technology in Automotive Retail and others
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
@@ -7,6 +7,7 @@
*
* Contributors:
* David Carver - initial API and implementation from the PsychoPath XPath 2.0
+ * Mukul Gandhi - bug 280798 - PsychoPath support for JDK 1.4
*******************************************************************************/
package org.eclipse.wst.xml.xpath2.processor.internal.function;
@@ -55,7 +56,6 @@ public class FnResolveURI extends Function {
* Dynamic error.
* @return Result of evaluation.
*/
- @Override
public ResultSequence evaluate(Collection args) throws DynamicError {
return resolveURI(args, dynamic_context());
}
diff --git a/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/FnReverse.java b/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/FnReverse.java
index d070198..5e0a67d 100644
--- a/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/FnReverse.java
+++ b/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/FnReverse.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2005, 2009 Andrea Bittau, University College London, and others
+ * Copyright (c) 2005, 2010 Andrea Bittau, University College London, and others
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
@@ -7,6 +7,7 @@
*
* Contributors:
* Andrea Bittau - initial API and implementation from the PsychoPath XPath 2.0
+ * Mukul Gandhi - bug 280798 - PsychoPath support for JDK 1.4
*******************************************************************************/
package org.eclipse.wst.xml.xpath2.processor.internal.function;
@@ -50,7 +51,6 @@ public class FnReverse extends Function {
* Dynamic error.
* @return The evaluation of the reversal of the arguments.
*/
- @Override
public ResultSequence evaluate(Collection args) throws DynamicError {
return reverse(args);
}
diff --git a/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/FnRoot.java b/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/FnRoot.java
index f3088ed..c6794e7 100644
--- a/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/FnRoot.java
+++ b/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/FnRoot.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2005, 2009 Andrea Bittau, University College London, and others
+ * Copyright (c) 2005, 2010 Andrea Bittau, University College London, and others
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
@@ -11,6 +11,7 @@
* Jesper Steen Moeller - bug 285145 - implement full arity checking
* Jesper Steen Moeller - bug 281159 - tak extra care to find the root
* Jesper Steen Moller - bug 275610 - Avoid big time and memory overhead for externals
+ * Mukul Gandhi - bug 280798 - PsychoPath support for JDK 1.4
*******************************************************************************/
package org.eclipse.wst.xml.xpath2.processor.internal.function;
@@ -49,7 +50,6 @@ public class FnRoot extends Function {
* Dynamic error.
* @return Result of evaluation.
*/
- @Override
public ResultSequence evaluate(Collection args) throws DynamicError {
assert args.size() >= min_arity() && args.size() <= max_arity();
diff --git a/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/FnRound.java b/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/FnRound.java
index 3d505e6..d170387 100644
--- a/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/FnRound.java
+++ b/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/FnRound.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2005, 2009 Andrea Bittau, University College London, and others
+ * Copyright (c) 2005, 2010 Andrea Bittau, University College London, and others
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
@@ -8,6 +8,7 @@
* Contributors:
* Andrea Bittau - initial API and implementation from the PsychoPath XPath 2.0
* Jesper Steen Moeller - bug 285145 - implement full arity checking
+ * Mukul Gandhi - bug 280798 - PsychoPath support for JDK 1.4
*******************************************************************************/
package org.eclipse.wst.xml.xpath2.processor.internal.function;
@@ -45,7 +46,6 @@ public class FnRound extends Function {
* Dynamic error.
* @return Result of evaluation.
*/
- @Override
public ResultSequence evaluate(Collection args) throws DynamicError {
// 1 argument only!
assert args.size() >= min_arity() && args.size() <= max_arity();
diff --git a/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/FnRoundHalfToEven.java b/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/FnRoundHalfToEven.java
index 09e068e..2782237 100644
--- a/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/FnRoundHalfToEven.java
+++ b/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/FnRoundHalfToEven.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2005, 2009 Andrea Bittau, University College London, and others
+ * Copyright (c) 2005, 2010 Andrea Bittau, University College London, and others
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
@@ -8,6 +8,7 @@
* Contributors:
* Andrea Bittau - initial API and implementation from the PsychoPath XPath 2.0
* Jesper Steen Moeller - bug 285145 - implement full arity checking
+ * Mukul Gandhi - bug 280798 - PsychoPath support for JDK 1.4
*******************************************************************************/
package org.eclipse.wst.xml.xpath2.processor.internal.function;
@@ -47,7 +48,6 @@ public class FnRoundHalfToEven extends Function {
* Dynamic error.
* @return Result of evaluation.
*/
- @Override
public ResultSequence evaluate(Collection args) throws DynamicError {
ResultSequence argument = (ResultSequence) args.iterator().next();
if (args.size() == 2) {
diff --git a/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/FnSecondsFromDateTime.java b/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/FnSecondsFromDateTime.java
index 3a8c1b1..5457bb1 100644
--- a/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/FnSecondsFromDateTime.java
+++ b/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/FnSecondsFromDateTime.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2005, 2009 Andrea Bittau, University College London, and others
+ * Copyright (c) 2005, 2010 Andrea Bittau, University College London, and others
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
@@ -8,6 +8,7 @@
* Contributors:
* Andrea Bittau - initial API and implementation from the PsychoPath XPath 2.0
* David Carver - bug 277774 - XSDEcimal returning wrong values.
+ * Mukul Gandhi - bug 280798 - PsychoPath support for JDK 1.4
*******************************************************************************/
package org.eclipse.wst.xml.xpath2.processor.internal.function;
@@ -48,7 +49,6 @@ public class FnSecondsFromDateTime extends Function {
* Dynamic error.
* @return Result of evaluation.
*/
- @Override
public ResultSequence evaluate(Collection args) throws DynamicError {
return seconds_from_date_time(args);
}
@@ -78,7 +78,7 @@ public class FnSecondsFromDateTime extends Function {
double res = dt.second();
- rs.add(new XSDecimal(BigDecimal.valueOf(res)));
+ rs.add(new XSDecimal(new BigDecimal(res)));
return rs;
}
diff --git a/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/FnSecondsFromDuration.java b/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/FnSecondsFromDuration.java
index 7727678..e0afa81 100644
--- a/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/FnSecondsFromDuration.java
+++ b/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/FnSecondsFromDuration.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2005, 2009 Andrea Bittau, University College London, and others
+ * Copyright (c) 2005, 2010 Andrea Bittau, University College London, and others
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
@@ -11,6 +11,7 @@
* David Carver - bug 277774 - XSDecimal returning wrong values.
* David Carver - bug 282223 - implementation of xs:duration
* David Carver (STAR) - bug 262765 - fixed xs:duration expected argument.
+ * Mukul Gandhi - bug 280798 - PsychoPath support for JDK 1.4
*******************************************************************************/
package org.eclipse.wst.xml.xpath2.processor.internal.function;
@@ -48,7 +49,6 @@ public class FnSecondsFromDuration extends Function {
* Dynamic error.
* @return Result of evaluation.
*/
- @Override
public ResultSequence evaluate(Collection args) throws DynamicError {
return seconds_from_duration(args);
}
@@ -81,7 +81,7 @@ public class FnSecondsFromDuration extends Function {
if (dtd.negative())
res *= -1;
- rs.add(new XSDecimal(BigDecimal.valueOf(res)));
+ rs.add(new XSDecimal(new BigDecimal(res)));
return rs;
}
diff --git a/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/FnSecondsFromTime.java b/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/FnSecondsFromTime.java
index 3a5db3b..e0f2311 100644
--- a/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/FnSecondsFromTime.java
+++ b/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/FnSecondsFromTime.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2005, 2009 Andrea Bittau, University College London, and others
+ * Copyright (c) 2005, 2010 Andrea Bittau, University College London, and others
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
@@ -8,6 +8,7 @@
* Contributors:
* Andrea Bittau - initial API and implementation from the PsychoPath XPath 2.0
* David Carver - bug 277774 - XSDecimal returing wrong values.
+ * Mukul Gandhi - bug 280798 - PsychoPath support for JDK 1.4
*******************************************************************************/
package org.eclipse.wst.xml.xpath2.processor.internal.function;
@@ -48,7 +49,6 @@ public class FnSecondsFromTime extends Function {
* Dynamic error.
* @return Result of evaluation.
*/
- @Override
public ResultSequence evaluate(Collection args) throws DynamicError {
return seconds_from_time(args);
}
@@ -78,7 +78,7 @@ public class FnSecondsFromTime extends Function {
double res = dt.second();
- rs.add(new XSDecimal(BigDecimal.valueOf(res)));
+ rs.add(new XSDecimal(new BigDecimal(res)));
return rs;
}
diff --git a/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/FnStartsWith.java b/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/FnStartsWith.java
index 0942683..7e3286b 100644
--- a/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/FnStartsWith.java
+++ b/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/FnStartsWith.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2005, 2009 Andrea Bittau, University College London, and others
+ * Copyright (c) 2005, 2010 Andrea Bittau, University College London, and others
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
@@ -7,6 +7,7 @@
*
* Contributors:
* Andrea Bittau - initial API and implementation from the PsychoPath XPath 2.0
+ * Mukul Gandhi - bug 280798 - PsychoPath support for JDK 1.4
*******************************************************************************/
package org.eclipse.wst.xml.xpath2.processor.internal.function;
@@ -43,7 +44,6 @@ public class FnStartsWith extends Function {
* Dynamic error.
* @return Result of evaluation.
*/
- @Override
public ResultSequence evaluate(Collection args) throws DynamicError {
return starts_with(args);
}
diff --git a/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/FnStaticBaseUri.java b/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/FnStaticBaseUri.java
index a50a3fc..1b935a9 100644
--- a/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/FnStaticBaseUri.java
+++ b/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/FnStaticBaseUri.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2005, 2009 Andrea Bittau, University College London, and others
+ * Copyright (c) 2005, 2010 Andrea Bittau, University College London, and others
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
@@ -7,6 +7,7 @@
*
* Contributors:
* Andrea Bittau - initial API and implementation from the PsychoPath XPath 2.0
+ * Mukul Gandhi - bug 280798 - PsychoPath support for JDK 1.4
*******************************************************************************/
package org.eclipse.wst.xml.xpath2.processor.internal.function;
@@ -42,7 +43,6 @@ public class FnStaticBaseUri extends Function {
* Dynamic error.
* @return Result of evaluation.
*/
- @Override
public ResultSequence evaluate(Collection args) throws DynamicError {
return static_base_uri(args, static_context());
}
diff --git a/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/FnString.java b/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/FnString.java
index 71f6a97..f46381f 100644
--- a/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/FnString.java
+++ b/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/FnString.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2005, 2009 Andrea Bittau, University College London, and others
+ * Copyright (c) 2005, 2010 Andrea Bittau, University College London, and others
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
@@ -10,6 +10,7 @@
* Mukul Gandhi - bug 274471 - improvements to fn:string function (support for arity 0)
* Jesper Steen Moeller - bug 285145 - implement full arity checking
* Jesper Steen Moller - bug 281938 - handle context and empty sequences correctly
+ * Mukul Gandhi - bug 280798 - PsychoPath support for JDK 1.4
*******************************************************************************/
package org.eclipse.wst.xml.xpath2.processor.internal.function;
@@ -44,7 +45,6 @@ public class FnString extends Function {
* Dynamic error.
* @return Result of evaluation.
*/
- @Override
public ResultSequence evaluate(Collection args) throws DynamicError {
return string(args, dynamic_context());
}
diff --git a/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/FnStringJoin.java b/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/FnStringJoin.java
index 3fd093b..2f0c96d 100644
--- a/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/FnStringJoin.java
+++ b/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/FnStringJoin.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2005, 2009 Andrea Bittau, University College London, and others
+ * Copyright (c) 2005, 2010 Andrea Bittau, University College London, and others
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
@@ -7,6 +7,7 @@
*
* Contributors:
* Andrea Bittau - initial API and implementation from the PsychoPath XPath 2.0
+ * Mukul Gandhi - bug 280798 - PsychoPath support for JDK 1.4
*******************************************************************************/
package org.eclipse.wst.xml.xpath2.processor.internal.function;
@@ -59,7 +60,6 @@ public class FnStringJoin extends Function {
* Dynamic error.
* @return The evaluation of the joining of the arguments.
*/
- @Override
public ResultSequence evaluate(Collection args) throws DynamicError {
return string_join(args);
}
diff --git a/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/FnStringLength.java b/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/FnStringLength.java
index 3f2d094..4df048d 100644
--- a/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/FnStringLength.java
+++ b/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/FnStringLength.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2005, 2009 Andrea Bittau, University College London, and others
+ * Copyright (c) 2005, 2010 Andrea Bittau, University College London, and others
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
@@ -13,6 +13,7 @@
* David Carver - bug 282096 - improvements for surrogate handling
* Jesper Steen Moeller - bug 282096 - clean up string storage
* Jesper Steen Moller - bug 281938 - handle context and empty sequences correctly
+ * Mukul Gandhi - bug 280798 - PsychoPath support for JDK 1.4
*******************************************************************************/
package org.eclipse.wst.xml.xpath2.processor.internal.function;
@@ -24,6 +25,8 @@ import org.eclipse.wst.xml.xpath2.processor.ResultSequenceFactory;
import org.eclipse.wst.xml.xpath2.processor.internal.*;
import org.eclipse.wst.xml.xpath2.processor.internal.types.*;
+import com.ibm.icu.text.UTF16;
+
import java.math.BigInteger;
import java.util.*;
@@ -64,7 +67,6 @@ public class FnStringLength extends Function {
* Dynamic error.
* @return The evaluation of the string length of the arguments.
*/
- @Override
public ResultSequence evaluate(Collection args) throws DynamicError {
return string_length(args, dynamic_context());
}
@@ -97,7 +99,7 @@ public class FnStringLength extends Function {
str = ((XSString) arg1.first()).value();
}
ResultSequence rs = ResultSequenceFactory.create_new();
- rs.add(new XSInteger(BigInteger.valueOf(str.codePointCount(0, str.length()))));
+ rs.add(new XSInteger(BigInteger.valueOf(UTF16.countCodePoint(str))));
return rs;
}
diff --git a/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/FnStringToCodepoints.java b/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/FnStringToCodepoints.java
index 1cd53df..953b892 100644
--- a/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/FnStringToCodepoints.java
+++ b/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/FnStringToCodepoints.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2005, 2009 Andrea Bittau, University College London, and others
+ * Copyright (c) 2005, 2010 Andrea Bittau, University College London, and others
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
@@ -10,6 +10,7 @@
* Mukul Gandhi - bug 280554 - improvements to the function implementation
* David Carver - bug 282096 - improvements for surrogate handling
* Jesper Steen Moeller - bug 282096 - clean up string storage and fix surrogate handling
+ * Mukul Gandhi - bug 280798 - PsychoPath support for JDK 1.4
*******************************************************************************/
package org.eclipse.wst.xml.xpath2.processor.internal.function;
@@ -48,7 +49,6 @@ public class FnStringToCodepoints extends Function {
* Dynamic error.
* @return Result of evaluation.
*/
- @Override
public ResultSequence evaluate(Collection args) throws DynamicError {
return string_to_codepoints(args);
}
diff --git a/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/FnSubstring.java b/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/FnSubstring.java
index fca61f0..364b4d5 100644
--- a/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/FnSubstring.java
+++ b/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/FnSubstring.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2005, 2009 Andrea Bittau, University College London, and others
+ * Copyright (c) 2005, 2010 Andrea Bittau, University College London, and others
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
@@ -11,6 +11,7 @@
* Jesper Steen Moeller - bug 285145 - implement full arity checking
* David Carver - bug 282096 - improvements for surrogate handling
* Jesper Steen Moeller - bug 282096 - reimplemented to be surrogate sensitive
+ * Mukul Gandhi - bug 280798 - PsychoPath support for JDK 1.4
*******************************************************************************/
package org.eclipse.wst.xml.xpath2.processor.internal.function;
@@ -23,6 +24,8 @@ import org.eclipse.wst.xml.xpath2.processor.internal.types.*;
import org.eclipse.wst.xml.xpath2.processor.internal.utils.CodePointIterator;
import org.eclipse.wst.xml.xpath2.processor.internal.utils.StringCodePointIterator;
+import com.ibm.icu.lang.UCharacter;
+
import java.util.*;
/**
@@ -69,7 +72,6 @@ public class FnSubstring extends Function {
* Dynamic error.
* @return The evaluation of the substring obtained from the arguments.
*/
- @Override
public ResultSequence evaluate(Collection args) throws DynamicError {
return substring(args);
}
@@ -122,7 +124,7 @@ public class FnSubstring extends Function {
// could guess too short in cases supplementary chars
- StringBuilder sb = new StringBuilder((int) Math.min(str.length(), ilength));
+ StringBuffer sb = new StringBuffer((int) Math.min(str.length(), ilength));
// This looks like an inefficient way to iterate, but due to surrogate handling,
// string indexes are no good here. Welcome to UTF-16!
@@ -130,7 +132,7 @@ public class FnSubstring extends Function {
CodePointIterator strIter = new StringCodePointIterator(str);
for (long p = 1; strIter.current() != CodePointIterator.DONE; ++p, strIter.next()) {
if (istart <= p && p - istart < ilength)
- sb.appendCodePoint(strIter.current());
+ sb.append(UCharacter.toChars(strIter.current()));
}
rs.add(new XSString(sb.toString()));
diff --git a/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/FnSubstringAfter.java b/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/FnSubstringAfter.java
index 28a08f1..af3f1e1 100644
--- a/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/FnSubstringAfter.java
+++ b/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/FnSubstringAfter.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2005, 2009 Andrea Bittau, University College London, and others
+ * Copyright (c) 2005, 2010 Andrea Bittau, University College London, and others
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
@@ -9,6 +9,7 @@
* Andrea Bittau - initial API and implementation from the PsychoPath XPath 2.0
* David Carver - bug 282096 - improvements for surrogate handling
* Jesper Steen Moeller - bug 282096 - clean up string storage
+ * Mukul Gandhi - bug 280798 - PsychoPath support for JDK 1.4
*******************************************************************************/
package org.eclipse.wst.xml.xpath2.processor.internal.function;
@@ -46,7 +47,6 @@ public class FnSubstringAfter extends Function {
* Dynamic error.
* @return Result of evaluation.
*/
- @Override
public ResultSequence evaluate(Collection args) throws DynamicError {
return substring_after(args);
}
diff --git a/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/FnSubstringBefore.java b/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/FnSubstringBefore.java
index 5b4d52e..65e4436 100644
--- a/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/FnSubstringBefore.java
+++ b/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/FnSubstringBefore.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2005, 2009 Andrea Bittau, University College London, and others
+ * Copyright (c) 2005, 2010 Andrea Bittau, University College London, and others
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
@@ -9,6 +9,7 @@
* Andrea Bittau - initial API and implementation from the PsychoPath XPath 2.0
* David Carver - bug 282096 - improvements for surrogate handling
* Jesper Steen Moeller - bug 282096 - clean up string storage
+ * Mukul Gandhi - bug 280798 - PsychoPath support for JDK 1.4
*******************************************************************************/
package org.eclipse.wst.xml.xpath2.processor.internal.function;
@@ -46,7 +47,6 @@ public class FnSubstringBefore extends Function {
* Dynamic error.
* @return Result of evaluation.
*/
- @Override
public ResultSequence evaluate(Collection args) throws DynamicError {
return substring_before(args);
}
diff --git a/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/FnSum.java b/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/FnSum.java
index d992386..5a454dc 100644
--- a/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/FnSum.java
+++ b/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/FnSum.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2005, 2009 Andrea Bittau, University College London, and others
+ * Copyright (c) 2005, 2010 Andrea Bittau, University College London, and others
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
@@ -9,6 +9,7 @@
* Andrea Bittau - initial API and implementation from the PsychoPath XPath 2.0
* Mukul Gandhi - bug 274805 - improvements to xs:integer data type
* Jesper Moller - bug 281028 - fix promotion rules for fn:sum
+ * Mukul Gandhi - bug 280798 - PsychoPath support for JDK 1.4
*******************************************************************************/
package org.eclipse.wst.xml.xpath2.processor.internal.function;
@@ -51,7 +52,6 @@ public class FnSum extends Function {
* Dynamic error.
* @return Result of evaluation.
*/
- @Override
public ResultSequence evaluate(Collection args) throws DynamicError {
Iterator argIterator = args.iterator();
ResultSequence argSequence = (ResultSequence)argIterator.next();
diff --git a/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/FnTimezoneFromDate.java b/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/FnTimezoneFromDate.java
index ba1b926..31eacf9 100644
--- a/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/FnTimezoneFromDate.java
+++ b/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/FnTimezoneFromDate.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2005, 2009 Andrea Bittau, University College London, and others
+ * Copyright (c) 2005, 2010 Andrea Bittau, University College London, and others
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
@@ -7,6 +7,7 @@
*
* Contributors:
* Andrea Bittau - initial API and implementation from the PsychoPath XPath 2.0
+ * Mukul Gandhi - bug 280798 - PsychoPath support for JDK 1.4
*******************************************************************************/
package org.eclipse.wst.xml.xpath2.processor.internal.function;
@@ -45,7 +46,6 @@ public class FnTimezoneFromDate extends Function {
* Dynamic error.
* @return Result of evaluation.
*/
- @Override
public ResultSequence evaluate(Collection args) throws DynamicError {
return timezone_from_date(args);
}
diff --git a/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/FnTimezoneFromDateTime.java b/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/FnTimezoneFromDateTime.java
index 221bc8e..aaff431 100644
--- a/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/FnTimezoneFromDateTime.java
+++ b/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/FnTimezoneFromDateTime.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2005, 2009 Andrea Bittau, University College London, and others
+ * Copyright (c) 2005, 2010 Andrea Bittau, University College London, and others
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
@@ -7,6 +7,7 @@
*
* Contributors:
* Andrea Bittau - initial API and implementation from the PsychoPath XPath 2.0
+ * Mukul Gandhi - bug 280798 - PsychoPath support for JDK 1.4
*******************************************************************************/
package org.eclipse.wst.xml.xpath2.processor.internal.function;
@@ -45,7 +46,6 @@ public class FnTimezoneFromDateTime extends Function {
* Dynamic error.
* @return Result of evaluation.
*/
- @Override
public ResultSequence evaluate(Collection args) throws DynamicError {
return timezone_from_date_time(args);
}
diff --git a/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/FnTimezoneFromTime.java b/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/FnTimezoneFromTime.java
index b415371..92761a2 100644
--- a/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/FnTimezoneFromTime.java
+++ b/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/FnTimezoneFromTime.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2005, 2009 Andrea Bittau, University College London, and others
+ * Copyright (c) 2005, 2010 Andrea Bittau, University College London, and others
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
@@ -7,6 +7,7 @@
*
* Contributors:
* Andrea Bittau - initial API and implementation from the PsychoPath XPath 2.0
+ * Mukul Gandhi - bug 280798 - PsychoPath support for JDK 1.4
*******************************************************************************/
package org.eclipse.wst.xml.xpath2.processor.internal.function;
@@ -45,7 +46,6 @@ public class FnTimezoneFromTime extends Function {
* Dynamic error.
* @return Result of evaluation.
*/
- @Override
public ResultSequence evaluate(Collection args) throws DynamicError {
return timezone_from_time(args);
}
diff --git a/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/FnTokenize.java b/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/FnTokenize.java
index 0462216..bb4b82a 100644
--- a/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/FnTokenize.java
+++ b/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/FnTokenize.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2005, 2009 Andrea Bittau, University College London, and others
+ * Copyright (c) 2005, 2010 Andrea Bittau, University College London, and others
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
@@ -9,6 +9,7 @@
* Andrea Bittau - initial API and implementation from the PsychoPath XPath 2.0
* Jesper Steen Moeller - bug 282096 - clean up string storage
* Jesper S Moller - Bug 281938 - no matches should return full input
+ * Mukul Gandhi - bug 280798 - PsychoPath support for JDK 1.4
*******************************************************************************/
package org.eclipse.wst.xml.xpath2.processor.internal.function;
@@ -46,7 +47,6 @@ public class FnTokenize extends AbstractRegExFunction {
* Dynamic error.
* @return Result of evaluation.
*/
- @Override
public ResultSequence evaluate(Collection args) throws DynamicError {
return tokenize(args);
}
@@ -87,11 +87,12 @@ public class FnTokenize extends AbstractRegExFunction {
}
try {
- ArrayList<String> ret = tokenize(pattern, flags, str1);
+ ArrayList ret = tokenize(pattern, flags, str1);
- for(String token : ret) {
- rs.add(new XSString(token));
+ for (Iterator retIter = ret.iterator(); retIter.hasNext();) {
+ rs.add(new XSString((String)retIter.next()));
}
+
} catch (PatternSyntaxException err) {
throw DynamicError.regex_error(null);
}
@@ -99,9 +100,9 @@ public class FnTokenize extends AbstractRegExFunction {
return rs;
}
- private static ArrayList<String> tokenize(String pattern, String flags, String src) throws DynamicError {
+ private static ArrayList tokenize(String pattern, String flags, String src) throws DynamicError {
Matcher matcher = regex(pattern, flags, src);
- ArrayList<String> tokens = new ArrayList<String>();
+ ArrayList tokens = new ArrayList();
int startpos = 0;
int endpos = src.length();
while (matcher.find()) {
diff --git a/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/FnTrace.java b/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/FnTrace.java
index ed920f7..8548db3 100644
--- a/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/FnTrace.java
+++ b/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/FnTrace.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2005, 2009 Andrea Bittau, University College London, and others
+ * Copyright (c) 2005, 2010 Andrea Bittau, University College London, and others
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
@@ -7,6 +7,7 @@
*
* Contributors:
* Andrea Bittau - initial API and implementation from the PsychoPath XPath 2.0
+ * Mukul Gandhi - bug 280798 - PsychoPath support for JDK 1.4
*******************************************************************************/
package org.eclipse.wst.xml.xpath2.processor.internal.function;
@@ -41,7 +42,6 @@ public class FnTrace extends Function {
* Dynamic error.
* @return Result of evaluation.
*/
- @Override
public ResultSequence evaluate(Collection args) throws DynamicError {
return trace(args);
}
diff --git a/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/FnTranslate.java b/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/FnTranslate.java
index 3af784b..5f3a4df 100644
--- a/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/FnTranslate.java
+++ b/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/FnTranslate.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2005, 2009 Andrea Bittau, University College London, and others
+ * Copyright (c) 2005, 2010 Andrea Bittau, University College London, and others
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
@@ -9,6 +9,7 @@
* Andrea Bittau - initial API and implementation from the PsychoPath XPath 2.0
* Jesper Steen Moeller - bug 282096 - clean up string storage and make
* translate function surrogate aware
+ * Mukul Gandhi - bug 280798 - PsychoPath support for JDK 1.4
*******************************************************************************/
package org.eclipse.wst.xml.xpath2.processor.internal.function;
@@ -21,6 +22,8 @@ import org.eclipse.wst.xml.xpath2.processor.internal.types.*;
import org.eclipse.wst.xml.xpath2.processor.internal.utils.CodePointIterator;
import org.eclipse.wst.xml.xpath2.processor.internal.utils.StringCodePointIterator;
+import com.ibm.icu.lang.UCharacter;
+
import java.util.*;
/**
@@ -82,7 +85,6 @@ public class FnTranslate extends Function {
* Dynamic error.
* @return The evaluation of the arguments being translated.
*/
- @Override
public ResultSequence evaluate(Collection args) throws DynamicError {
return translate(args);
}
@@ -115,19 +117,19 @@ public class FnTranslate extends Function {
String mapstr = ((XSString) arg2.first()).value();
String transstr = ((XSString) arg3.first()).value();
- Map<Integer, Integer> replacements = buildReplacementMap(mapstr, transstr);
+ Map replacements = buildReplacementMap(mapstr, transstr);
StringBuffer sb = new StringBuffer(str.length());
CodePointIterator strIter = new StringCodePointIterator(str);
for (int input = strIter.current(); input != CodePointIterator.DONE; input = strIter.next()) {
- Integer inputCodepoint = Integer.valueOf(input);
+ Integer inputCodepoint = new Integer(input);
if (replacements.containsKey(inputCodepoint)) {
- Integer replaceWith = replacements.get(inputCodepoint);
+ Integer replaceWith = (Integer)replacements.get(inputCodepoint);
if (replaceWith != null) {
- sb.appendCodePoint(replaceWith.intValue());
+ sb.append(UCharacter.toChars(replaceWith.intValue()));
}
} else {
- sb.appendCodePoint(input);
+ sb.append(UCharacter.toChars(input));
}
}
@@ -144,9 +146,9 @@ public class FnTranslate extends Function {
* @param transstr The "mapping into" string
* @return A map which maps input codepoint to output codepoint (or null)
*/
- private static Map<Integer, Integer> buildReplacementMap(String mapstr, String transstr) {
+ private static Map buildReplacementMap(String mapstr, String transstr) {
// Build mapping (map from codepoint -> codepoint)
- Map<Integer, Integer> replacements = new HashMap<Integer, Integer>(mapstr.length() * 4);
+ Map replacements = new HashMap(mapstr.length() * 4);
CodePointIterator mapIter = new StringCodePointIterator(mapstr);
CodePointIterator transIter = new StringCodePointIterator(transstr);
@@ -154,10 +156,10 @@ public class FnTranslate extends Function {
int mapFrom = mapIter.current();
int mapTo = transIter.current();
while (mapFrom != CodePointIterator.DONE) {
- Integer codepointFrom = Integer.valueOf(mapFrom);
+ Integer codepointFrom = new Integer(mapFrom);
if (! replacements.containsKey(codepointFrom)) {
// only overwrite if it doesn't exist already
- Integer replacement = mapTo != CodePointIterator.DONE ? Integer.valueOf(mapTo) : null;
+ Integer replacement = mapTo != CodePointIterator.DONE ? new Integer(mapTo) : null;
replacements.put(codepointFrom, replacement);
}
mapFrom = mapIter.next();
diff --git a/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/FnTrue.java b/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/FnTrue.java
index af464a7..c9eb491 100644
--- a/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/FnTrue.java
+++ b/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/FnTrue.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2005, 2009 Andrea Bittau, University College London, and others
+ * Copyright (c) 2005, 2010 Andrea Bittau, University College London, and others
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
@@ -7,6 +7,7 @@
*
* Contributors:
* Andrea Bittau - initial API and implementation from the PsychoPath XPath 2.0
+ * Mukul Gandhi - bug 280798 - PsychoPath support for JDK 1.4
*******************************************************************************/
package org.eclipse.wst.xml.xpath2.processor.internal.function;
@@ -38,7 +39,6 @@ public class FnTrue extends Function {
* Dynamic error.
* @return Result of evaluation.
*/
- @Override
public ResultSequence evaluate(Collection args) throws DynamicError {
return fn_true(args);
}
diff --git a/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/FnUnordered.java b/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/FnUnordered.java
index 3f58acb..7c27af5 100644
--- a/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/FnUnordered.java
+++ b/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/FnUnordered.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2005, 2009 Andrea Bittau, University College London, and others
+ * Copyright (c) 2005, 2010 Andrea Bittau, University College London, and others
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
@@ -7,6 +7,7 @@
*
* Contributors:
* Andrea Bittau - initial API and implementation from the PsychoPath XPath 2.0
+ * Mukul Gandhi - bug 280798 - PsychoPath support for JDK 1.4
*******************************************************************************/
package org.eclipse.wst.xml.xpath2.processor.internal.function;
@@ -38,7 +39,6 @@ public class FnUnordered extends Function {
* Dynamic error.
* @return Result of evaluation.
*/
- @Override
public ResultSequence evaluate(Collection args) throws DynamicError {
return unordered(args);
}
diff --git a/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/FnUpperCase.java b/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/FnUpperCase.java
index b2fd656..d823afa 100644
--- a/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/FnUpperCase.java
+++ b/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/FnUpperCase.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2005, 2009 Andrea Bittau, University College London, and others
+ * Copyright (c) 2005, 2010 Andrea Bittau, University College London, and others
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
@@ -7,6 +7,7 @@
*
* Contributors:
* Andrea Bittau - initial API and implementation from the PsychoPath XPath 2.0
+ * Mukul Gandhi - bug 280798 - PsychoPath support for JDK 1.4
*******************************************************************************/
package org.eclipse.wst.xml.xpath2.processor.internal.function;
@@ -58,7 +59,6 @@ public class FnUpperCase extends Function {
* Dynamic error.
* @return The evaluation of the arguments being converted to upper case.
*/
- @Override
public ResultSequence evaluate(Collection args) throws DynamicError {
return upper_case(args);
}
diff --git a/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/FnYearFromDate.java b/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/FnYearFromDate.java
index d8b67cf..72cf2cc 100644
--- a/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/FnYearFromDate.java
+++ b/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/FnYearFromDate.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2005, 2009 Andrea Bittau, University College London, and others
+ * Copyright (c) 2005, 2010 Andrea Bittau, University College London, and others
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
@@ -8,6 +8,7 @@
* Contributors:
* Andrea Bittau - initial API and implementation from the PsychoPath XPath 2.0
* Mukul Gandhi - bug 274805 - improvements to xs:integer data type
+ * Mukul Gandhi - bug 280798 - PsychoPath support for JDK 1.4
*******************************************************************************/
package org.eclipse.wst.xml.xpath2.processor.internal.function;
@@ -45,7 +46,6 @@ public class FnYearFromDate extends Function {
* Dynamic error.
* @return Result of evaluation.
*/
- @Override
public ResultSequence evaluate(Collection args) throws DynamicError {
return year_from_date(args);
}
diff --git a/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/FnYearFromDateTime.java b/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/FnYearFromDateTime.java
index a87b015..8bb59ff 100644
--- a/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/FnYearFromDateTime.java
+++ b/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/FnYearFromDateTime.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2005, 2009 Andrea Bittau, University College London, and others
+ * Copyright (c) 2005, 2010 Andrea Bittau, University College London, and others
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
@@ -8,6 +8,7 @@
* Contributors:
* Andrea Bittau - initial API and implementation from the PsychoPath XPath 2.0
* Mukul Gandhi - bug 274805 - improvements to xs:integer data type
+ * Mukul Gandhi - bug 280798 - PsychoPath support for JDK 1.4
*******************************************************************************/
package org.eclipse.wst.xml.xpath2.processor.internal.function;
@@ -45,7 +46,6 @@ public class FnYearFromDateTime extends Function {
* Dynamic error.
* @return Result of evaluation.
*/
- @Override
public ResultSequence evaluate(Collection args) throws DynamicError {
return year_from_date_time(args);
}
diff --git a/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/FnYearsFromDuration.java b/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/FnYearsFromDuration.java
index a40dfa8..279a786 100644
--- a/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/FnYearsFromDuration.java
+++ b/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/FnYearsFromDuration.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2005, 2009 Andrea Bittau, University College London, and others
+ * Copyright (c) 2005, 2010 Andrea Bittau, University College London, and others
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
@@ -11,6 +11,7 @@
* Mukul Gandhi - bug 274805 - improvements to xs:integer data type
* David Carver - bug 282223 - implementation of xs:duration.
* David Carver (STAR) - bug 262765 - fixed expected xs:duration argument
+ * Mukul Gandhi - bug 280798 - PsychoPath support for JDK 1.4
*******************************************************************************/
package org.eclipse.wst.xml.xpath2.processor.internal.function;
@@ -48,7 +49,6 @@ public class FnYearsFromDuration extends Function {
* Dynamic error.
* @return Result of evaluation.
*/
- @Override
public ResultSequence evaluate(Collection args) throws DynamicError {
return years_from_duration(args);
}
diff --git a/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/FnZeroOrOne.java b/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/FnZeroOrOne.java
index 7a1108e..7d443ec 100644
--- a/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/FnZeroOrOne.java
+++ b/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/FnZeroOrOne.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2005, 2009 Andrea Bittau, University College London, and others
+ * Copyright (c) 2005, 2010 Andrea Bittau, University College London, and others
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
@@ -7,6 +7,7 @@
*
* Contributors:
* Andrea Bittau - initial API and implementation from the PsychoPath XPath 2.0
+ * Mukul Gandhi - bug 280798 - PsychoPath support for JDK 1.4
*******************************************************************************/
package org.eclipse.wst.xml.xpath2.processor.internal.function;
@@ -38,7 +39,6 @@ public class FnZeroOrOne extends Function {
* Dynamic error.
* @return Result of evaluation.
*/
- @Override
public ResultSequence evaluate(Collection args) throws DynamicError {
return zero_or_one(args);
}
diff --git a/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/FsConvertOperand.java b/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/FsConvertOperand.java
index 69610a3..70fc1ec 100644
--- a/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/FsConvertOperand.java
+++ b/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/FsConvertOperand.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2005, 2009 Andrea Bittau, University College London, and others
+ * Copyright (c) 2005, 2010 Andrea Bittau, University College London, and others
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
@@ -7,6 +7,7 @@
*
* Contributors:
* Andrea Bittau - initial API and implementation from the PsychoPath XPath 2.0
+ * Mukul Gandhi - bug 280798 - PsychoPath support for JDK 1.4
*******************************************************************************/
package org.eclipse.wst.xml.xpath2.processor.internal.function;
@@ -36,7 +37,6 @@ public class FsConvertOperand extends Function {
* Dynamic error.
* @return Result of evaluation.
*/
- @Override
public ResultSequence evaluate(Collection args) throws DynamicError {
return convert_operand(args);
}
diff --git a/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/FsDiv.java b/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/FsDiv.java
index 34e69ca..f062e77 100644
--- a/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/FsDiv.java
+++ b/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/FsDiv.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2005, 2009 Andrea Bittau, University College London, and others
+ * Copyright (c) 2005, 2010 Andrea Bittau, University College London, and others
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
@@ -8,6 +8,7 @@
* Contributors:
* Andrea Bittau - initial API and implementation from the PsychoPath XPath 2.0
* Jesper Steen Moeller - bug 285145 - implement full arity checking
+ * Mukul Gandhi - bug 280798 - PsychoPath support for JDK 1.4
*******************************************************************************/
package org.eclipse.wst.xml.xpath2.processor.internal.function;
@@ -38,7 +39,6 @@ public class FsDiv extends Function {
* Dynamic error.
* @return Result of evaluation.
*/
- @Override
public ResultSequence evaluate(Collection args) throws DynamicError {
assert args.size() >= min_arity() && args.size() <= max_arity();
diff --git a/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/FsEq.java b/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/FsEq.java
index d47199c..49036e4 100644
--- a/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/FsEq.java
+++ b/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/FsEq.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2005, 2009 Andrea Bittau, University College London, and others
+ * Copyright (c) 2005, 2010 Andrea Bittau, University College London, and others
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
@@ -13,6 +13,7 @@
* Jesper S Moller - bug 283214 - fix eq for untyped atomic values
* Jesper Steen Moeller - bug 285145 - implement full arity checking
* Jesper Steen Moeller - bug 280555 - Add pluggable collation support
+ * Mukul Gandhi - bug 280798 - PsychoPath support for JDK 1.4
*******************************************************************************/
package org.eclipse.wst.xml.xpath2.processor.internal.function;
@@ -47,7 +48,6 @@ public class FsEq extends Function {
* Dynamic error.
* @return Result of evaluation.
*/
- @Override
public ResultSequence evaluate(Collection args) throws DynamicError {
assert args.size() >= min_arity() && args.size() <= max_arity();
diff --git a/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/FsGe.java b/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/FsGe.java
index 851e4e3..64f9f83 100644
--- a/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/FsGe.java
+++ b/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/FsGe.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2005, 2009 Andrea Bittau, University College London, and others
+ * Copyright (c) 2005, 2010 Andrea Bittau, University College London, and others
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
@@ -9,6 +9,7 @@
* Andrea Bittau - initial API and implementation from the PsychoPath XPath 2.0
* Jesper Steen Moeller - bug 285145 - implement full arity checking
* Jesper Steen Mooller - bug 280555 - Add pluggable collation support
+ * Mukul Gandhi - bug 280798 - PsychoPath support for JDK 1.4
*******************************************************************************/
package org.eclipse.wst.xml.xpath2.processor.internal.function;
@@ -41,7 +42,6 @@ public class FsGe extends Function {
* Dynamic error.
* @return Result of evaluation.
*/
- @Override
public ResultSequence evaluate(Collection args) throws DynamicError {
assert args.size() >= min_arity() && args.size() <= max_arity();
diff --git a/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/FsGt.java b/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/FsGt.java
index a183727..d4a2ad0 100644
--- a/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/FsGt.java
+++ b/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/FsGt.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2005, 2009 Andrea Bittau, University College London, and others
+ * Copyright (c) 2005, 2010 Andrea Bittau, University College London, and others
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
@@ -9,6 +9,7 @@
* Andrea Bittau - initial API and implementation from the PsychoPath XPath 2.0
* Jesper Steen Moeller - bug 285145 - implement full arity checking
* Jesper Steen Moeller - bug 280555 - Add pluggable collation support
+ * Mukul Gandhi - bug 280798 - PsychoPath support for JDK 1.4
*******************************************************************************/
package org.eclipse.wst.xml.xpath2.processor.internal.function;
@@ -40,7 +41,6 @@ public class FsGt extends Function {
* Dynamic error.
* @return Result of evaluation.
*/
- @Override
public ResultSequence evaluate(Collection args) throws DynamicError {
assert args.size() >= min_arity() && args.size() <= max_arity();
diff --git a/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/FsIDiv.java b/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/FsIDiv.java
index 6111dc3..5ec6148 100644
--- a/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/FsIDiv.java
+++ b/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/FsIDiv.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2005, 2009 Andrea Bittau, University College London, and others
+ * Copyright (c) 2005, 2010 Andrea Bittau, University College London, and others
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
@@ -8,6 +8,7 @@
* Contributors:
* Andrea Bittau - initial API and implementation from the PsychoPath XPath 2.0
* Jesper Steen Moeller - bug 285145 - implement full arity checking
+ * Mukul Gandhi - bug 280798 - PsychoPath support for JDK 1.4
*******************************************************************************/
package org.eclipse.wst.xml.xpath2.processor.internal.function;
@@ -38,7 +39,6 @@ public class FsIDiv extends Function {
* Dynamic error.
* @return Result of evaluation.
*/
- @Override
public ResultSequence evaluate(Collection args) throws DynamicError {
assert args.size() >= min_arity() && args.size() <= max_arity();
diff --git a/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/FsLe.java b/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/FsLe.java
index e1ab4c2..dd8484d 100644
--- a/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/FsLe.java
+++ b/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/FsLe.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2005, 2009 Andrea Bittau, University College London, and others
+ * Copyright (c) 2005, 2010 Andrea Bittau, University College London, and others
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
@@ -9,6 +9,7 @@
* Andrea Bittau - initial API and implementation from the PsychoPath XPath 2.0
* Jesper Steen Moeller - bug 285145 - implement full arity checking
* Jesper Moller - bug 280555 - Add pluggable collation support
+ * Mukul Gandhi - bug 280798 - PsychoPath support for JDK 1.4
*******************************************************************************/
package org.eclipse.wst.xml.xpath2.processor.internal.function;
@@ -41,7 +42,6 @@ public class FsLe extends Function {
* Dynamic error.
* @return Result of evaluation.
*/
- @Override
public ResultSequence evaluate(Collection args) throws DynamicError {
assert args.size() >= min_arity() && args.size() <= max_arity();
diff --git a/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/FsLt.java b/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/FsLt.java
index 50482e1..14831bd 100644
--- a/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/FsLt.java
+++ b/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/FsLt.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2005, 2009 Andrea Bittau, University College London, and others
+ * Copyright (c) 2005, 2010 Andrea Bittau, University College London, and others
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
@@ -9,6 +9,7 @@
* Andrea Bittau - initial API and implementation from the PsychoPath XPath 2.0
* Jesper Steen Moeller - bug 285145 - implement full arity checking
* Jesper Moller - bug 280555 - Add pluggable collation support
+ * Mukul Gandhi - bug 280798 - PsychoPath support for JDK 1.4
*******************************************************************************/
package org.eclipse.wst.xml.xpath2.processor.internal.function;
@@ -40,7 +41,6 @@ public class FsLt extends Function {
* Dynamic error.
* @return Result of evaluation.
*/
- @Override
public ResultSequence evaluate(Collection args) throws DynamicError {
assert args.size() >= min_arity() && args.size() <= max_arity();
diff --git a/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/FsMinus.java b/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/FsMinus.java
index e6309b7..8b6e2d6 100644
--- a/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/FsMinus.java
+++ b/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/FsMinus.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2005, 2009 Andrea Bittau, University College London, and others
+ * Copyright (c) 2005, 2010 Andrea Bittau, University College London, and others
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
@@ -8,6 +8,7 @@
* Contributors:
* Andrea Bittau - initial API and implementation from the PsychoPath XPath 2.0
* Jesper Steen Moeller - bug 285145 - implement full arity checking
+ * Mukul Gandhi - bug 280798 - PsychoPath support for JDK 1.4
*******************************************************************************/
package org.eclipse.wst.xml.xpath2.processor.internal.function;
@@ -38,7 +39,6 @@ public class FsMinus extends Function {
* Dynamic error.
* @return Result of evaluation.
*/
- @Override
public ResultSequence evaluate(Collection args) throws DynamicError {
assert args.size() >= min_arity() && args.size() <= max_arity();
diff --git a/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/FsMod.java b/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/FsMod.java
index 1fc361d..68f4056 100644
--- a/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/FsMod.java
+++ b/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/FsMod.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2005, 2009 Andrea Bittau, University College London, and others
+ * Copyright (c) 2005, 2010 Andrea Bittau, University College London, and others
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
@@ -8,6 +8,7 @@
* Contributors:
* Andrea Bittau - initial API and implementation from the PsychoPath XPath 2.0
* Jesper Steen Moeller - bug 285145 - implement full arity checking
+ * Mukul Gandhi - bug 280798 - PsychoPath support for JDK 1.4
*******************************************************************************/
package org.eclipse.wst.xml.xpath2.processor.internal.function;
@@ -38,7 +39,6 @@ public class FsMod extends Function {
* Dynamic error.
* @return Result of evaluation.
*/
- @Override
public ResultSequence evaluate(Collection args) throws DynamicError {
assert args.size() >= min_arity() && args.size() <= max_arity();
diff --git a/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/FsNe.java b/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/FsNe.java
index 521837c..4bf4b27 100644
--- a/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/FsNe.java
+++ b/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/FsNe.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2005, 2009 Andrea Bittau, University College London, and others
+ * Copyright (c) 2005, 2010 Andrea Bittau, University College London, and others
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
@@ -9,6 +9,7 @@
* Andrea Bittau - initial API and implementation from the PsychoPath XPath 2.0
* Jesper Steen Moeller - bug 285145 - implement full arity checking
* Jesper Moller - bug 280555 - Add pluggable collation support
+ * Mukul Gandhi - bug 280798 - PsychoPath support for JDK 1.4
*******************************************************************************/
package org.eclipse.wst.xml.xpath2.processor.internal.function;
@@ -40,7 +41,6 @@ public class FsNe extends Function {
* Dynamic error.
* @return Result of evaluation.
*/
- @Override
public ResultSequence evaluate(Collection args) throws DynamicError {
assert args.size() >= min_arity() && args.size() <= max_arity();
diff --git a/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/FsPlus.java b/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/FsPlus.java
index 61d14bd..817f9d3 100644
--- a/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/FsPlus.java
+++ b/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/FsPlus.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2005, 2009 Andrea Bittau, University College London, and others
+ * Copyright (c) 2005, 2010 Andrea Bittau, University College London, and others
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
@@ -9,6 +9,7 @@
* Andrea Bittau - initial API and implementation from the PsychoPath XPath 2.0
* Jesper Steen Moeller - bug 285145 - implement full arity checking
* Jesper Steen Moller - Bug 286062 - Add type promotion for numeric operators
+ * Mukul Gandhi - bug 280798 - PsychoPath support for JDK 1.4
*******************************************************************************/
package org.eclipse.wst.xml.xpath2.processor.internal.function;
@@ -43,7 +44,6 @@ public class FsPlus extends Function {
* Dynamic error.
* @return Result of evaluation.
*/
- @Override
public ResultSequence evaluate(Collection args) throws DynamicError {
assert args.size() >= min_arity() && args.size() <= max_arity();
diff --git a/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/FsTimes.java b/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/FsTimes.java
index 322eed9..28266dc 100644
--- a/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/FsTimes.java
+++ b/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/FsTimes.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2005, 2009 Andrea Bittau, University College London, and others
+ * Copyright (c) 2005, 2010 Andrea Bittau, University College London, and others
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
@@ -8,6 +8,7 @@
* Contributors:
* Andrea Bittau - initial API and implementation from the PsychoPath XPath 2.0
* Jesper Steen Moeller - bug 285145 - implement full arity checking
+ * Mukul Gandhi - bug 280798 - PsychoPath support for JDK 1.4
*******************************************************************************/
package org.eclipse.wst.xml.xpath2.processor.internal.function;
@@ -38,7 +39,6 @@ public class FsTimes extends Function {
* Dynamic error.
* @return Result of evaluation.
*/
- @Override
public ResultSequence evaluate(Collection args) throws DynamicError {
assert args.size() >= min_arity() && args.size() <= max_arity();
diff --git a/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/OpExcept.java b/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/OpExcept.java
index f471b2d..097fafc 100644
--- a/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/OpExcept.java
+++ b/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/OpExcept.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2005, 2009 Andrea Bittau, University College London, and others
+ * Copyright (c) 2005, 2010 Andrea Bittau, University College London, and others
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
@@ -8,6 +8,7 @@
* Contributors:
* Andrea Bittau - initial API and implementation from the PsychoPath XPath 2.0
* Jesper Steen Moeller - bug 285145 - implement full arity checking
+ * Mukul Gandhi - bug 280798 - PsychoPath support for JDK 1.4
*******************************************************************************/
package org.eclipse.wst.xml.xpath2.processor.internal.function;
@@ -42,7 +43,6 @@ public class OpExcept extends Function {
* Dynamic error.
* @return Result of evaluation.
*/
- @Override
public ResultSequence evaluate(Collection args) throws DynamicError {
assert args.size() >= min_arity() && args.size() <= max_arity();
diff --git a/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/OpIntersect.java b/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/OpIntersect.java
index e0185c5..d349ed3 100644
--- a/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/OpIntersect.java
+++ b/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/OpIntersect.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2005, 2009 Andrea Bittau, University College London, and others
+ * Copyright (c) 2005, 2010 Andrea Bittau, University College London, and others
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
@@ -8,6 +8,7 @@
* Contributors:
* Andrea Bittau - initial API and implementation from the PsychoPath XPath 2.0
* Jesper Steen Moeller - bug 285145 - implement full arity checking
+ * Mukul Gandhi - bug 280798 - PsychoPath support for JDK 1.4
*******************************************************************************/
package org.eclipse.wst.xml.xpath2.processor.internal.function;
@@ -42,7 +43,6 @@ public class OpIntersect extends Function {
* Dynamic error.
* @return Result of evaluation.
*/
- @Override
public ResultSequence evaluate(Collection args) throws DynamicError {
assert args.size() >= min_arity() && args.size() <= max_arity();
diff --git a/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/OpTo.java b/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/OpTo.java
index 1d94b91..9989f41 100644
--- a/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/OpTo.java
+++ b/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/OpTo.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2005, 2009 Andrea Bittau, University College London, and others
+ * Copyright (c) 2005, 2010 Andrea Bittau, University College London, and others
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
@@ -8,6 +8,7 @@
* Contributors:
* Andrea Bittau - initial API and implementation from the PsychoPath XPath 2.0
* Mukul Gandhi - bug 274805 - improvements to xs:integer data type
+ * Mukul Gandhi - bug 280798 - PsychoPath support for JDK 1.4
*******************************************************************************/
package org.eclipse.wst.xml.xpath2.processor.internal.function;
@@ -43,7 +44,6 @@ public class OpTo extends Function {
* Dynamic error.
* @return Result of evaluation.
*/
- @Override
public ResultSequence evaluate(Collection args) throws DynamicError {
assert args.size() == 2;
diff --git a/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/OpUnion.java b/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/OpUnion.java
index f76601f..63681df 100644
--- a/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/OpUnion.java
+++ b/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/function/OpUnion.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2005, 2009 Andrea Bittau, University College London, and others
+ * Copyright (c) 2005, 2010 Andrea Bittau, University College London, and others
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
@@ -8,6 +8,7 @@
* Contributors:
* Andrea Bittau - initial API and implementation from the PsychoPath XPath 2.0
* Jesper Steen Moeller - bug 285145 - implement full arity checking
+ * Mukul Gandhi - bug 280798 - PsychoPath support for JDK 1.4
*******************************************************************************/
package org.eclipse.wst.xml.xpath2.processor.internal.function;
@@ -42,7 +43,6 @@ public class OpUnion extends Function {
* Dynamic error.
* @return Result of evaluation.
*/
- @Override
public ResultSequence evaluate(Collection args) throws DynamicError {
assert args.size() >= min_arity() && args.size() <= max_arity();
diff --git a/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/types/AnyType.java b/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/types/AnyType.java
index 6724dd3..79dabbd 100644
--- a/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/types/AnyType.java
+++ b/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/types/AnyType.java
@@ -11,6 +11,8 @@
package org.eclipse.wst.xml.xpath2.processor.internal.types;
+import org.eclipse.wst.xml.xpath2.api.typesystem.TypeDefinition;
+
/**
* Common base for every type
*/
@@ -28,4 +30,11 @@ public abstract class AnyType {
* @return Datatype's name
*/
public abstract String string_value();
+
+ /**
+ * Returns the "new style" of TypeDefinition for this item.
+ *
+ * @return Type definition (possibly backed by a schema type)
+ */
+ public abstract TypeDefinition getTypeDefinition();
}
diff --git a/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/types/AttrType.java b/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/types/AttrType.java
index 3acf4d9..3756183 100644
--- a/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/types/AttrType.java
+++ b/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/types/AttrType.java
@@ -21,13 +21,16 @@
package org.eclipse.wst.xml.xpath2.processor.internal.types;
+import java.util.Collections;
import java.util.List;
import org.eclipse.wst.xml.xpath2.api.typesystem.TypeDefinition;
import org.eclipse.wst.xml.xpath2.api.typesystem.TypeModel;
import org.eclipse.wst.xml.xpath2.processor.ResultSequence;
import org.eclipse.wst.xml.xpath2.processor.ResultSequenceFactory;
+import org.eclipse.wst.xml.xpath2.processor.internal.types.builtin.BuiltinTypeLibrary;
import org.w3c.dom.Attr;
+import org.w3c.dom.Element;
import org.w3c.dom.TypeInfo;
/**
@@ -62,7 +65,6 @@ public class AttrType extends NodeType {
*
* @return "attribute" which is the datatype's full pathname
*/
- @Override
public String string_type() {
return ATTRIBUTE;
}
@@ -72,7 +74,6 @@ public class AttrType extends NodeType {
*
* @return String representation of the attribute being stored
*/
- @Override
public String string_value() {
return _value.getValue();
}
@@ -82,14 +83,13 @@ public class AttrType extends NodeType {
*
* @return New ResultSequence consisting of the attribute being stored
*/
- @Override
public ResultSequence typed_value() {
ResultSequence rs = ResultSequenceFactory.create_new();
TypeDefinition typeDef = getType();
if (typeDef != null) {
- List<Short> types = typeDef.getSimpleTypes(_value);
+ List/*<Short>*/ types = typeDef.getSimpleTypes(_value);
rs = getXDMTypedValue(typeDef, types);
}
else {
@@ -103,7 +103,6 @@ public class AttrType extends NodeType {
*
* @return Name of the node
*/
- @Override
public QName node_name() {
QName name = new QName(_value.getPrefix(), _value.getLocalName(),
_value.getNamespaceURI());
@@ -111,7 +110,6 @@ public class AttrType extends NodeType {
return name;
}
- @Override
/**
* Checks if the current node is of type ID
* @since 1.1;
@@ -124,7 +122,6 @@ public class AttrType extends NodeType {
*
* @since 1.1
*/
- @Override
public boolean isIDREF() {
return isAttrType(SCHEMA_TYPE_IDREF);
}
@@ -140,5 +137,9 @@ public class AttrType extends NodeType {
TypeInfo typeInfo = _value.getSchemaTypeInfo();
return isType(typeInfo, typeName);
}
+
+ public TypeDefinition getTypeDefinition() {
+ return BuiltinTypeLibrary.XS_UNTYPEDATOMIC;
+ }
}
diff --git a/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/types/CommentType.java b/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/types/CommentType.java
index 3452ac5..88ee37f 100644
--- a/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/types/CommentType.java
+++ b/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/types/CommentType.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2005, 2009 Andrea Bittau, University College London, and others
+ * Copyright (c) 2005, 2010 Andrea Bittau, University College London, and others
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
@@ -9,14 +9,19 @@
* Andrea Bittau - initial API and implementation from the PsychoPath XPath 2.0
* Jesper Moller - bug 275610 - Avoid big time and memory overhead for externals
* David Carver - bug 281186 - implementation of fn:id and fn:idref
+ * Mukul Gandhi - bug 280798 - PsychoPath support for JDK 1.4
*******************************************************************************/
package org.eclipse.wst.xml.xpath2.processor.internal.types;
+import java.util.Collections;
+
import org.w3c.dom.*;
+import org.eclipse.wst.xml.xpath2.api.typesystem.TypeDefinition;
import org.eclipse.wst.xml.xpath2.api.typesystem.TypeModel;
import org.eclipse.wst.xml.xpath2.processor.ResultSequence;
import org.eclipse.wst.xml.xpath2.processor.ResultSequenceFactory;
+import org.eclipse.wst.xml.xpath2.processor.internal.types.builtin.BuiltinTypeLibrary;
/**
* A representation of the CommentType datatype
@@ -41,7 +46,6 @@ public class CommentType extends NodeType {
*
* @return "comment" which is the datatype's full pathname
*/
- @Override
public String string_type() {
return COMMENT;
}
@@ -51,7 +55,6 @@ public class CommentType extends NodeType {
*
* @return String representation of the comment being stored
*/
- @Override
public String string_value() {
return _value.getNodeValue();
}
@@ -61,7 +64,6 @@ public class CommentType extends NodeType {
*
* @return New ResultSequence consisting of the comment stored
*/
- @Override
public ResultSequence typed_value() {
ResultSequence rs = ResultSequenceFactory.create_new();
@@ -75,7 +77,6 @@ public class CommentType extends NodeType {
*
* @return null
*/
- @Override
public QName node_name() {
return null;
}
@@ -83,7 +84,6 @@ public class CommentType extends NodeType {
/**
* @since 1.1
*/
- @Override
public boolean isID() {
return false;
}
@@ -91,8 +91,12 @@ public class CommentType extends NodeType {
/**
* @since 1.1
*/
- @Override
public boolean isIDREF() {
return false;
}
+
+ public TypeDefinition getTypeDefinition() {
+ return BuiltinTypeLibrary.XS_UNTYPEDATOMIC;
+ }
+
}
diff --git a/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/types/DocType.java b/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/types/DocType.java
index 30dc186..23f1ea1 100644
--- a/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/types/DocType.java
+++ b/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/types/DocType.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2005, 2009 Andrea Bittau, University College London, and others
+ * Copyright (c) 2005, 2010 Andrea Bittau, University College London, and others
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
@@ -8,14 +8,17 @@
* Contributors:
* Andrea Bittau - initial API and implementation from the PsychoPath XPath 2.0
* Jesper Moller - bug 275610 - Avoid big time and memory overhead for externals
+ * Mukul Gandhi - bug 280798 - PsychoPath support for JDK 1.4
*******************************************************************************/
package org.eclipse.wst.xml.xpath2.processor.internal.types;
import org.w3c.dom.*;
+import org.eclipse.wst.xml.xpath2.api.typesystem.TypeDefinition;
import org.eclipse.wst.xml.xpath2.api.typesystem.TypeModel;
import org.eclipse.wst.xml.xpath2.processor.ResultSequence;
import org.eclipse.wst.xml.xpath2.processor.ResultSequenceFactory;
+import org.eclipse.wst.xml.xpath2.processor.internal.types.builtin.BuiltinTypeLibrary;
/**
* A representation of the DocumentType datatype
@@ -51,7 +54,6 @@ public class DocType extends NodeType {
*
* @return "document" which is the datatype's full pathname
*/
- @Override
public String string_type() {
return DOCUMENT;
}
@@ -61,7 +63,6 @@ public class DocType extends NodeType {
*
* @return String representation of the document being stored
*/
- @Override
public String string_value() {
// XXX caching
if (_string_value == null)
@@ -75,7 +76,6 @@ public class DocType extends NodeType {
*
* @return New ResultSequence consisting of the document being stored
*/
- @Override
public ResultSequence typed_value() {
ResultSequence rs = ResultSequenceFactory.create_new();
@@ -90,7 +90,6 @@ public class DocType extends NodeType {
*
* @return QName representation of the name of the node
*/
- @Override
public QName node_name() {
return null;
}
@@ -98,7 +97,6 @@ public class DocType extends NodeType {
/**
* @since 1.1
*/
- @Override
public boolean isID() {
// TODO Auto-generated method stub
return false;
@@ -107,8 +105,12 @@ public class DocType extends NodeType {
/**
* @since 1.1
*/
- @Override
public boolean isIDREF() {
return false;
}
+
+ public TypeDefinition getTypeDefinition() {
+ return BuiltinTypeLibrary.XS_UNTYPED;
+ }
+
}
diff --git a/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/types/ElementType.java b/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/types/ElementType.java
index c97fa49..61f6598 100644
--- a/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/types/ElementType.java
+++ b/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/types/ElementType.java
@@ -26,6 +26,7 @@ import org.eclipse.wst.xml.xpath2.api.typesystem.TypeDefinition;
import org.eclipse.wst.xml.xpath2.api.typesystem.TypeModel;
import org.eclipse.wst.xml.xpath2.processor.ResultSequence;
import org.eclipse.wst.xml.xpath2.processor.ResultSequenceFactory;
+import org.eclipse.wst.xml.xpath2.processor.internal.types.builtin.BuiltinTypeLibrary;
import org.w3c.dom.Element;
import org.w3c.dom.Node;
import org.w3c.dom.NodeList;
@@ -80,7 +81,6 @@ public class ElementType extends NodeType {
*
* @return "element" which is the datatype's full pathname
*/
- @Override
public String string_type() {
return ELEMENT;
}
@@ -90,7 +90,6 @@ public class ElementType extends NodeType {
*
* @return String representation of the element being stored
*/
- @Override
public String string_value() {
// XXX can we cache ?
if (_string_value != null)
@@ -106,7 +105,6 @@ public class ElementType extends NodeType {
*
* @return New ResultSequence consisting of the element stored
*/
- @Override
public ResultSequence typed_value() {
ResultSequence rs = ResultSequenceFactory.create_new();
@@ -168,14 +166,12 @@ public class ElementType extends NodeType {
*
* @return QName representation of the name of the node
*/
- @Override
public QName node_name() {
QName name = new QName(_value.getPrefix(), _value.getLocalName(), _value.getNamespaceURI());
return name;
}
- @Override
public ResultSequence nilled() {
ResultSequence rs = ResultSequenceFactory.create_new();
@@ -193,7 +189,6 @@ public class ElementType extends NodeType {
/**
* @since 1.1
*/
- @Override
public boolean isID() {
return isElementType(SCHEMA_TYPE_ID);
}
@@ -201,7 +196,6 @@ public class ElementType extends NodeType {
/**
* @since 1.1
*/
- @Override
public boolean isIDREF() {
return isElementType(SCHEMA_TYPE_IDREF);
}
@@ -210,5 +204,8 @@ public class ElementType extends NodeType {
TypeInfo typeInfo = _value.getSchemaTypeInfo();
return isType(typeInfo, typeName);
}
-
+
+ public TypeDefinition getTypeDefinition() {
+ return BuiltinTypeLibrary.XS_UNTYPED;
+ }
}
diff --git a/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/types/NodeType.java b/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/types/NodeType.java
index cfb7ed4..beeaebb 100644
--- a/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/types/NodeType.java
+++ b/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/types/NodeType.java
@@ -243,7 +243,7 @@ public abstract class NodeType extends AnyType {
/*
* Construct the "typed value" from a "string value", given the simpleType of the node.
*/
- protected ResultSequence getXDMTypedValue(TypeDefinition typeDef, List<Short> itemValTypes) {
+ protected ResultSequence getXDMTypedValue(TypeDefinition typeDef, List/*<Short>*/ itemValTypes) {
ResultSequence rs = ResultSequenceFactory.create_new();
@@ -285,7 +285,7 @@ public abstract class NodeType extends AnyType {
/*
* Helper method to construct typed value of an XDM node.
*/
- private ResultSequence getTypedValueForSimpleContent(SimpleTypeDefinition simpType, List<Short> itemValueTypes) {
+ private ResultSequence getTypedValueForSimpleContent(SimpleTypeDefinition simpType, List/*<Short>*/ itemValueTypes) {
ResultSequence rs = ResultSequenceFactory.create_new();
@@ -313,7 +313,7 @@ public abstract class NodeType extends AnyType {
/*
* If the variety of simpleType was 'list', add the typed "list item" values to the parent result set.
*/
- private void addAtomicListItemsToResultSet(SimpleTypeDefinition simpType, List<Short> itemValueTypes, ResultSequence rs) {
+ private void addAtomicListItemsToResultSet(SimpleTypeDefinition simpType, List/*<Short>*/ itemValueTypes, ResultSequence rs) {
// tokenize the string value by a 'longest sequence' of white-spaces. this gives us the list items as string values.
String[] listItemsStrValues = string_value().split("\\s+");
@@ -331,7 +331,7 @@ public abstract class NodeType extends AnyType {
// here the list items may have different atomic types
for (int listItemIdx = 0; listItemIdx < listItemsStrValues.length; listItemIdx++) {
String listItem = listItemsStrValues[listItemIdx];
- rs.add(SchemaTypeValueFactory.newSchemaTypeValue(itemValueTypes.get(listItemIdx), listItem));
+ rs.add(SchemaTypeValueFactory.newSchemaTypeValue(((Short)itemValueTypes.get(listItemIdx)).shortValue(), listItem));
}
}
@@ -345,7 +345,7 @@ public abstract class NodeType extends AnyType {
*/
private void getTypedValueForVarietyUnion(SimpleTypeDefinition simpType, ResultSequence rs) {
- List<SimpleTypeDefinition> memberTypes = simpType.getMemberTypes();
+ List/*<SimpleTypeDefinition>*/ memberTypes = simpType.getMemberTypes();
// check member types in order, to find that which one can successfully validate the string value.
for (int memTypeIdx = 0; memTypeIdx < memberTypes.size(); memTypeIdx++) {
PrimitiveType memSimpleType = (PrimitiveType) memberTypes.get(memTypeIdx);
diff --git a/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/types/PIType.java b/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/types/PIType.java
index 04e9baf..b7f1055 100644
--- a/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/types/PIType.java
+++ b/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/types/PIType.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2005, 2009 Andrea Bittau, University College London, and others
+ * Copyright (c) 2005, 2010 Andrea Bittau, University College London, and others
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
@@ -9,14 +9,17 @@
* Andrea Bittau - initial API and implementation from the PsychoPath XPath 2.0
* Jesper Moller- bug 275610 - Avoid big time and memory overhead for externals
* David Carver - bug 281186 - implementation of fn:id and fn:idref
+ * Mukul Gandhi - bug 280798 - PsychoPath support for JDK 1.4
*******************************************************************************/
package org.eclipse.wst.xml.xpath2.processor.internal.types;
import org.w3c.dom.*;
+import org.eclipse.wst.xml.xpath2.api.typesystem.TypeDefinition;
import org.eclipse.wst.xml.xpath2.api.typesystem.TypeModel;
import org.eclipse.wst.xml.xpath2.processor.ResultSequence;
import org.eclipse.wst.xml.xpath2.processor.ResultSequenceFactory;
+import org.eclipse.wst.xml.xpath2.processor.internal.types.builtin.BuiltinTypeLibrary;
/**
* A representation of the ProcessingInstruction datatype
@@ -52,7 +55,6 @@ public class PIType extends NodeType {
*
* @return "processing-instruction" which is the datatype's full pathname
*/
- @Override
public String string_type() {
return PROCESSING_INSTRUCTION;
}
@@ -63,7 +65,6 @@ public class PIType extends NodeType {
*
* @return String representation of the actual processing instruction stored
*/
- @Override
public String string_value() {
return _value.getData();
}
@@ -75,7 +76,6 @@ public class PIType extends NodeType {
* @return New ResultSequence consisting of the processing instruction
* stored
*/
- @Override
public ResultSequence typed_value() {
ResultSequence rs = ResultSequenceFactory.create_new();
@@ -89,7 +89,6 @@ public class PIType extends NodeType {
*
* @return A QName representation of the node's name
*/
- @Override
public QName node_name() {
QName name = new QName(null, _value.getTarget());
@@ -101,7 +100,6 @@ public class PIType extends NodeType {
/**
* @since 1.1
*/
- @Override
public boolean isID() {
return false;
}
@@ -109,8 +107,11 @@ public class PIType extends NodeType {
/**
* @since 1.1
*/
- @Override
public boolean isIDREF() {
return false;
}
+
+ public TypeDefinition getTypeDefinition() {
+ return BuiltinTypeLibrary.XS_UNTYPEDATOMIC;
+ }
}
diff --git a/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/types/QName.java b/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/types/QName.java
index c06c464..7f33593 100644
--- a/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/types/QName.java
+++ b/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/types/QName.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2005, 2009 Andrea Bittau, University College London, and others
+ * Copyright (c) 2005, 2010 Andrea Bittau, University College London, and others
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
@@ -9,15 +9,18 @@
* Andrea Bittau - initial API and implementation from the PsychoPath XPath 2.0
* Jesper Moller- bug 281159 - debugging convenience toString method
* David Carver (STAR) - bug 288886 - add unit tests and fix fn:resolve-qname function
+ * Mukul Gandhi - bug 280798 - PsychoPath support for JDK 1.4
*******************************************************************************/
package org.eclipse.wst.xml.xpath2.processor.internal.types;
+import org.eclipse.wst.xml.xpath2.api.typesystem.TypeDefinition;
import org.eclipse.wst.xml.xpath2.processor.DynamicContext;
import org.eclipse.wst.xml.xpath2.processor.DynamicError;
import org.eclipse.wst.xml.xpath2.processor.ResultSequence;
import org.eclipse.wst.xml.xpath2.processor.ResultSequenceFactory;
import org.eclipse.wst.xml.xpath2.processor.internal.function.*;
+import org.eclipse.wst.xml.xpath2.processor.internal.types.builtin.BuiltinTypeLibrary;
/**
* A representation of a QName datatype (name of a node)
@@ -87,10 +90,12 @@ public class QName extends CtrType implements CmpEq {
*/
public static QName parse_QName(String str) {
int occurs = 0;
- for (Character ch : str.toCharArray()) {
- if (ch == ':') {
- occurs +=1;
- }
+
+ char[] strChrArr = str.toCharArray();
+ for (int chrIndx = 0; chrIndx < strChrArr.length; chrIndx++) {
+ if (strChrArr[chrIndx] == ':') {
+ occurs += 1;
+ }
}
if (occurs > 1) {
@@ -118,7 +123,6 @@ public class QName extends CtrType implements CmpEq {
* @return New ResultSequence consisting of the QName supplied
* @throws DynamicError
*/
- @Override
public ResultSequence constructor(ResultSequence arg) throws DynamicError {
ResultSequence rs = ResultSequenceFactory.create_new();
@@ -146,7 +150,6 @@ public class QName extends CtrType implements CmpEq {
*
* @return String representation of the node name
*/
- @Override
public String string_value() {
return string();
}
@@ -156,7 +159,6 @@ public class QName extends CtrType implements CmpEq {
*
* @return "xs:QName" which is the datatype's full pathname
*/
- @Override
public String string_type() {
return XS_Q_NAME;
}
@@ -166,7 +168,6 @@ public class QName extends CtrType implements CmpEq {
*
* @return "QName" which is the datatype's name
*/
- @Override
public String type_name() {
return "QName";
}
@@ -262,7 +263,6 @@ public class QName extends CtrType implements CmpEq {
* The object to compare with. Should be of type QName
* @return True if the two represent the same node. False otherwise
*/
- @Override
public boolean equals(Object obj) {
// make sure we are comparing a qname
@@ -305,7 +305,6 @@ public class QName extends CtrType implements CmpEq {
*
* @return The hashcode for the full pathname
*/
- @Override
public int hashCode() {
int namespace = 3;
int local = 4;
@@ -340,8 +339,11 @@ public class QName extends CtrType implements CmpEq {
return equals(val);
}
- @Override
public String toString() {
return string();
}
+
+ public TypeDefinition getTypeDefinition() {
+ return BuiltinTypeLibrary.XS_QNAME;
+ }
}
diff --git a/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/types/TextType.java b/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/types/TextType.java
index c5456f8..a9545e7 100644
--- a/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/types/TextType.java
+++ b/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/types/TextType.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2005, 2009 Andrea Bittau, University College London, and others
+ * Copyright (c) 2005, 2010 Andrea Bittau, University College London, and others
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
@@ -9,14 +9,17 @@
* Andrea Bittau - initial API and implementation from the PsychoPath XPath 2.0
* Jesper Moller- bug 275610 - Avoid big time and memory overhead for externals
* David Carver - bug 281186 - implementation of fn:id and fn:idref
+ * Mukul Gandhi - bug 280798 - PsychoPath support for JDK 1.4
*******************************************************************************/
package org.eclipse.wst.xml.xpath2.processor.internal.types;
import org.w3c.dom.*;
+import org.eclipse.wst.xml.xpath2.api.typesystem.TypeDefinition;
import org.eclipse.wst.xml.xpath2.api.typesystem.TypeModel;
import org.eclipse.wst.xml.xpath2.processor.ResultSequence;
import org.eclipse.wst.xml.xpath2.processor.ResultSequenceFactory;
+import org.eclipse.wst.xml.xpath2.processor.internal.types.builtin.BuiltinTypeLibrary;
/**
* A representation of the TextType datatype
@@ -41,7 +44,6 @@ public class TextType extends NodeType {
*
* @return "text" which is the datatype's name
*/
- @Override
public String string_type() {
return TEXT;
}
@@ -51,7 +53,6 @@ public class TextType extends NodeType {
*
* @return String representation of the actual value stored
*/
- @Override
public String string_value() {
return _value.getNodeValue();
}
@@ -61,7 +62,6 @@ public class TextType extends NodeType {
*
* @return New ResultSequence consisting of the Text value stored
*/
- @Override
public ResultSequence typed_value() {
ResultSequence rs = ResultSequenceFactory.create_new();
@@ -75,7 +75,6 @@ public class TextType extends NodeType {
*
* @return null (no user defined name for this node gets defined)
*/
- @Override
public QName node_name() {
return null;
}
@@ -84,7 +83,6 @@ public class TextType extends NodeType {
* Will always return false;
* @since 1.1
*/
- @Override
public boolean isID() {
return false;
@@ -94,8 +92,11 @@ public class TextType extends NodeType {
*
* @since 1.1
*/
- @Override
public boolean isIDREF() {
return false;
}
+
+ public TypeDefinition getTypeDefinition() {
+ return BuiltinTypeLibrary.XS_UNTYPEDATOMIC;
+ }
}
diff --git a/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/types/XPathDecimalFormat.java b/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/types/XPathDecimalFormat.java
index 2443712..01f6e48 100644
--- a/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/types/XPathDecimalFormat.java
+++ b/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/types/XPathDecimalFormat.java
@@ -8,6 +8,7 @@
* Contributors:
* David Carver - initial API and implementation
* Jesper Steen Moller - bug 283404 - fixed locale
+ * Mukul Gandhi - bug 280798 - PsychoPath support for JDK 1.4
*******************************************************************************/
package org.eclipse.wst.xml.xpath2.processor.internal.types;
@@ -53,7 +54,7 @@ public class XPathDecimalFormat extends DecimalFormat {
private String formatXPath(Object obj) {
String curPattern = toPattern();
- String newPattern = curPattern.replace("E0", "");
+ String newPattern = curPattern.replaceAll("E0", "");
if (obj instanceof Float) {
return formatFloatValue(obj, curPattern, newPattern);
}
@@ -78,22 +79,22 @@ public class XPathDecimalFormat extends DecimalFormat {
private void doubleXPathPattern(Object obj, String curPattern,
String newPattern) {
- BigDecimal doubValue = BigDecimal.valueOf(((Double) obj));
+ BigDecimal doubValue = new BigDecimal((((Double) obj)).doubleValue());
BigDecimal minValue = new BigDecimal("-1E6");
BigDecimal maxValue = new BigDecimal("1E6");
if (doubValue.compareTo(minValue) > 0 && doubValue.compareTo(maxValue) < 0) {
applyPattern(newPattern);
} else { //if (doubValue.compareTo(minValue) < 0) {
- applyPattern(curPattern.replace("0.#", "0.0"));
+ applyPattern(curPattern.replaceAll("0\\.#", "0.0"));
}
}
private boolean isDoublePositiveInfinity(Double doubleValue) {
- return doubleValue == Double.POSITIVE_INFINITY;
+ return doubleValue.doubleValue() == Double.POSITIVE_INFINITY;
}
private boolean isDoubleNegativeInfinity(Double doubleValue) {
- return doubleValue == Double.NEGATIVE_INFINITY;
+ return doubleValue.doubleValue() == Double.NEGATIVE_INFINITY;
}
private String formatFloatValue(Object obj, String curPattern,
@@ -110,20 +111,20 @@ public class XPathDecimalFormat extends DecimalFormat {
}
private boolean isFloatPosInfinity(Float floatValue) {
- return floatValue == Float.POSITIVE_INFINITY;
+ return floatValue.floatValue() == Float.POSITIVE_INFINITY;
}
private boolean isFloatNegInfinity(Float floatValue) {
- return floatValue == Float.NEGATIVE_INFINITY;
+ return floatValue.floatValue() == Float.NEGATIVE_INFINITY;
}
private void floatXPathPattern(String curPattern, String newPattern,
Float floatValue) {
- if (floatValue > -1E6f && floatValue < 1E6f) {
+ if (floatValue.floatValue() > -1E6f && floatValue.floatValue() < 1E6f) {
applyPattern(newPattern);
- } else if (floatValue <= -1E6f) {
- applyPattern(curPattern.replace("0.#", "0.0" ));
+ } else if (floatValue.floatValue() <= -1E6f) {
+ applyPattern(curPattern.replaceAll("0\\.#", "0.0" ));
}
}
diff --git a/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/types/XSAnyURI.java b/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/types/XSAnyURI.java
index 0e1a4bb..22cdb36 100644
--- a/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/types/XSAnyURI.java
+++ b/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/types/XSAnyURI.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2005, 2009 Andrea Bittau, University College London, and others
+ * Copyright (c) 2005, 2010 Andrea Bittau, University College London, and others
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
@@ -12,10 +12,12 @@
* untypedAtomic, and anyURI are allowed.
* David Carver (STAR) - bug 283777 - implemented gt, lt comparison code.
* Jesper Steen Moller - bug 281159 - added promotion of xs:anyURI to string (reverse case)
+ * Mukul Gandhi - bug 280798 - PsychoPath support for JDK 1.4
*******************************************************************************/
package org.eclipse.wst.xml.xpath2.processor.internal.types;
+import org.eclipse.wst.xml.xpath2.api.typesystem.TypeDefinition;
import org.eclipse.wst.xml.xpath2.processor.DynamicContext;
import org.eclipse.wst.xml.xpath2.processor.DynamicError;
import org.eclipse.wst.xml.xpath2.processor.ResultSequence;
@@ -23,6 +25,7 @@ import org.eclipse.wst.xml.xpath2.processor.ResultSequenceFactory;
import org.eclipse.wst.xml.xpath2.processor.internal.function.CmpEq;
import org.eclipse.wst.xml.xpath2.processor.internal.function.CmpGt;
import org.eclipse.wst.xml.xpath2.processor.internal.function.CmpLt;
+import org.eclipse.wst.xml.xpath2.processor.internal.types.builtin.BuiltinTypeLibrary;
/**
* Represents a Universal Resource Identifier (URI) reference
@@ -54,7 +57,6 @@ public class XSAnyURI extends CtrType implements CmpEq, CmpGt, CmpLt {
*
* @return "xs:anyURI", the full type pathname of this datatype
*/
- @Override
public String string_type() {
return XS_ANY_URI;
}
@@ -64,7 +66,6 @@ public class XSAnyURI extends CtrType implements CmpEq, CmpGt, CmpLt {
*
* @return "anyURI", the type name of this datatype
*/
- @Override
public String type_name() {
return "anyURI";
}
@@ -76,7 +77,6 @@ public class XSAnyURI extends CtrType implements CmpEq, CmpGt, CmpLt {
* @return the URI value held by this instance of the URI datatype as a
* String
*/
- @Override
public String string_value() {
return _value;
}
@@ -90,7 +90,6 @@ public class XSAnyURI extends CtrType implements CmpEq, CmpGt, CmpLt {
* @throws DynamicError
* @return new result sequence consisting of the URI supplied
*/
- @Override
public ResultSequence constructor(ResultSequence arg) throws DynamicError {
ResultSequence rs = ResultSequenceFactory.create_new();
@@ -171,4 +170,7 @@ public class XSAnyURI extends CtrType implements CmpEq, CmpGt, CmpLt {
return false;
}
+ public TypeDefinition getTypeDefinition() {
+ return BuiltinTypeLibrary.XS_ANYURI;
+ }
}
diff --git a/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/types/XSBase64Binary.java b/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/types/XSBase64Binary.java
index ec96803..831e373 100644
--- a/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/types/XSBase64Binary.java
+++ b/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/types/XSBase64Binary.java
@@ -7,17 +7,20 @@
*
* Contributors:
* Mukul Gandhi - bug 281046 - initial API and implementation
+ * Mukul Gandhi - bug 280798 - PsychoPath support for JDK 1.4
*******************************************************************************/
package org.eclipse.wst.xml.xpath2.processor.internal.types;
import org.apache.xerces.impl.dv.util.Base64;
import org.apache.xerces.impl.dv.util.HexBin;
+import org.eclipse.wst.xml.xpath2.api.typesystem.TypeDefinition;
import org.eclipse.wst.xml.xpath2.processor.DynamicContext;
import org.eclipse.wst.xml.xpath2.processor.DynamicError;
import org.eclipse.wst.xml.xpath2.processor.ResultSequence;
import org.eclipse.wst.xml.xpath2.processor.ResultSequenceFactory;
import org.eclipse.wst.xml.xpath2.processor.internal.function.CmpEq;
+import org.eclipse.wst.xml.xpath2.processor.internal.types.builtin.BuiltinTypeLibrary;
/**
* A representation of the base64Binary datatype
@@ -49,7 +52,6 @@ public class XSBase64Binary extends CtrType implements CmpEq {
*
* @return "xs:base64Binary" which is the datatype's full pathname
*/
- @Override
public String string_type() {
return XS_BASE64_BINARY;
}
@@ -59,7 +61,6 @@ public class XSBase64Binary extends CtrType implements CmpEq {
*
* @return "base64Binary" which is the datatype's name
*/
- @Override
public String type_name() {
return "base64Binary";
}
@@ -70,7 +71,6 @@ public class XSBase64Binary extends CtrType implements CmpEq {
*
* @return The base64Binary stored
*/
- @Override
public String string_value() {
return _value;
}
@@ -93,7 +93,6 @@ public class XSBase64Binary extends CtrType implements CmpEq {
* @return New ResultSequence representing base64Binary value
* @throws DynamicError
*/
- @Override
public ResultSequence constructor(ResultSequence arg) throws DynamicError {
ResultSequence rs = ResultSequenceFactory.create_new();
@@ -177,4 +176,8 @@ public class XSBase64Binary extends CtrType implements CmpEq {
return true;
}
+ public TypeDefinition getTypeDefinition() {
+ return BuiltinTypeLibrary.XS_BASE64BINARY;
+ }
+
}
diff --git a/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/types/XSBoolean.java b/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/types/XSBoolean.java
index 8f0fdf5..b10e241 100644
--- a/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/types/XSBoolean.java
+++ b/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/types/XSBoolean.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2005, 2009 Andrea Bittau, University College London, and others
+ * Copyright (c) 2005, 2010 Andrea Bittau, University College London, and others
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
@@ -9,10 +9,12 @@
* Andrea Bittau - initial API and implementation from the PsychoPath XPath 2.0
* Mukul Gandhi - bug274784 - improvements to xs:boolean data type implementation
* David Carver - bug 282223 - corrected casting to boolean.
+ * Mukul Gandhi - bug 280798 - PsychoPath support for JDK 1.4
*******************************************************************************/
package org.eclipse.wst.xml.xpath2.processor.internal.types;
+import org.eclipse.wst.xml.xpath2.api.typesystem.TypeDefinition;
import org.eclipse.wst.xml.xpath2.processor.DynamicContext;
import org.eclipse.wst.xml.xpath2.processor.DynamicError;
import org.eclipse.wst.xml.xpath2.processor.ResultSequence;
@@ -20,6 +22,7 @@ import org.eclipse.wst.xml.xpath2.processor.ResultSequenceFactory;
import org.eclipse.wst.xml.xpath2.processor.internal.function.CmpEq;
import org.eclipse.wst.xml.xpath2.processor.internal.function.CmpGt;
import org.eclipse.wst.xml.xpath2.processor.internal.function.CmpLt;
+import org.eclipse.wst.xml.xpath2.processor.internal.types.builtin.BuiltinTypeLibrary;
/**
* A representation of a true or a false value.
@@ -50,7 +53,6 @@ public class XSBoolean extends CtrType implements CmpEq, CmpGt, CmpLt {
*
* @return "xs:boolean", the full datatype pathname
*/
- @Override
public String string_type() {
return XS_BOOLEAN;
}
@@ -60,7 +62,6 @@ public class XSBoolean extends CtrType implements CmpEq, CmpGt, CmpLt {
*
* @return "boolean", which is the datatype name.
*/
- @Override
public String type_name() {
return "boolean";
}
@@ -70,7 +71,6 @@ public class XSBoolean extends CtrType implements CmpEq, CmpGt, CmpLt {
*
* @return the String representation of the boolean value stored
*/
- @Override
public String string_value() {
return "" + _value;
}
@@ -93,7 +93,6 @@ public class XSBoolean extends CtrType implements CmpEq, CmpGt, CmpLt {
* @throws DynamicError
* @return A new result sequence consisting of the boolean value supplied.
*/
- @Override
public ResultSequence constructor(ResultSequence arg) throws DynamicError {
ResultSequence rs = ResultSequenceFactory.create_new();
@@ -206,4 +205,8 @@ public class XSBoolean extends CtrType implements CmpEq, CmpGt, CmpLt {
return result;
}
+ public TypeDefinition getTypeDefinition() {
+ return BuiltinTypeLibrary.XS_BOOLEAN;
+ }
+
}
diff --git a/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/types/XSByte.java b/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/types/XSByte.java
index 09f3047..3fda9e6 100644
--- a/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/types/XSByte.java
+++ b/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/types/XSByte.java
@@ -8,15 +8,18 @@
* Contributors:
* Mukul Gandhi - bug 277639 - implementation of xs:byte data type
* David Carver - bug 262765 - fixed abs value tests.
+ * Mukul Gandhi - bug 280798 - PsychoPath support for JDK 1.4
*******************************************************************************/
package org.eclipse.wst.xml.xpath2.processor.internal.types;
import java.math.BigInteger;
+import org.eclipse.wst.xml.xpath2.api.typesystem.TypeDefinition;
import org.eclipse.wst.xml.xpath2.processor.DynamicError;
import org.eclipse.wst.xml.xpath2.processor.ResultSequence;
import org.eclipse.wst.xml.xpath2.processor.ResultSequenceFactory;
+import org.eclipse.wst.xml.xpath2.processor.internal.types.builtin.BuiltinTypeLibrary;
public class XSByte extends XSShort {
@@ -44,7 +47,6 @@ public class XSByte extends XSShort {
*
* @return "xs:byte" which is the datatype's full pathname
*/
- @Override
public String string_type() {
return XS_BYTE;
}
@@ -54,7 +56,6 @@ public class XSByte extends XSShort {
*
* @return "byte" which is the datatype's name
*/
- @Override
public String type_name() {
return "byte";
}
@@ -68,7 +69,6 @@ public class XSByte extends XSShort {
* @return New ResultSequence consisting of the 'byte' supplied
* @throws DynamicError
*/
- @Override
public ResultSequence constructor(ResultSequence arg) throws DynamicError {
ResultSequence rs = ResultSequenceFactory.create_new();
@@ -100,4 +100,8 @@ public class XSByte extends XSShort {
}
+ public TypeDefinition getTypeDefinition() {
+ return BuiltinTypeLibrary.XS_BYTE;
+ }
+
}
diff --git a/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/types/XSDate.java b/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/types/XSDate.java
index f42b667..8a67b7a 100644
--- a/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/types/XSDate.java
+++ b/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/types/XSDate.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2005, 2009 Andrea Bittau, University College London, and others
+ * Copyright (c) 2005, 2010 Andrea Bittau, University College London, and others
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
@@ -13,15 +13,18 @@
* fixed casting issue.
* David Carver - bug 280547 - fix dates for comparison
* Jesper Steen Moller - bug 262765 - fix type tests
+ * Mukul Gandhi - bug 280798 - PsychoPath support for JDK 1.4
*******************************************************************************/
package org.eclipse.wst.xml.xpath2.processor.internal.types;
+import org.eclipse.wst.xml.xpath2.api.typesystem.TypeDefinition;
import org.eclipse.wst.xml.xpath2.processor.DynamicContext;
import org.eclipse.wst.xml.xpath2.processor.DynamicError;
import org.eclipse.wst.xml.xpath2.processor.ResultSequence;
import org.eclipse.wst.xml.xpath2.processor.ResultSequenceFactory;
import org.eclipse.wst.xml.xpath2.processor.internal.function.*;
+import org.eclipse.wst.xml.xpath2.processor.internal.types.builtin.BuiltinTypeLibrary;
import java.util.*;
@@ -73,7 +76,6 @@ Cloneable {
*
* @return "date" which is the dataype name
*/
- @Override
public String type_name() {
return "date";
}
@@ -83,7 +85,6 @@ Cloneable {
*
* @return A copy of this date representation
*/
- @Override
public Object clone() throws CloneNotSupportedException {
Calendar c = (Calendar) calendar().clone();
XSDuration t = tz();
@@ -146,7 +147,6 @@ Cloneable {
* @throws DynamicError
* @return A new result sequence consisting of the date value supplied.
*/
- @Override
public ResultSequence constructor(ResultSequence arg) throws DynamicError {
ResultSequence rs = ResultSequenceFactory.create_new();
@@ -253,7 +253,6 @@ Cloneable {
*
* @return String representation of the date stored
*/
- @Override
public String string_value() {
String ret = "";
@@ -301,7 +300,6 @@ Cloneable {
*
* @return "xs:date" which is the datatype full pathname
*/
- @Override
public String string_type() {
return XS_DATE;
}
@@ -536,5 +534,8 @@ Cloneable {
}
}
+ public TypeDefinition getTypeDefinition() {
+ return BuiltinTypeLibrary.XS_DATE;
+ }
}
diff --git a/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/types/XSDateTime.java b/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/types/XSDateTime.java
index daa33f3..55b4766 100644
--- a/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/types/XSDateTime.java
+++ b/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/types/XSDateTime.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2005, 2009 Andrea Bittau, University College London, and others
+ * Copyright (c) 2005, 2010 Andrea Bittau, University College London, and others
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
@@ -12,15 +12,18 @@
* David Carver - bug 282223 - implementation of xs:duration.
* - bug 262765 - additional tweak to convert 24:00:00 to 00:00:00
* David Carver - bug 280547 - fix dates for comparison
+ * Mukul Gandhi - bug 280798 - PsychoPath support for JDK 1.4
*******************************************************************************/
package org.eclipse.wst.xml.xpath2.processor.internal.types;
+import org.eclipse.wst.xml.xpath2.api.typesystem.TypeDefinition;
import org.eclipse.wst.xml.xpath2.processor.DynamicContext;
import org.eclipse.wst.xml.xpath2.processor.DynamicError;
import org.eclipse.wst.xml.xpath2.processor.ResultSequence;
import org.eclipse.wst.xml.xpath2.processor.ResultSequenceFactory;
import org.eclipse.wst.xml.xpath2.processor.internal.function.*;
+import org.eclipse.wst.xml.xpath2.processor.internal.types.builtin.BuiltinTypeLibrary;
import java.util.*;
@@ -66,7 +69,6 @@ Cloneable {
*
* @return A copy of this date and time representation
*/
- @Override
public Object clone() throws CloneNotSupportedException {
Calendar c = (Calendar) calendar().clone();
XSDuration t = tz();
@@ -89,7 +91,6 @@ Cloneable {
*
* @return "dateTime" which is the dataype name
*/
- @Override
public String type_name() {
return "dateTime";
}
@@ -492,7 +493,6 @@ Cloneable {
* @return A new result sequence consisting of the date and time value
* supplied.
*/
- @Override
public ResultSequence constructor(ResultSequence arg) throws DynamicError {
ResultSequence rs = ResultSequenceFactory.create_new();
@@ -657,7 +657,6 @@ Cloneable {
*
* @return String representation of the date and time stored
*/
- @Override
public String string_value() {
String ret = "";
@@ -725,7 +724,6 @@ Cloneable {
*
* @return "xs:dateTime" which is the datatype full pathname
*/
- @Override
public String string_type() {
return XS_DATE_TIME;
}
@@ -977,4 +975,8 @@ Cloneable {
}
+ public TypeDefinition getTypeDefinition() {
+ return BuiltinTypeLibrary.XS_DATETIME;
+ }
+
}
diff --git a/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/types/XSDayTimeDuration.java b/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/types/XSDayTimeDuration.java
index 5840ecf..0c304db 100644
--- a/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/types/XSDayTimeDuration.java
+++ b/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/types/XSDayTimeDuration.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2005, 2009 Andrea Bittau, University College London, and others
+ * Copyright (c) 2005, 2010 Andrea Bittau, University College London, and others
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
@@ -11,20 +11,23 @@
* Mukul Gandhi - bug 279377 - improvements to multiplication and division operations
* on xs:dayTimeDuration.
* David Carver - bug 282223 - implementation of xs:duration
+ * Mukul Gandhi - bug 280798 - PsychoPath support for JDK 1.4
*******************************************************************************/
package org.eclipse.wst.xml.xpath2.processor.internal.types;
import java.math.BigDecimal;
-import java.math.RoundingMode;
import java.util.Calendar;
import javax.xml.datatype.DatatypeConfigurationException;
import javax.xml.datatype.DatatypeFactory;
import javax.xml.datatype.Duration;
+
+import org.eclipse.wst.xml.xpath2.api.typesystem.TypeDefinition;
import org.eclipse.wst.xml.xpath2.processor.DynamicError;
import org.eclipse.wst.xml.xpath2.processor.ResultSequence;
import org.eclipse.wst.xml.xpath2.processor.ResultSequenceFactory;
import org.eclipse.wst.xml.xpath2.processor.internal.function.*;
+import org.eclipse.wst.xml.xpath2.processor.internal.types.builtin.BuiltinTypeLibrary;
/**
* A representation of the DayTimeDuration datatype
@@ -84,13 +87,11 @@ public class XSDayTimeDuration extends XSDuration implements CmpEq, CmpLt,
* @return New XSDayTimeDuration representing the duration of time stored
* @throws CloneNotSupportedException
*/
- @Override
public Object clone() throws CloneNotSupportedException {
return new XSDayTimeDuration(days(), hours(), minutes(), seconds(),
negative());
}
- @Override
public ResultSequence constructor(ResultSequence arg) throws DynamicError {
ResultSequence rs = ResultSequenceFactory.create_new();
@@ -229,7 +230,6 @@ public class XSDayTimeDuration extends XSDuration implements CmpEq, CmpLt,
*
* @return "dayTimeDuration" which is the datatype's name
*/
- @Override
public String type_name() {
return "dayTimeDuration";
}
@@ -239,7 +239,6 @@ public class XSDayTimeDuration extends XSDuration implements CmpEq, CmpLt,
*
* @return "xs:dayTimeDuration" which is the datatype's full pathname
*/
- @Override
public String string_type() {
return XS_DAY_TIME_DURATION;
}
@@ -338,13 +337,13 @@ public class XSDayTimeDuration extends XSDuration implements CmpEq, CmpLt,
}
if (!dt.zero()) {
- BigDecimal ret = BigDecimal.ZERO;
+ BigDecimal ret = new BigDecimal(0);
if (dt.infinite()) {
retval = value() / dt.double_value();
} else {
- ret = BigDecimal.valueOf(value());
- ret = ret.divide(BigDecimal.valueOf(dt.double_value()), 18, RoundingMode.HALF_EVEN);
+ ret = new BigDecimal(value());
+ ret = ret.divide(new BigDecimal(dt.double_value()), 18, BigDecimal.ROUND_HALF_EVEN);
retval = ret.doubleValue();
}
} else {
@@ -358,11 +357,11 @@ public class XSDayTimeDuration extends XSDuration implements CmpEq, CmpLt,
} else if (at instanceof XSDecimal) {
XSDecimal dt = (XSDecimal) at;
- BigDecimal ret = BigDecimal.ZERO;
+ BigDecimal ret = new BigDecimal(0);
if (!dt.zero()) {
- ret = BigDecimal.valueOf(value());
- ret = ret.divide(dt.getValue(), 18, RoundingMode.HALF_EVEN);
+ ret = new BigDecimal(value());
+ ret = ret.divide(dt.getValue(), 18, BigDecimal.ROUND_HALF_EVEN);
} else {
throw DynamicError.overflowUnderflow();
}
@@ -378,9 +377,9 @@ public class XSDayTimeDuration extends XSDuration implements CmpEq, CmpLt,
Duration mdduration = DatatypeFactory.newInstance().newDuration(md.string_value());
double thistime = thisDuration.getTimeInMillis(Calendar.getInstance());
double thattime = mdduration.getTimeInMillis(Calendar.getInstance());
- res = BigDecimal.valueOf(thistime);
- BigDecimal l = BigDecimal.valueOf(thattime);
- res = res.divide(l, 18, RoundingMode.HALF_EVEN);
+ res = new BigDecimal(thistime);
+ BigDecimal l = new BigDecimal(thattime);
+ res = res.divide(l, 18, BigDecimal.ROUND_HALF_EVEN);
} catch (DatatypeConfigurationException ex) {
}
@@ -393,5 +392,9 @@ public class XSDayTimeDuration extends XSDuration implements CmpEq, CmpLt,
return null; // unreach
}
}
-
+
+ public TypeDefinition getTypeDefinition() {
+ return BuiltinTypeLibrary.XS_DAYTIMEDURATION;
+ }
+
}
diff --git a/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/types/XSDecimal.java b/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/types/XSDecimal.java
index 4207bd1..1e11cd3 100644
--- a/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/types/XSDecimal.java
+++ b/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/types/XSDecimal.java
@@ -20,10 +20,12 @@
package org.eclipse.wst.xml.xpath2.processor.internal.types;
+import org.eclipse.wst.xml.xpath2.api.typesystem.TypeDefinition;
import org.eclipse.wst.xml.xpath2.processor.DynamicContext;
import org.eclipse.wst.xml.xpath2.processor.DynamicError;
import org.eclipse.wst.xml.xpath2.processor.ResultSequence;
import org.eclipse.wst.xml.xpath2.processor.ResultSequenceFactory;
+import org.eclipse.wst.xml.xpath2.processor.internal.types.builtin.BuiltinTypeLibrary;
import java.math.BigDecimal;
import java.math.BigInteger;
@@ -503,4 +505,9 @@ public class XSDecimal extends NumericType {
BigDecimal round = _value.setScale(precision, BigDecimal.ROUND_HALF_EVEN);
return new XSDecimal(round);
}
+
+ public TypeDefinition getTypeDefinition() {
+ return BuiltinTypeLibrary.XS_DECIMAL;
+ }
+
}
diff --git a/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/types/XSDouble.java b/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/types/XSDouble.java
index 1de1292..9ffd98b 100644
--- a/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/types/XSDouble.java
+++ b/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/types/XSDouble.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2005, 2009 Andrea Bittau, University College London, and others
+ * Copyright (c) 2005, 2010 Andrea Bittau, University College London, and others
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
@@ -13,18 +13,20 @@
* David Carver (STAR) - bug 262765 - various numeric formatting fixes and calculations
* David Carver (STAR) - bug 262765 - fixed rounding errors.
* Jesper Steen Moller - Bug 286062 - Fix idiv error cases and increase precision
+ * Mukul Gandhi - bug 280798 - PsychoPath support for JDK 1.4
*******************************************************************************/
package org.eclipse.wst.xml.xpath2.processor.internal.types;
import java.math.BigDecimal;
-import java.math.RoundingMode;
import java.util.Iterator;
+import org.eclipse.wst.xml.xpath2.api.typesystem.TypeDefinition;
import org.eclipse.wst.xml.xpath2.processor.DynamicContext;
import org.eclipse.wst.xml.xpath2.processor.DynamicError;
import org.eclipse.wst.xml.xpath2.processor.ResultSequence;
import org.eclipse.wst.xml.xpath2.processor.ResultSequenceFactory;
+import org.eclipse.wst.xml.xpath2.processor.internal.types.builtin.BuiltinTypeLibrary;
/**
* A representation of the Double datatype
@@ -62,9 +64,9 @@ public class XSDouble extends NumericType {
public XSDouble(String init) throws DynamicError {
try {
if (init.equals("-INF")) {
- _value = Double.NEGATIVE_INFINITY;
+ _value = new Double(Double.NEGATIVE_INFINITY);
} else if (init.equals("INF")) {
- _value = Double.POSITIVE_INFINITY;
+ _value = new Double(Double.POSITIVE_INFINITY);
} else {
_value = new Double(init);
}
@@ -84,9 +86,9 @@ public class XSDouble extends NumericType {
try {
Double d = null;
if (i.equals("INF")) {
- d = Double.POSITIVE_INFINITY;
+ d = new Double(Double.POSITIVE_INFINITY);
} else if (i.equals("-INF")) {
- d = Double.NEGATIVE_INFINITY;
+ d = new Double(Double.NEGATIVE_INFINITY);
} else {
d = new Double(i);
}
@@ -105,7 +107,6 @@ public class XSDouble extends NumericType {
* @throws DynamicError
* @return A new result sequence consisting of the double number supplied.
*/
- @Override
public ResultSequence constructor(ResultSequence arg) throws DynamicError {
ResultSequence rs = ResultSequenceFactory.create_new();
@@ -147,9 +148,9 @@ public class XSDouble extends NumericType {
private XSDouble castDouble(AnyType aat) {
if (aat instanceof XSBoolean) {
if (aat.string_value().equals("true")) {
- return new XSDouble(new Double("1.0E0"));
+ return new XSDouble(1.0E0);
} else {
- return new XSDouble(new Double("0.0E0"));
+ return new XSDouble(0.0E0);
}
}
return parse_double(aat.string_value());
@@ -161,7 +162,6 @@ public class XSDouble extends NumericType {
*
* @return "xs:double" which is the datatype's full pathname
*/
- @Override
public String string_type() {
return XS_DOUBLE;
}
@@ -171,7 +171,6 @@ public class XSDouble extends NumericType {
*
* @return "double" which is the datatype's name
*/
- @Override
public String type_name() {
return "double";
}
@@ -181,7 +180,6 @@ public class XSDouble extends NumericType {
*
* @return String representation of the Decimal value stored
*/
- @Override
public String string_value() {
if (zero()) {
return "0";
@@ -204,7 +202,7 @@ public class XSDouble extends NumericType {
* @return True if this XSDouble represents NaN. False otherwise.
*/
public boolean nan() {
- return Double.isNaN(_value);
+ return Double.isNaN(_value.doubleValue());
}
/**
@@ -213,7 +211,7 @@ public class XSDouble extends NumericType {
* @return True if this XSDouble represents infinity. False otherwise.
*/
public boolean infinite() {
- return Double.isInfinite(_value);
+ return Double.isInfinite(_value.doubleValue());
}
/**
@@ -221,9 +219,8 @@ public class XSDouble extends NumericType {
*
* @return True if this XSDouble represents 0. False otherwise.
*/
- @Override
public boolean zero() {
- return (Double.compare(_value, 0.0E0) == 0);
+ return (Double.compare(_value.doubleValue(), 0.0E0) == 0);
}
/*
@@ -234,7 +231,7 @@ public class XSDouble extends NumericType {
* @since 1.1
*/
public boolean negativeZero() {
- return (Double.compare(_value, -0.0E0) == 0);
+ return (Double.compare(_value.doubleValue(), -0.0E0) == 0);
}
/**
@@ -429,7 +426,7 @@ public class XSDouble extends NumericType {
if (val.zero())
throw DynamicError.div_zero(null);
- BigDecimal result = BigDecimal.valueOf((double_value() / val.double_value()));
+ BigDecimal result = new BigDecimal((double_value() / val.double_value()));
return ResultSequenceFactory.create_new(new XSInteger(result.toBigInteger()));
}
@@ -454,7 +451,6 @@ public class XSDouble extends NumericType {
*
* @return A XSDouble representing the negation of this XSDecimal
*/
- @Override
public ResultSequence unary_minus() {
return ResultSequenceFactory.create_new(new XSDouble(-1
* double_value()));
@@ -466,7 +462,6 @@ public class XSDouble extends NumericType {
*
* @return A XSDouble representing the absolute value of the number stored
*/
- @Override
public NumericType abs() {
return new XSDouble(Math.abs(double_value()));
}
@@ -477,7 +472,6 @@ public class XSDouble extends NumericType {
* @return A XSDouble representing the smallest integer greater than the
* number stored
*/
- @Override
public NumericType ceiling() {
return new XSDouble(Math.ceil(double_value()));
}
@@ -488,7 +482,6 @@ public class XSDouble extends NumericType {
* @return A XSDouble representing the largest integer smaller than the
* number stored
*/
- @Override
public NumericType floor() {
return new XSDouble(Math.floor(double_value()));
}
@@ -498,10 +491,9 @@ public class XSDouble extends NumericType {
*
* @return A XSDouble representing the closest long of the number stored.
*/
- @Override
public NumericType round() {
- BigDecimal value = new BigDecimal(_value);
- BigDecimal round = value.setScale(0, RoundingMode.HALF_UP);
+ BigDecimal value = new BigDecimal(_value.doubleValue());
+ BigDecimal round = value.setScale(0, BigDecimal.ROUND_HALF_UP);
return new XSDouble(round.doubleValue());
}
@@ -510,7 +502,6 @@ public class XSDouble extends NumericType {
*
* @return A XSDouble representing the closest long of the number stored.
*/
- @Override
public NumericType round_half_to_even() {
return round_half_to_even(0);
@@ -524,10 +515,14 @@ public class XSDouble extends NumericType {
* An integer precision
* @return A XSDouble representing the closest long of the number stored.
*/
- @Override
public NumericType round_half_to_even(int precision) {
- BigDecimal value = new BigDecimal(_value);
- BigDecimal round = value.setScale(precision, RoundingMode.HALF_EVEN);
+ BigDecimal value = new BigDecimal(_value.doubleValue());
+ BigDecimal round = value.setScale(precision, BigDecimal.ROUND_HALF_EVEN);
return new XSDouble(round.doubleValue());
}
+
+ public TypeDefinition getTypeDefinition() {
+ return BuiltinTypeLibrary.XS_DOUBLE;
+ }
+
}
diff --git a/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/types/XSDuration.java b/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/types/XSDuration.java
index 20b1dba..4534028 100644
--- a/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/types/XSDuration.java
+++ b/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/types/XSDuration.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2005, 2009 Andrea Bittau, University College London, and others
+ * Copyright (c) 2005, 2010 Andrea Bittau, University College London, and others
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
@@ -8,10 +8,12 @@
* Contributors:
* Andrea Bittau - initial API and implementation from the PsychoPath XPath 2.0
* David Carver (STAR) - bug 282223 - Implemented XSDuration type for castable checking.
+ * Mukul Gandhi - bug 280798 - PsychoPath support for JDK 1.4
*******************************************************************************/
package org.eclipse.wst.xml.xpath2.processor.internal.types;
+import org.eclipse.wst.xml.xpath2.api.typesystem.TypeDefinition;
import org.eclipse.wst.xml.xpath2.processor.DynamicContext;
import org.eclipse.wst.xml.xpath2.processor.DynamicError;
import org.eclipse.wst.xml.xpath2.processor.ResultSequence;
@@ -19,6 +21,7 @@ import org.eclipse.wst.xml.xpath2.processor.ResultSequenceFactory;
import org.eclipse.wst.xml.xpath2.processor.internal.function.CmpEq;
import org.eclipse.wst.xml.xpath2.processor.internal.function.CmpGt;
import org.eclipse.wst.xml.xpath2.processor.internal.function.CmpLt;
+import org.eclipse.wst.xml.xpath2.processor.internal.types.builtin.BuiltinTypeLibrary;
/**
* A representation of the xs:duration data type. Other duration implementations
@@ -110,12 +113,10 @@ public class XSDuration extends CtrType implements CmpEq, CmpLt, CmpGt, Cloneabl
this(0, 0, 0, 0, 0, 0.0, false);
}
- @Override
public String type_name() {
return "duration";
}
- @Override
public String string_type() {
return XS_DURATION;
}
@@ -125,7 +126,6 @@ public class XSDuration extends CtrType implements CmpEq, CmpLt, CmpGt, Cloneabl
*
* @return String representation of the duration stored
*/
- @Override
public String string_value() {
String ret = "";
boolean did_something = false;
@@ -164,7 +164,7 @@ public class XSDuration extends CtrType implements CmpEq, CmpLt, CmpGt, Cloneabl
did_something = true;
}
if (seconds != 0) {
- String doubStr = (Double.valueOf(seconds).toString());
+ String doubStr = (new Double(seconds).toString());
if (doubStr.endsWith(".0")) {
// string value of x.0 seconds is xS. e.g, 7.0S is converted to
// 7S.
@@ -322,7 +322,6 @@ public class XSDuration extends CtrType implements CmpEq, CmpLt, CmpGt, Cloneabl
* @return New ResultSequence consisting of the time duration extracted
* @throws DynamicError
*/
- @Override
public ResultSequence constructor(ResultSequence arg) throws DynamicError {
ResultSequence rs = ResultSequenceFactory.create_new();
@@ -467,7 +466,6 @@ public class XSDuration extends CtrType implements CmpEq, CmpLt, CmpGt, Cloneabl
negative);
}
- @Override
public Object clone() throws CloneNotSupportedException {
return new XSDuration(year(), month(), days(), hours(), minutes(),
seconds(), negative());
@@ -511,5 +509,10 @@ public class XSDuration extends CtrType implements CmpEq, CmpLt, CmpGt, Cloneabl
private boolean isDurationValue(String value) {
return value.startsWith("P") || value.startsWith("-P");
}
+
+
+ public TypeDefinition getTypeDefinition() {
+ return BuiltinTypeLibrary.XS_DURATION;
+ }
}
diff --git a/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/types/XSEntity.java b/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/types/XSEntity.java
index a2bca50..20d3c47 100644
--- a/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/types/XSEntity.java
+++ b/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/types/XSEntity.java
@@ -13,9 +13,11 @@
package org.eclipse.wst.xml.xpath2.processor.internal.types;
+import org.eclipse.wst.xml.xpath2.api.typesystem.TypeDefinition;
import org.eclipse.wst.xml.xpath2.processor.DynamicError;
import org.eclipse.wst.xml.xpath2.processor.ResultSequence;
import org.eclipse.wst.xml.xpath2.processor.ResultSequenceFactory;
+import org.eclipse.wst.xml.xpath2.processor.internal.types.builtin.BuiltinTypeLibrary;
/**
* Built in Data Type for xs:Entity
@@ -35,12 +37,10 @@ public class XSEntity extends XSNCName {
super(value);
}
- @Override
public String string_type() {
return XS_ENTITY;
}
- @Override
public String type_name() {
return "ENTITY";
}
@@ -57,8 +57,6 @@ public class XSEntity extends XSNCName {
* @return New ResultSequence consisting of the ENTITY supplied
* @throws DynamicError
*/
-
- @Override
public ResultSequence constructor(ResultSequence arg) throws DynamicError {
ResultSequence rs = ResultSequenceFactory.create_new();
@@ -78,4 +76,10 @@ public class XSEntity extends XSNCName {
return rs;
}
+
+
+ public TypeDefinition getTypeDefinition() {
+ return BuiltinTypeLibrary.XS_ENTITY;
+ }
+
}
diff --git a/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/types/XSFloat.java b/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/types/XSFloat.java
index be9f367..036e098 100644
--- a/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/types/XSFloat.java
+++ b/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/types/XSFloat.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2005, 2009 Andrea Bittau, University College London, and others
+ * Copyright (c) 2005, 2010 Andrea Bittau, University College London, and others
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
@@ -13,18 +13,20 @@
* David Carver - bug 282223 - fixed casting errors.
* Jesper Steen Moller - Bug 286062 - Fix idiv error cases and increase precision
* Jesper Steen Moller - bug 281028 - Added constructor from string
+ * Mukul Gandhi - bug 280798 - PsychoPath support for JDK 1.4
*******************************************************************************/
package org.eclipse.wst.xml.xpath2.processor.internal.types;
import java.math.BigDecimal;
-import java.math.RoundingMode;
import java.util.Iterator;
+import org.eclipse.wst.xml.xpath2.api.typesystem.TypeDefinition;
import org.eclipse.wst.xml.xpath2.processor.DynamicContext;
import org.eclipse.wst.xml.xpath2.processor.DynamicError;
import org.eclipse.wst.xml.xpath2.processor.ResultSequence;
import org.eclipse.wst.xml.xpath2.processor.ResultSequenceFactory;
+import org.eclipse.wst.xml.xpath2.processor.internal.types.builtin.BuiltinTypeLibrary;
/**
* A representation of the Float datatype
@@ -41,7 +43,7 @@ public class XSFloat extends NumericType {
* The number to be stored
*/
public XSFloat(float x) {
- _value = x;
+ _value = new Float(x);
}
/**
@@ -60,9 +62,9 @@ public class XSFloat extends NumericType {
public XSFloat(String init) throws DynamicError {
try {
if (init.equals("-INF")) {
- _value = Float.NEGATIVE_INFINITY;
+ _value = new Float(Float.NEGATIVE_INFINITY);
} else if (init.equals("INF")) {
- _value = Float.POSITIVE_INFINITY;
+ _value = new Float(Float.POSITIVE_INFINITY);
} else {
_value = new Float(init);
}
@@ -75,7 +77,6 @@ public class XSFloat extends NumericType {
*
* @return "xs:float" which is the datatype's full pathname
*/
- @Override
public String string_type() {
return XS_FLOAT;
}
@@ -85,7 +86,6 @@ public class XSFloat extends NumericType {
*
* @return "float" which is the datatype's name
*/
- @Override
public String type_name() {
return "float";
}
@@ -95,7 +95,6 @@ public class XSFloat extends NumericType {
*
* @return String representation of the stored number
*/
- @Override
public String string_value() {
if (zero()) {
return "0";
@@ -117,7 +116,7 @@ public class XSFloat extends NumericType {
* @return True is this datatype represents NaN. False otherwise
*/
public boolean nan() {
- return Float.isNaN(_value);
+ return Float.isNaN(_value.floatValue());
}
/**
@@ -126,7 +125,7 @@ public class XSFloat extends NumericType {
* @return True is this datatype represents infinity. False otherwise
*/
public boolean infinite() {
- return Float.isInfinite(_value);
+ return Float.isInfinite(_value.floatValue());
}
/**
@@ -134,9 +133,8 @@ public class XSFloat extends NumericType {
*
* @return True if this datatype represents 0. False otherwise
*/
- @Override
public boolean zero() {
- return (Float.compare(_value, 0) == 0);
+ return (Float.compare(_value.floatValue(), 0) == 0);
}
/*
@@ -146,7 +144,7 @@ public class XSFloat extends NumericType {
* @since 1.1
*/
public boolean negativeZero() {
- return (Float.compare(_value, -0.0f) == 0);
+ return (Float.compare(_value.floatValue(), -0.0f) == 0);
}
/**
@@ -158,7 +156,6 @@ public class XSFloat extends NumericType {
* @return New ResultSequence consisting of the float supplied
* @throws DynamicError
*/
- @Override
public ResultSequence constructor(ResultSequence arg) throws DynamicError {
ResultSequence rs = ResultSequenceFactory.create_new();
@@ -184,9 +181,9 @@ public class XSFloat extends NumericType {
try {
Float f = null;
if (aat.string_value().equals("INF")) {
- f = Float.POSITIVE_INFINITY;
+ f = new Float(Float.POSITIVE_INFINITY);
} else if (aat.string_value().equals("-INF")) {
- f = Float.NEGATIVE_INFINITY;
+ f = new Float(Float.NEGATIVE_INFINITY);
} else if (aat instanceof XSBoolean) {
if (aat.string_value().equals("true")) {
f = new Float("1.0E0");
@@ -210,7 +207,7 @@ public class XSFloat extends NumericType {
* @return The actual float value stored
*/
public float float_value() {
- return _value;
+ return _value.floatValue();
}
/**
@@ -360,7 +357,8 @@ public class XSFloat extends NumericType {
if (val.zero())
throw DynamicError.div_zero(null);
- BigDecimal result = BigDecimal.valueOf((float_value() / val.float_value()));
+ BigDecimal result = BigDecimal.valueOf((new Float((float_value() /
+ val.float_value()))).longValue());
return ResultSequenceFactory.create_new(new XSInteger(result.toBigInteger()));
}
@@ -385,7 +383,6 @@ public class XSFloat extends NumericType {
*
* @return A XSFloat representing the negation of the number stored
*/
- @Override
public ResultSequence unary_minus() {
return ResultSequenceFactory
.create_new(new XSFloat(-1 * float_value()));
@@ -396,7 +393,6 @@ public class XSFloat extends NumericType {
*
* @return A XSFloat representing the absolute value of the number stored
*/
- @Override
public NumericType abs() {
return new XSFloat(Math.abs(float_value()));
}
@@ -407,7 +403,6 @@ public class XSFloat extends NumericType {
* @return A XSFloat representing the smallest integer greater than the
* number stored
*/
- @Override
public NumericType ceiling() {
return new XSFloat((float) Math.ceil(float_value()));
}
@@ -418,7 +413,6 @@ public class XSFloat extends NumericType {
* @return A XSFloat representing the largest integer smaller than the
* number stored
*/
- @Override
public NumericType floor() {
return new XSFloat((float) Math.floor(float_value()));
}
@@ -428,10 +422,9 @@ public class XSFloat extends NumericType {
*
* @return A XSFloat representing the closest long of the number stored.
*/
- @Override
public NumericType round() {
BigDecimal value = new BigDecimal(float_value());
- BigDecimal round = value.setScale(0, RoundingMode.HALF_UP);
+ BigDecimal round = value.setScale(0, BigDecimal.ROUND_HALF_UP);
return new XSFloat(round.floatValue());
}
@@ -440,7 +433,6 @@ public class XSFloat extends NumericType {
*
* @return A XSFloat representing the closest long of the number stored.
*/
- @Override
public NumericType round_half_to_even() {
return round_half_to_even(0);
}
@@ -451,11 +443,9 @@ public class XSFloat extends NumericType {
* @param precision An integer precision
* @return A XSFloat representing the closest long of the number stored.
*/
-
- @Override
public NumericType round_half_to_even(int precision) {
- BigDecimal value = new BigDecimal(_value);
- BigDecimal round = value.setScale(precision, RoundingMode.HALF_EVEN);
+ BigDecimal value = new BigDecimal(_value.floatValue());
+ BigDecimal round = value.setScale(precision, BigDecimal.ROUND_HALF_EVEN);
return new XSFloat(round.floatValue());
}
@@ -482,4 +472,7 @@ public class XSFloat extends NumericType {
return carg;
}
+ public TypeDefinition getTypeDefinition() {
+ return BuiltinTypeLibrary.XS_FLOAT;
+ }
}
diff --git a/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/types/XSGDay.java b/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/types/XSGDay.java
index 50d6872..0c3f54d 100644
--- a/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/types/XSGDay.java
+++ b/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/types/XSGDay.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2005, 2009 Andrea Bittau, University College London, and others
+ * Copyright (c) 2005, 2010 Andrea Bittau, University College London, and others
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
@@ -10,15 +10,18 @@
* David Carver (STAR) - bug 262765 - Correct parsing of Date to get day correctly.
* David Carver (STAR) - bug 282223 - fixed issue with casting.
* David Carver - bug 280547 - fix dates for comparison
+ * Mukul Gandhi - bug 280798 - PsychoPath support for JDK 1.4
*******************************************************************************/
package org.eclipse.wst.xml.xpath2.processor.internal.types;
+import org.eclipse.wst.xml.xpath2.api.typesystem.TypeDefinition;
import org.eclipse.wst.xml.xpath2.processor.DynamicContext;
import org.eclipse.wst.xml.xpath2.processor.DynamicError;
import org.eclipse.wst.xml.xpath2.processor.ResultSequence;
import org.eclipse.wst.xml.xpath2.processor.ResultSequenceFactory;
import org.eclipse.wst.xml.xpath2.processor.internal.function.*;
+import org.eclipse.wst.xml.xpath2.processor.internal.types.builtin.BuiltinTypeLibrary;
import java.util.*;
@@ -60,7 +63,6 @@ public class XSGDay extends CalendarType implements CmpEq {
*
* @return "gDay" which is the datatype's name
*/
- @Override
public String type_name() {
return "gDay";
}
@@ -95,7 +97,7 @@ public class XSGDay extends CalendarType implements CmpEq {
}
String[] split = str.split("-");
- startdate += split[3].replace("Z", "");
+ startdate += split[3].replaceAll("Z", "");
if (str.indexOf('T') != -1) {
if (split.length > 4) {
@@ -140,7 +142,6 @@ public class XSGDay extends CalendarType implements CmpEq {
* @return New ResultSequence consisting of the supplied day
* @throws DynamicError
*/
- @Override
public ResultSequence constructor(ResultSequence arg) throws DynamicError {
ResultSequence rs = ResultSequenceFactory.create_new();
@@ -239,7 +240,6 @@ public class XSGDay extends CalendarType implements CmpEq {
*
* @return String representation of the stored day
*/
- @Override
public String string_value() {
String ret = "---";
@@ -278,7 +278,6 @@ public class XSGDay extends CalendarType implements CmpEq {
*
* @return "xs:gDay" which is the datatype's full pathname
*/
- @Override
public String string_type() {
return XS_G_DAY;
}
@@ -319,5 +318,9 @@ public class XSGDay extends CalendarType implements CmpEq {
public XSDuration tz() {
return _tz;
}
-
+
+ public TypeDefinition getTypeDefinition() {
+ return BuiltinTypeLibrary.XS_GDAY;
+ }
+
}
diff --git a/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/types/XSGMonth.java b/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/types/XSGMonth.java
index 97d83c1..0deb21c 100644
--- a/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/types/XSGMonth.java
+++ b/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/types/XSGMonth.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2005, 2009 Andrea Bittau, University College London, and others
+ * Copyright (c) 2005, 2010 Andrea Bittau, University College London, and others
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
@@ -9,15 +9,18 @@
* Andrea Bittau - initial API and implementation from the PsychoPath XPath 2.0
* David Carver (STAR) - bug 262765 - Fixed parsing of gMonth values
* David Carver - bug 280547 - fix dates for comparison
+ * Mukul Gandhi - bug 280798 - PsychoPath support for JDK 1.4
*******************************************************************************/
package org.eclipse.wst.xml.xpath2.processor.internal.types;
+import org.eclipse.wst.xml.xpath2.api.typesystem.TypeDefinition;
import org.eclipse.wst.xml.xpath2.processor.DynamicContext;
import org.eclipse.wst.xml.xpath2.processor.DynamicError;
import org.eclipse.wst.xml.xpath2.processor.ResultSequence;
import org.eclipse.wst.xml.xpath2.processor.ResultSequenceFactory;
import org.eclipse.wst.xml.xpath2.processor.internal.function.*;
+import org.eclipse.wst.xml.xpath2.processor.internal.types.builtin.BuiltinTypeLibrary;
import java.util.*;
@@ -59,7 +62,6 @@ public class XSGMonth extends CalendarType implements CmpEq {
*
* @return "gMonth" which is the datatype's name
*/
- @Override
public String type_name() {
return "gMonth";
}
@@ -92,7 +94,7 @@ public class XSGMonth extends CalendarType implements CmpEq {
}
String[] split = str.split("-");
- startdate += split[2].replace("Z", "") + "-01";
+ startdate += split[2].replaceAll("Z", "") + "-01";
if (str.indexOf('T') != -1) {
if (split.length > 3) {
@@ -136,7 +138,6 @@ public class XSGMonth extends CalendarType implements CmpEq {
* @return New ResultSequence consisting of the supplied month
* @throws DynamicError
*/
- @Override
public ResultSequence constructor(ResultSequence arg) throws DynamicError {
ResultSequence rs = ResultSequenceFactory.create_new();
@@ -235,7 +236,6 @@ public class XSGMonth extends CalendarType implements CmpEq {
*
* @return String representation of the stored month
*/
- @Override
public String string_value() {
String ret = "--";
@@ -273,7 +273,6 @@ public class XSGMonth extends CalendarType implements CmpEq {
*
* @return "xs:gMonth" which is the datatype's full pathname
*/
- @Override
public String string_type() {
return XS_G_MONTH;
}
@@ -315,5 +314,9 @@ public class XSGMonth extends CalendarType implements CmpEq {
public XSDuration tz() {
return _tz;
}
+
+ public TypeDefinition getTypeDefinition() {
+ return BuiltinTypeLibrary.XS_GMONTH;
+ }
}
diff --git a/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/types/XSGMonthDay.java b/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/types/XSGMonthDay.java
index f2233b9..54e90d9 100644
--- a/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/types/XSGMonthDay.java
+++ b/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/types/XSGMonthDay.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2005, 2009 Andrea Bittau, University College London, and others
+ * Copyright (c) 2005, 2010 Andrea Bittau, University College London, and others
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
@@ -11,15 +11,18 @@
* David Carver (STAR) - bug 282223 - fix timezone adjustment creation.
* fixed casting issue.
* David Carver - bug 280547 - fix dates for comparison
+ * Mukul Gandhi - bug 280798 - PsychoPath support for JDK 1.4
*******************************************************************************/
package org.eclipse.wst.xml.xpath2.processor.internal.types;
+import org.eclipse.wst.xml.xpath2.api.typesystem.TypeDefinition;
import org.eclipse.wst.xml.xpath2.processor.DynamicContext;
import org.eclipse.wst.xml.xpath2.processor.DynamicError;
import org.eclipse.wst.xml.xpath2.processor.ResultSequence;
import org.eclipse.wst.xml.xpath2.processor.ResultSequenceFactory;
import org.eclipse.wst.xml.xpath2.processor.internal.function.*;
+import org.eclipse.wst.xml.xpath2.processor.internal.types.builtin.BuiltinTypeLibrary;
import java.util.*;
@@ -62,7 +65,6 @@ public class XSGMonthDay extends CalendarType implements CmpEq {
*
* @return "gMonthDay" which is the datatype's name
*/
- @Override
public String type_name() {
return "gMonthDay";
}
@@ -99,7 +101,7 @@ public class XSGMonthDay extends CalendarType implements CmpEq {
String[] split = str.split("-");
- startdate += split[2].replace("Z", "") + "-" + split[3].replace("Z", "").substring(0, 2);
+ startdate += split[2].replaceAll("Z", "") + "-" + split[3].replaceAll("Z", "").substring(0, 2);
if (split.length > 4) {
String[] timesplit = split[4].split(":");
@@ -143,7 +145,6 @@ public class XSGMonthDay extends CalendarType implements CmpEq {
* @return New ResultSequence consisting of the supplied month and day
* @throws DynamicError
*/
- @Override
public ResultSequence constructor(ResultSequence arg) throws DynamicError {
ResultSequence rs = ResultSequenceFactory.create_new();
@@ -251,7 +252,6 @@ public class XSGMonthDay extends CalendarType implements CmpEq {
*
* @return String representation of the stored month and day
*/
- @Override
public String string_value() {
String ret = "--";
@@ -294,7 +294,6 @@ public class XSGMonthDay extends CalendarType implements CmpEq {
*
* @return "xs:gMonthDay" which is the datatype's full pathname
*/
- @Override
public String string_type() {
return XS_G_MONTH_DAY;
}
@@ -334,4 +333,8 @@ public class XSGMonthDay extends CalendarType implements CmpEq {
return _tz;
}
+ public TypeDefinition getTypeDefinition() {
+ return BuiltinTypeLibrary.XS_GMONTHDAY;
+ }
+
}
diff --git a/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/types/XSGYear.java b/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/types/XSGYear.java
index 9386d27..654fbfa 100644
--- a/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/types/XSGYear.java
+++ b/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/types/XSGYear.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2005, 2009 Andrea Bittau, University College London, and others
+ * Copyright (c) 2005, 2010 Andrea Bittau, University College London, and others
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
@@ -9,15 +9,18 @@
* Andrea Bittau - initial API and implementation from the PsychoPath XPath 2.0
* David Carver (STAR) - bug 282223 - fix casting issues.
* David Carver - bug 280547 - fix dates for comparison
+ * Mukul Gandhi - bug 280798 - PsychoPath support for JDK 1.4
*******************************************************************************/
package org.eclipse.wst.xml.xpath2.processor.internal.types;
+import org.eclipse.wst.xml.xpath2.api.typesystem.TypeDefinition;
import org.eclipse.wst.xml.xpath2.processor.DynamicContext;
import org.eclipse.wst.xml.xpath2.processor.DynamicError;
import org.eclipse.wst.xml.xpath2.processor.ResultSequence;
import org.eclipse.wst.xml.xpath2.processor.ResultSequenceFactory;
import org.eclipse.wst.xml.xpath2.processor.internal.function.*;
+import org.eclipse.wst.xml.xpath2.processor.internal.types.builtin.BuiltinTypeLibrary;
import java.util.*;
@@ -61,7 +64,6 @@ public class XSGYear extends CalendarType implements CmpEq {
*
* @return "gYear" which is the datatype's name
*/
- @Override
public String type_name() {
return "gYear";
}
@@ -110,7 +112,6 @@ public class XSGYear extends CalendarType implements CmpEq {
* @return New ResultSequence consisting of the supplied year
* @throws DynamicError
*/
- @Override
public ResultSequence constructor(ResultSequence arg) throws DynamicError {
ResultSequence rs = ResultSequenceFactory.create_new();
@@ -213,7 +214,6 @@ public class XSGYear extends CalendarType implements CmpEq {
*
* @return String representation of the stored year
*/
- @Override
public String string_value() {
String ret = "";
@@ -251,7 +251,6 @@ public class XSGYear extends CalendarType implements CmpEq {
*
* @return "xs:gYear" which is the datatype's full pathname
*/
- @Override
public String string_type() {
return XS_G_YEAR;
}
@@ -291,4 +290,9 @@ public class XSGYear extends CalendarType implements CmpEq {
public XSDuration tz() {
return _tz;
}
+
+ public TypeDefinition getTypeDefinition() {
+ return BuiltinTypeLibrary.XS_GYEAR;
+ }
+
}
diff --git a/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/types/XSGYearMonth.java b/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/types/XSGYearMonth.java
index ef11419..2581133 100644
--- a/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/types/XSGYearMonth.java
+++ b/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/types/XSGYearMonth.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2005, 2009 Andrea Bittau, University College London, and others
+ * Copyright (c) 2005, 2010 Andrea Bittau, University College London, and others
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
@@ -9,15 +9,18 @@
* Andrea Bittau - initial API and implementation from the PsychoPath XPath 2.0
* David Carver (STAR) - bug 282223 - fixed casting issues.
* David Carver - bug 280547 - fix dates for comparison
+ * Mukul Gandhi - bug 280798 - PsychoPath support for JDK 1.4
*******************************************************************************/
package org.eclipse.wst.xml.xpath2.processor.internal.types;
+import org.eclipse.wst.xml.xpath2.api.typesystem.TypeDefinition;
import org.eclipse.wst.xml.xpath2.processor.DynamicContext;
import org.eclipse.wst.xml.xpath2.processor.DynamicError;
import org.eclipse.wst.xml.xpath2.processor.ResultSequence;
import org.eclipse.wst.xml.xpath2.processor.ResultSequenceFactory;
import org.eclipse.wst.xml.xpath2.processor.internal.function.*;
+import org.eclipse.wst.xml.xpath2.processor.internal.types.builtin.BuiltinTypeLibrary;
import java.util.*;
@@ -60,7 +63,6 @@ public class XSGYearMonth extends CalendarType implements CmpEq {
*
* @return "gYearMonth" which is the datatype's name
*/
- @Override
public String type_name() {
return "gYearMonth";
}
@@ -113,7 +115,6 @@ public class XSGYearMonth extends CalendarType implements CmpEq {
* @return New ResultSequence consisting of the supplied year and month
* @throws DynamicError
*/
- @Override
public ResultSequence constructor(ResultSequence arg) throws DynamicError {
ResultSequence rs = ResultSequenceFactory.create_new();
@@ -234,7 +235,6 @@ public class XSGYearMonth extends CalendarType implements CmpEq {
*
* @return String representation of the stored year and month
*/
- @Override
public String string_value() {
String ret = "";
@@ -275,7 +275,6 @@ public class XSGYearMonth extends CalendarType implements CmpEq {
*
* @return "xs:gYearMonth" which is the datatype's full pathname
*/
- @Override
public String string_type() {
return XS_G_YEAR_MONTH;
}
@@ -315,6 +314,10 @@ public class XSGYearMonth extends CalendarType implements CmpEq {
*/
public XSDuration tz() {
return _tz;
- }
+ }
+
+ public TypeDefinition getTypeDefinition() {
+ return BuiltinTypeLibrary.XS_GYEARMONTH;
+ }
}
diff --git a/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/types/XSHexBinary.java b/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/types/XSHexBinary.java
index 05b0e2d..b3606e7 100644
--- a/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/types/XSHexBinary.java
+++ b/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/types/XSHexBinary.java
@@ -8,17 +8,20 @@
* Contributors:
* Mukul Gandhi - bug 281054 - initial API and implementation
* David Carver (STAR) - bug 228223 - fixed casting issue. Needed to encode the value.
+ * Mukul Gandhi - bug 280798 - PsychoPath support for JDK 1.4
*******************************************************************************/
package org.eclipse.wst.xml.xpath2.processor.internal.types;
import org.apache.xerces.impl.dv.util.Base64;
import org.apache.xerces.impl.dv.util.HexBin;
+import org.eclipse.wst.xml.xpath2.api.typesystem.TypeDefinition;
import org.eclipse.wst.xml.xpath2.processor.DynamicContext;
import org.eclipse.wst.xml.xpath2.processor.DynamicError;
import org.eclipse.wst.xml.xpath2.processor.ResultSequence;
import org.eclipse.wst.xml.xpath2.processor.ResultSequenceFactory;
import org.eclipse.wst.xml.xpath2.processor.internal.function.CmpEq;
+import org.eclipse.wst.xml.xpath2.processor.internal.types.builtin.BuiltinTypeLibrary;
/**
* A representation of the xs:hexBinary datatype
@@ -50,7 +53,6 @@ public class XSHexBinary extends CtrType implements CmpEq {
*
* @return "xs:hexBinary" which is the datatype's full pathname
*/
- @Override
public String string_type() {
return XS_HEX_BINARY;
}
@@ -60,7 +62,6 @@ public class XSHexBinary extends CtrType implements CmpEq {
*
* @return "hexBinary" which is the datatype's name
*/
- @Override
public String type_name() {
return "hexBinary";
}
@@ -71,7 +72,6 @@ public class XSHexBinary extends CtrType implements CmpEq {
*
* @return The hexBinary stored
*/
- @Override
public String string_value() {
return _value.toUpperCase();
}
@@ -94,7 +94,6 @@ public class XSHexBinary extends CtrType implements CmpEq {
* @return New ResultSequence representing hexBinary value
* @throws DynamicError
*/
- @Override
public ResultSequence constructor(ResultSequence arg) throws DynamicError {
ResultSequence rs = ResultSequenceFactory.create_new();
@@ -192,5 +191,7 @@ public class XSHexBinary extends CtrType implements CmpEq {
return true;
}
-
+ public TypeDefinition getTypeDefinition() {
+ return BuiltinTypeLibrary.XS_HEXBINARY;
+ }
}
diff --git a/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/types/XSID.java b/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/types/XSID.java
index e8fd900..8a5eff2 100644
--- a/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/types/XSID.java
+++ b/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/types/XSID.java
@@ -12,9 +12,11 @@
*******************************************************************************/
package org.eclipse.wst.xml.xpath2.processor.internal.types;
+import org.eclipse.wst.xml.xpath2.api.typesystem.TypeDefinition;
import org.eclipse.wst.xml.xpath2.processor.DynamicError;
import org.eclipse.wst.xml.xpath2.processor.ResultSequence;
import org.eclipse.wst.xml.xpath2.processor.ResultSequenceFactory;
+import org.eclipse.wst.xml.xpath2.processor.internal.types.builtin.BuiltinTypeLibrary;
/*
* Implements the xs:ID data type.
@@ -33,17 +35,14 @@ public class XSID extends XSNCName {
super();
}
- @Override
public String string_type() {
return XS_ID;
}
- @Override
public String type_name() {
return "ID";
}
- @Override
public ResultSequence constructor(ResultSequence arg) throws DynamicError {
ResultSequence rs = ResultSequenceFactory.create_new();
@@ -62,5 +61,10 @@ public class XSID extends XSNCName {
return rs;
}
+
+ public TypeDefinition getTypeDefinition() {
+ return BuiltinTypeLibrary.XS_ID;
+ }
+
}
diff --git a/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/types/XSIDREF.java b/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/types/XSIDREF.java
index 387a7ab..533c8b4 100644
--- a/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/types/XSIDREF.java
+++ b/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/types/XSIDREF.java
@@ -12,9 +12,11 @@
*******************************************************************************/
package org.eclipse.wst.xml.xpath2.processor.internal.types;
+import org.eclipse.wst.xml.xpath2.api.typesystem.TypeDefinition;
import org.eclipse.wst.xml.xpath2.processor.DynamicError;
import org.eclipse.wst.xml.xpath2.processor.ResultSequence;
import org.eclipse.wst.xml.xpath2.processor.ResultSequenceFactory;
+import org.eclipse.wst.xml.xpath2.processor.internal.types.builtin.BuiltinTypeLibrary;
/*
* Implements the xs:IDREF data type.
@@ -33,17 +35,14 @@ public class XSIDREF extends XSNCName {
super();
}
- @Override
public String string_type() {
return XS_IDREF;
}
- @Override
public String type_name() {
return "IDREF";
}
- @Override
public ResultSequence constructor(ResultSequence arg) throws DynamicError {
ResultSequence rs = ResultSequenceFactory.create_new();
@@ -63,4 +62,8 @@ public class XSIDREF extends XSNCName {
return rs;
}
+ public TypeDefinition getTypeDefinition() {
+ return BuiltinTypeLibrary.XS_IDREF;
+ }
+
}
diff --git a/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/types/XSInt.java b/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/types/XSInt.java
index 5c1fe03..febb33a 100644
--- a/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/types/XSInt.java
+++ b/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/types/XSInt.java
@@ -7,15 +7,18 @@
*
* Contributors:
* Mukul Gandhi - bug 275105 - implementation of xs:int data type
+ * Mukul Gandhi - bug 280798 - PsychoPath support for JDK 1.4
*******************************************************************************/
package org.eclipse.wst.xml.xpath2.processor.internal.types;
import java.math.BigInteger;
+import org.eclipse.wst.xml.xpath2.api.typesystem.TypeDefinition;
import org.eclipse.wst.xml.xpath2.processor.DynamicError;
import org.eclipse.wst.xml.xpath2.processor.ResultSequence;
import org.eclipse.wst.xml.xpath2.processor.ResultSequenceFactory;
+import org.eclipse.wst.xml.xpath2.processor.internal.types.builtin.BuiltinTypeLibrary;
public class XSInt extends XSLong {
@@ -43,7 +46,6 @@ public class XSInt extends XSLong {
*
* @return "xs:int" which is the datatype's full pathname
*/
- @Override
public String string_type() {
return XS_INT;
}
@@ -53,7 +55,6 @@ public class XSInt extends XSLong {
*
* @return "int" which is the datatype's name
*/
- @Override
public String type_name() {
return "int";
}
@@ -67,7 +68,6 @@ public class XSInt extends XSLong {
* @return New ResultSequence consisting of the 'int' supplied
* @throws DynamicError
*/
- @Override
public ResultSequence constructor(ResultSequence arg) throws DynamicError {
ResultSequence rs = ResultSequenceFactory.create_new();
@@ -98,5 +98,10 @@ public class XSInt extends XSLong {
}
}
+
+ public TypeDefinition getTypeDefinition() {
+ return BuiltinTypeLibrary.XS_INT;
+ }
+
}
diff --git a/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/types/XSInteger.java b/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/types/XSInteger.java
index 6e906c9..fa8cd52 100644
--- a/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/types/XSInteger.java
+++ b/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/types/XSInteger.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2005, 2009 Andrea Bittau, University College London, and others
+ * Copyright (c) 2005, 2010 Andrea Bittau, University College London, and others
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
@@ -13,19 +13,21 @@
* David Carver (STAR) - bug 282223 - fix casting issues.
* Jesper Steen Moller - bug 262765 - fix type tests
* Jesper Steen Moller - bug 281028 - Added constructor from string
+ * Mukul Gandhi - bug 280798 - PsychoPath support for JDK 1.4
*******************************************************************************/
package org.eclipse.wst.xml.xpath2.processor.internal.types;
import java.math.BigDecimal;
import java.math.BigInteger;
-import java.math.RoundingMode;
import java.util.Iterator;
+import org.eclipse.wst.xml.xpath2.api.typesystem.TypeDefinition;
import org.eclipse.wst.xml.xpath2.processor.DynamicContext;
import org.eclipse.wst.xml.xpath2.processor.DynamicError;
import org.eclipse.wst.xml.xpath2.processor.ResultSequence;
import org.eclipse.wst.xml.xpath2.processor.ResultSequenceFactory;
+import org.eclipse.wst.xml.xpath2.processor.internal.types.builtin.BuiltinTypeLibrary;
/**
* A representation of the Integer datatype
@@ -69,7 +71,6 @@ public class XSInteger extends XSDecimal {
*
* @return "xs:integer" which is the datatype's full pathname
*/
- @Override
public String string_type() {
return XS_INTEGER;
}
@@ -79,7 +80,6 @@ public class XSInteger extends XSDecimal {
*
* @return "integer" which is the datatype's name
*/
- @Override
public String type_name() {
return "integer";
}
@@ -89,7 +89,6 @@ public class XSInteger extends XSDecimal {
*
* @return String representation of the integer stored
*/
- @Override
public String string_value() {
return _value.toString();
}
@@ -99,7 +98,6 @@ public class XSInteger extends XSDecimal {
*
* @return True is the integer represented is 0. False otherwise
*/
- @Override
public boolean zero() {
return (_value.compareTo(BigInteger.ZERO) == 0);
}
@@ -113,7 +111,6 @@ public class XSInteger extends XSDecimal {
* @return New ResultSequence consisting of the integer supplied
* @throws DynamicError
*/
- @Override
public ResultSequence constructor(ResultSequence arg) throws DynamicError {
ResultSequence rs = ResultSequenceFactory.create_new();
@@ -178,7 +175,6 @@ public class XSInteger extends XSDecimal {
return false;
}
- @Override
protected boolean isLexicalValue(String value) {
try {
@@ -219,7 +215,6 @@ public class XSInteger extends XSDecimal {
* @return A XSInteger consisting of the result of the mathematical
* addition.
*/
- @Override
public ResultSequence plus(ResultSequence arg) throws DynamicError {
ResultSequence carg = convertResultSequence(arg);
AnyType at = get_single_arg(carg);
@@ -258,7 +253,6 @@ public class XSInteger extends XSDecimal {
* @return A XSInteger consisting of the result of the mathematical
* subtraction.
*/
- @Override
public ResultSequence minus(ResultSequence arg) throws DynamicError {
ResultSequence carg = convertResultSequence(arg);
XSInteger val = (XSInteger) get_single_type(carg, XSInteger.class);
@@ -276,7 +270,6 @@ public class XSInteger extends XSDecimal {
* @return A XSInteger consisting of the result of the mathematical
* multiplication.
*/
- @Override
public ResultSequence times(ResultSequence arg) throws DynamicError {
ResultSequence carg = convertResultSequence(arg);
@@ -294,7 +287,6 @@ public class XSInteger extends XSDecimal {
* The ResultSequence to perform a modulus with
* @return A XSInteger consisting of the result of the mathematical modulus.
*/
- @Override
public ResultSequence mod(ResultSequence arg) throws DynamicError {
ResultSequence carg = convertResultSequence(arg);
@@ -309,7 +301,6 @@ public class XSInteger extends XSDecimal {
*
* @return New XSInteger representing the negation of the integer stored
*/
- @Override
public ResultSequence unary_minus() {
return ResultSequenceFactory
.create_new(new XSInteger(int_value().multiply(BigInteger.valueOf(-1))));
@@ -320,7 +311,6 @@ public class XSInteger extends XSDecimal {
*
* @return New XSInteger representing the absolute of the integer stored
*/
- @Override
public NumericType abs() {
return new XSInteger(int_value().abs());
}
@@ -329,7 +319,6 @@ public class XSInteger extends XSDecimal {
* (non-Javadoc)
* @see org.eclipse.wst.xml.xpath2.processor.internal.types.XSDecimal#gt(org.eclipse.wst.xml.xpath2.processor.internal.types.AnyType)
*/
- @Override
public boolean gt(AnyType arg, DynamicContext context) throws DynamicError {
AnyType carg = convertArg(arg);
XSInteger val = (XSInteger) get_single_type(carg, XSInteger.class);
@@ -339,7 +328,6 @@ public class XSInteger extends XSDecimal {
return compareResult > 0;
}
- @Override
protected AnyType convertArg(AnyType arg) throws DynamicError {
ResultSequence rs = ResultSequenceFactory.create_new(arg);
rs = constructor(rs);
@@ -351,7 +339,6 @@ public class XSInteger extends XSDecimal {
* (non-Javadoc)
* @see org.eclipse.wst.xml.xpath2.processor.internal.types.XSDecimal#lt(org.eclipse.wst.xml.xpath2.processor.internal.types.AnyType)
*/
- @Override
public boolean lt(AnyType arg, DynamicContext context) throws DynamicError {
AnyType carg = convertArg(arg);
XSInteger val = (XSInteger) get_single_type(carg, XSInteger.class);
@@ -361,7 +348,6 @@ public class XSInteger extends XSDecimal {
return compareResult < 0;
}
- @Override
public ResultSequence div(ResultSequence arg) throws DynamicError {
ResultSequence carg = convertResultSequence(arg);
@@ -371,8 +357,11 @@ public class XSInteger extends XSDecimal {
throw DynamicError.div_zero(null);
}
- BigDecimal result = getValue().divide(val.getValue(), 18, RoundingMode.HALF_EVEN);
+ BigDecimal result = getValue().divide(val.getValue(), 18, BigDecimal.ROUND_HALF_EVEN);
return ResultSequenceFactory.create_new(new XSDecimal(result));
}
+ public TypeDefinition getTypeDefinition() {
+ return BuiltinTypeLibrary.XS_INTEGER;
+ }
}
diff --git a/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/types/XSLong.java b/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/types/XSLong.java
index 6e04552..43f8036 100644
--- a/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/types/XSLong.java
+++ b/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/types/XSLong.java
@@ -8,15 +8,18 @@
* Contributors:
* Mukul Gandhi - bug 274952 - Initial API and implementation, of xs:long data
* type.
+ * Mukul Gandhi - bug 280798 - PsychoPath support for JDK 1.4
*******************************************************************************/
package org.eclipse.wst.xml.xpath2.processor.internal.types;
import java.math.BigInteger;
+import org.eclipse.wst.xml.xpath2.api.typesystem.TypeDefinition;
import org.eclipse.wst.xml.xpath2.processor.DynamicError;
import org.eclipse.wst.xml.xpath2.processor.ResultSequence;
import org.eclipse.wst.xml.xpath2.processor.ResultSequenceFactory;
+import org.eclipse.wst.xml.xpath2.processor.internal.types.builtin.BuiltinTypeLibrary;
public class XSLong extends XSInteger {
@@ -44,7 +47,6 @@ public class XSLong extends XSInteger {
*
* @return "xs:long" which is the datatype's full pathname
*/
- @Override
public String string_type() {
return XS_LONG;
}
@@ -54,7 +56,6 @@ public class XSLong extends XSInteger {
*
* @return "long" which is the datatype's name
*/
- @Override
public String type_name() {
return "long";
}
@@ -68,7 +69,6 @@ public class XSLong extends XSInteger {
* @return New ResultSequence consisting of the 'long' supplied
* @throws DynamicError
*/
- @Override
public ResultSequence constructor(ResultSequence arg) throws DynamicError {
ResultSequence rs = ResultSequenceFactory.create_new();
@@ -100,4 +100,8 @@ public class XSLong extends XSInteger {
}
+ public TypeDefinition getTypeDefinition() {
+ return BuiltinTypeLibrary.XS_LONG;
+ }
+
}
diff --git a/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/types/XSNCName.java b/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/types/XSNCName.java
index dbfe459..50d61ed 100644
--- a/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/types/XSNCName.java
+++ b/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/types/XSNCName.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2005, 2009 Andrea Bittau, University College London, and others
+ * Copyright (c) 2005, 2010 Andrea Bittau, University College London, and others
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
@@ -14,9 +14,11 @@
package org.eclipse.wst.xml.xpath2.processor.internal.types;
import org.apache.xerces.util.XMLChar;
+import org.eclipse.wst.xml.xpath2.api.typesystem.TypeDefinition;
import org.eclipse.wst.xml.xpath2.processor.DynamicError;
import org.eclipse.wst.xml.xpath2.processor.ResultSequence;
import org.eclipse.wst.xml.xpath2.processor.ResultSequenceFactory;
+import org.eclipse.wst.xml.xpath2.processor.internal.types.builtin.BuiltinTypeLibrary;
/**
* A representation of the NCName datatype
@@ -46,7 +48,6 @@ public class XSNCName extends XSName {
*
* @return "xs:NCName" which is the datatype's full pathname
*/
- @Override
public String string_type() {
return XS_NC_NAME;
}
@@ -56,7 +57,6 @@ public class XSNCName extends XSName {
*
* @return "NCName" which is the datatype's name
*/
- @Override
public String type_name() {
return "NCName";
}
@@ -70,7 +70,6 @@ public class XSNCName extends XSName {
* @return New ResultSequence consisting of the NCName supplied
* @throws DynamicError
*/
- @Override
public ResultSequence constructor(ResultSequence arg) throws DynamicError {
ResultSequence rs = ResultSequenceFactory.create_new();
@@ -104,4 +103,8 @@ public class XSNCName extends XSName {
return isValidNCName;
} // isConstraintSatisfied
+
+ public TypeDefinition getTypeDefinition() {
+ return BuiltinTypeLibrary.XS_NCNAME;
+ }
}
diff --git a/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/types/XSNMTOKEN.java b/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/types/XSNMTOKEN.java
index 4a78276..3b96fd6 100644
--- a/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/types/XSNMTOKEN.java
+++ b/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/types/XSNMTOKEN.java
@@ -14,9 +14,11 @@
package org.eclipse.wst.xml.xpath2.processor.internal.types;
import org.apache.xerces.util.XMLChar;
+import org.eclipse.wst.xml.xpath2.api.typesystem.TypeDefinition;
import org.eclipse.wst.xml.xpath2.processor.DynamicError;
import org.eclipse.wst.xml.xpath2.processor.ResultSequence;
import org.eclipse.wst.xml.xpath2.processor.ResultSequenceFactory;
+import org.eclipse.wst.xml.xpath2.processor.internal.types.builtin.BuiltinTypeLibrary;
/**
* A representation of the NMTOKEN datatype
@@ -46,7 +48,6 @@ public class XSNMTOKEN extends XSToken {
*
* @return "xs:NMTOKEN" which is the datatype's full pathname
*/
- @Override
public String string_type() {
return XS_NMTOKEN;
}
@@ -56,7 +57,6 @@ public class XSNMTOKEN extends XSToken {
*
* @return "NMTOKEN" which is the datatype's name
*/
- @Override
public String type_name() {
return "NMTOKEN";
}
@@ -70,7 +70,6 @@ public class XSNMTOKEN extends XSToken {
* @return New ResultSequence consisting of the NMTOKEN supplied
* @throws DynamicError
*/
- @Override
public ResultSequence constructor(ResultSequence arg) throws DynamicError {
ResultSequence rs = ResultSequenceFactory.create_new();
@@ -89,4 +88,9 @@ public class XSNMTOKEN extends XSToken {
return rs;
}
+
+ public TypeDefinition getTypeDefinition() {
+ return BuiltinTypeLibrary.XS_NMTOKEN;
+ }
+
}
diff --git a/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/types/XSName.java b/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/types/XSName.java
index 5a21a61..51f12bd 100644
--- a/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/types/XSName.java
+++ b/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/types/XSName.java
@@ -14,9 +14,11 @@
package org.eclipse.wst.xml.xpath2.processor.internal.types;
import org.apache.xerces.util.XMLChar;
+import org.eclipse.wst.xml.xpath2.api.typesystem.TypeDefinition;
import org.eclipse.wst.xml.xpath2.processor.DynamicError;
import org.eclipse.wst.xml.xpath2.processor.ResultSequence;
import org.eclipse.wst.xml.xpath2.processor.ResultSequenceFactory;
+import org.eclipse.wst.xml.xpath2.processor.internal.types.builtin.BuiltinTypeLibrary;
/**
* A representation of the Name datatype
@@ -46,7 +48,6 @@ public class XSName extends XSToken {
*
* @return "xs:Name" which is the datatype's full pathname
*/
- @Override
public String string_type() {
return XS_NAME;
}
@@ -56,7 +57,6 @@ public class XSName extends XSToken {
*
* @return "Name" which is the datatype's name
*/
- @Override
public String type_name() {
return "Name";
}
@@ -70,7 +70,6 @@ public class XSName extends XSToken {
* @return New ResultSequence consisting of the Name supplied
* @throws DynamicError
*/
- @Override
public ResultSequence constructor(ResultSequence arg) throws DynamicError {
ResultSequence rs = ResultSequenceFactory.create_new();
@@ -89,4 +88,8 @@ public class XSName extends XSToken {
return rs;
}
+
+ public TypeDefinition getTypeDefinition() {
+ return BuiltinTypeLibrary.XS_NAME;
+ }
}
diff --git a/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/types/XSNegativeInteger.java b/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/types/XSNegativeInteger.java
index 0488742..90894ba 100644
--- a/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/types/XSNegativeInteger.java
+++ b/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/types/XSNegativeInteger.java
@@ -9,15 +9,18 @@
* Mukul Gandhi - bug 277602 - Initial API and implementation, of xs:negativeInteger
* data type.
* David Carver (STAR) - bug 262765 - fixed abs value tests.
+ * Mukul Gandhi - bug 280798 - PsychoPath support for JDK 1.4
*******************************************************************************/
package org.eclipse.wst.xml.xpath2.processor.internal.types;
import java.math.BigInteger;
+import org.eclipse.wst.xml.xpath2.api.typesystem.TypeDefinition;
import org.eclipse.wst.xml.xpath2.processor.DynamicError;
import org.eclipse.wst.xml.xpath2.processor.ResultSequence;
import org.eclipse.wst.xml.xpath2.processor.ResultSequenceFactory;
+import org.eclipse.wst.xml.xpath2.processor.internal.types.builtin.BuiltinTypeLibrary;
public class XSNegativeInteger extends XSNonPositiveInteger {
@@ -45,7 +48,6 @@ public class XSNegativeInteger extends XSNonPositiveInteger {
*
* @return "xs:negativeInteger" which is the datatype's full pathname
*/
- @Override
public String string_type() {
return XS_NEGATIVE_INTEGER;
}
@@ -55,7 +57,6 @@ public class XSNegativeInteger extends XSNonPositiveInteger {
*
* @return "negativeInteger" which is the datatype's name
*/
- @Override
public String type_name() {
return "negativeInteger";
}
@@ -69,7 +70,6 @@ public class XSNegativeInteger extends XSNonPositiveInteger {
* @return New ResultSequence consisting of the 'negativeInteger' supplied
* @throws DynamicError
*/
- @Override
public ResultSequence constructor(ResultSequence arg) throws DynamicError {
ResultSequence rs = ResultSequenceFactory.create_new();
@@ -102,4 +102,7 @@ public class XSNegativeInteger extends XSNonPositiveInteger {
}
+ public TypeDefinition getTypeDefinition() {
+ return BuiltinTypeLibrary.XS_NEGATIVEINTEGER;
+ }
}
diff --git a/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/types/XSNonNegativeInteger.java b/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/types/XSNonNegativeInteger.java
index 15ce0d9..9d81fc1 100644
--- a/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/types/XSNonNegativeInteger.java
+++ b/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/types/XSNonNegativeInteger.java
@@ -9,15 +9,18 @@
* Mukul Gandhi - bug 277609 - Initial API and implementation, of xs:nonNegativeInteger
* data type.
* David Carver (STAR) - bug 262765 - fixed abs value tests.
+ * Mukul Gandhi - bug 280798 - PsychoPath support for JDK 1.4
*******************************************************************************/
package org.eclipse.wst.xml.xpath2.processor.internal.types;
import java.math.BigInteger;
+import org.eclipse.wst.xml.xpath2.api.typesystem.TypeDefinition;
import org.eclipse.wst.xml.xpath2.processor.DynamicError;
import org.eclipse.wst.xml.xpath2.processor.ResultSequence;
import org.eclipse.wst.xml.xpath2.processor.ResultSequenceFactory;
+import org.eclipse.wst.xml.xpath2.processor.internal.types.builtin.BuiltinTypeLibrary;
public class XSNonNegativeInteger extends XSInteger {
@@ -45,7 +48,6 @@ public class XSNonNegativeInteger extends XSInteger {
*
* @return "xs:nonNegativeInteger" which is the datatype's full pathname
*/
- @Override
public String string_type() {
return XS_NON_NEGATIVE_INTEGER;
}
@@ -55,7 +57,6 @@ public class XSNonNegativeInteger extends XSInteger {
*
* @return "nonNegativeInteger" which is the datatype's name
*/
- @Override
public String type_name() {
return "nonNegativeInteger";
}
@@ -69,7 +70,6 @@ public class XSNonNegativeInteger extends XSInteger {
* @return New ResultSequence consisting of the 'nonNegativeInteger' supplied
* @throws DynamicError
*/
- @Override
public ResultSequence constructor(ResultSequence arg) throws DynamicError {
ResultSequence rs = ResultSequenceFactory.create_new();
@@ -102,4 +102,8 @@ public class XSNonNegativeInteger extends XSInteger {
}
+ public TypeDefinition getTypeDefinition() {
+ return BuiltinTypeLibrary.XS_NONNEGATIVEINTEGER;
+ }
+
}
diff --git a/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/types/XSNonPositiveInteger.java b/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/types/XSNonPositiveInteger.java
index 09412d4..538b999 100644
--- a/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/types/XSNonPositiveInteger.java
+++ b/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/types/XSNonPositiveInteger.java
@@ -9,15 +9,18 @@
* Mukul Gandhi - bug 277599 - Initial API and implementation, of xs:nonPositiveInteger
* data type.
* David Carver (STAR) - bug 262765 - fixed abs value tests.
+ * Mukul Gandhi - bug 280798 - PsychoPath support for JDK 1.4
*******************************************************************************/
package org.eclipse.wst.xml.xpath2.processor.internal.types;
import java.math.BigInteger;
+import org.eclipse.wst.xml.xpath2.api.typesystem.TypeDefinition;
import org.eclipse.wst.xml.xpath2.processor.DynamicError;
import org.eclipse.wst.xml.xpath2.processor.ResultSequence;
import org.eclipse.wst.xml.xpath2.processor.ResultSequenceFactory;
+import org.eclipse.wst.xml.xpath2.processor.internal.types.builtin.BuiltinTypeLibrary;
public class XSNonPositiveInteger extends XSInteger {
@@ -45,7 +48,6 @@ public class XSNonPositiveInteger extends XSInteger {
*
* @return "xs:nonPositiveInteger" which is the datatype's full pathname
*/
- @Override
public String string_type() {
return XS_NON_POSITIVE_INTEGER;
}
@@ -55,7 +57,6 @@ public class XSNonPositiveInteger extends XSInteger {
*
* @return "nonPositiveInteger" which is the datatype's name
*/
- @Override
public String type_name() {
return "nonPositiveInteger";
}
@@ -69,7 +70,6 @@ public class XSNonPositiveInteger extends XSInteger {
* @return New ResultSequence consisting of the 'nonPositiveInteger' supplied
* @throws DynamicError
*/
- @Override
public ResultSequence constructor(ResultSequence arg) throws DynamicError {
ResultSequence rs = ResultSequenceFactory.create_new();
@@ -102,4 +102,8 @@ public class XSNonPositiveInteger extends XSInteger {
}
+ public TypeDefinition getTypeDefinition() {
+ return BuiltinTypeLibrary.XS_NONPOSITIVEINTEGER;
+ }
+
}
diff --git a/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/types/XSNormalizedString.java b/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/types/XSNormalizedString.java
index c5453cc..3ac4688 100644
--- a/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/types/XSNormalizedString.java
+++ b/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/types/XSNormalizedString.java
@@ -12,9 +12,11 @@
package org.eclipse.wst.xml.xpath2.processor.internal.types;
+import org.eclipse.wst.xml.xpath2.api.typesystem.TypeDefinition;
import org.eclipse.wst.xml.xpath2.processor.DynamicError;
import org.eclipse.wst.xml.xpath2.processor.ResultSequence;
import org.eclipse.wst.xml.xpath2.processor.ResultSequenceFactory;
+import org.eclipse.wst.xml.xpath2.processor.internal.types.builtin.BuiltinTypeLibrary;
/**
* A representation of the xs:normalizedString datatype
@@ -45,7 +47,6 @@ public class XSNormalizedString extends XSString {
*
* @return "xs:normalizedString" which is the datatype's full pathname
*/
- @Override
public String string_type() {
return XS_NORMALIZEDSTRING;
}
@@ -55,7 +56,6 @@ public class XSNormalizedString extends XSString {
*
* @return "normalizedString" which is the datatype's name
*/
- @Override
public String type_name() {
return "normalizedString";
}
@@ -69,7 +69,6 @@ public class XSNormalizedString extends XSString {
* @return New ResultSequence consisting of the supplied String
* @throws DynamicError
*/
- @Override
public ResultSequence constructor(ResultSequence arg) throws DynamicError {
ResultSequence rs = ResultSequenceFactory.create_new();
@@ -106,4 +105,8 @@ public class XSNormalizedString extends XSString {
} // isSatisfiesConstraints
+ public TypeDefinition getTypeDefinition() {
+ return BuiltinTypeLibrary.XS_NORMALIZEDSTRING;
+ }
+
}
diff --git a/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/types/XSNotation.java b/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/types/XSNotation.java
index 6da4a0b..5f37284 100644
--- a/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/types/XSNotation.java
+++ b/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/types/XSNotation.java
@@ -7,36 +7,39 @@
*
* Contributors:
* David Carver (STAR) bug 282223 - initial API and implementation
+ * Mukul Gandhi - bug 280798 - PsychoPath support for JDK 1.4
*******************************************************************************/
package org.eclipse.wst.xml.xpath2.processor.internal.types;
+import org.eclipse.wst.xml.xpath2.api.typesystem.TypeDefinition;
import org.eclipse.wst.xml.xpath2.processor.DynamicError;
import org.eclipse.wst.xml.xpath2.processor.ResultSequence;
+import org.eclipse.wst.xml.xpath2.processor.internal.types.builtin.BuiltinTypeLibrary;
public class XSNotation extends CtrType {
private static final String XS_NOTATION = "xs:NOTATION";
- @Override
public String string_type() {
return XS_NOTATION;
}
- @Override
public String string_value() {
return null;
}
- @Override
public ResultSequence constructor(ResultSequence arg) throws DynamicError {
if (arg.empty())
DynamicError.throw_type_error();
throw new DynamicError("XPST0080", "Can't Cast to NOTATION");
}
- @Override
public String type_name() {
return "NOTATION";
}
+ public TypeDefinition getTypeDefinition() {
+ return BuiltinTypeLibrary.XS_NOTATION;
+ }
+
}
diff --git a/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/types/XSPositiveInteger.java b/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/types/XSPositiveInteger.java
index 3465faa..52a8c56 100644
--- a/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/types/XSPositiveInteger.java
+++ b/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/types/XSPositiveInteger.java
@@ -9,15 +9,18 @@
* Mukul Gandhi - bug 277632 - Initial API and implementation, of xs:positiveInteger
* data type.
* David Carver (STAR) - bug 262765 - fixed abs value tests.
+ * Mukul Gandhi - bug 280798 - PsychoPath support for JDK 1.4
*******************************************************************************/
package org.eclipse.wst.xml.xpath2.processor.internal.types;
import java.math.BigInteger;
+import org.eclipse.wst.xml.xpath2.api.typesystem.TypeDefinition;
import org.eclipse.wst.xml.xpath2.processor.DynamicError;
import org.eclipse.wst.xml.xpath2.processor.ResultSequence;
import org.eclipse.wst.xml.xpath2.processor.ResultSequenceFactory;
+import org.eclipse.wst.xml.xpath2.processor.internal.types.builtin.BuiltinTypeLibrary;
public class XSPositiveInteger extends XSNonNegativeInteger {
@@ -45,7 +48,6 @@ public class XSPositiveInteger extends XSNonNegativeInteger {
*
* @return "xs:positiveInteger" which is the datatype's full pathname
*/
- @Override
public String string_type() {
return XS_POSITIVE_INTEGER;
}
@@ -55,7 +57,6 @@ public class XSPositiveInteger extends XSNonNegativeInteger {
*
* @return "positiveInteger" which is the datatype's name
*/
- @Override
public String type_name() {
return "positiveInteger";
}
@@ -69,7 +70,6 @@ public class XSPositiveInteger extends XSNonNegativeInteger {
* @return New ResultSequence consisting of the 'positiveInteger' supplied
* @throws DynamicError
*/
- @Override
public ResultSequence constructor(ResultSequence arg) throws DynamicError {
ResultSequence rs = ResultSequenceFactory.create_new();
@@ -102,4 +102,8 @@ public class XSPositiveInteger extends XSNonNegativeInteger {
}
+ public TypeDefinition getTypeDefinition() {
+ return BuiltinTypeLibrary.XS_POSITIVEINTEGER;
+ }
+
}
diff --git a/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/types/XSShort.java b/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/types/XSShort.java
index 7487cd6..0a741a6 100644
--- a/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/types/XSShort.java
+++ b/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/types/XSShort.java
@@ -7,15 +7,18 @@
*
* Contributors:
* Mukul Gandhi - bug 277608 - implementation of xs:short data type
+ * Mukul Gandhi - bug 280798 - PsychoPath support for JDK 1.4
*******************************************************************************/
package org.eclipse.wst.xml.xpath2.processor.internal.types;
import java.math.BigInteger;
+import org.eclipse.wst.xml.xpath2.api.typesystem.TypeDefinition;
import org.eclipse.wst.xml.xpath2.processor.DynamicError;
import org.eclipse.wst.xml.xpath2.processor.ResultSequence;
import org.eclipse.wst.xml.xpath2.processor.ResultSequenceFactory;
+import org.eclipse.wst.xml.xpath2.processor.internal.types.builtin.BuiltinTypeLibrary;
public class XSShort extends XSInt {
@@ -43,7 +46,6 @@ public class XSShort extends XSInt {
*
* @return "xs:short" which is the datatype's full pathname
*/
- @Override
public String string_type() {
return XS_SHORT;
}
@@ -53,7 +55,6 @@ public class XSShort extends XSInt {
*
* @return "short" which is the datatype's name
*/
- @Override
public String type_name() {
return "short";
}
@@ -67,7 +68,6 @@ public class XSShort extends XSInt {
* @return New ResultSequence consisting of the 'short' supplied
* @throws DynamicError
*/
- @Override
public ResultSequence constructor(ResultSequence arg) throws DynamicError {
ResultSequence rs = ResultSequenceFactory.create_new();
@@ -99,4 +99,7 @@ public class XSShort extends XSInt {
}
+ public TypeDefinition getTypeDefinition() {
+ return BuiltinTypeLibrary.XS_SHORT;
+ }
}
diff --git a/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/types/XSString.java b/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/types/XSString.java
index 85ea1d1..c4b49b9 100644
--- a/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/types/XSString.java
+++ b/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/types/XSString.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2005, 2009 Andrea Bittau, University College London, and others
+ * Copyright (c) 2005, 2010 Andrea Bittau, University College London, and others
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
@@ -10,12 +10,14 @@
* Mukul Gandhi - improved comparison of xs:string with other XDM types
* Jesper S Moller - bug 286061 correct handling of quoted string
* Jesper S Moller - bug 280555 - Add pluggable collation support
+ * Mukul Gandhi - bug 280798 - PsychoPath support for JDK 1.4
*******************************************************************************/
package org.eclipse.wst.xml.xpath2.processor.internal.types;
import java.math.BigInteger;
+import org.eclipse.wst.xml.xpath2.api.typesystem.TypeDefinition;
import org.eclipse.wst.xml.xpath2.processor.DynamicContext;
import org.eclipse.wst.xml.xpath2.processor.DynamicError;
import org.eclipse.wst.xml.xpath2.processor.ResultSequence;
@@ -24,6 +26,7 @@ import org.eclipse.wst.xml.xpath2.processor.internal.function.CmpEq;
import org.eclipse.wst.xml.xpath2.processor.internal.function.CmpGt;
import org.eclipse.wst.xml.xpath2.processor.internal.function.CmpLt;
import org.eclipse.wst.xml.xpath2.processor.internal.function.FnCompare;
+import org.eclipse.wst.xml.xpath2.processor.internal.types.builtin.BuiltinTypeLibrary;
/**
* A representation of the String datatype
@@ -55,7 +58,6 @@ public class XSString extends CtrType implements CmpEq, CmpGt, CmpLt {
*
* @return "xs:string" which is the datatype's full pathname
*/
- @Override
public String string_type() {
return XS_STRING;
}
@@ -65,7 +67,6 @@ public class XSString extends CtrType implements CmpEq, CmpGt, CmpLt {
*
* @return "string" which is the datatype's name
*/
- @Override
public String type_name() {
return "string";
}
@@ -76,7 +77,6 @@ public class XSString extends CtrType implements CmpEq, CmpGt, CmpLt {
*
* @return The String stored
*/
- @Override
public String string_value() {
return _value;
}
@@ -100,7 +100,6 @@ public class XSString extends CtrType implements CmpEq, CmpGt, CmpLt {
* @return New ResultSequence consisting of the supplied String
* @throws DynamicError
*/
- @Override
public ResultSequence constructor(ResultSequence arg) throws DynamicError {
ResultSequence rs = ResultSequenceFactory.create_new();
@@ -186,5 +185,8 @@ public class XSString extends CtrType implements CmpEq, CmpGt, CmpLt {
return cmp < 0;
}
+ public TypeDefinition getTypeDefinition() {
+ return BuiltinTypeLibrary.XS_STRING;
+ }
}
diff --git a/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/types/XSTime.java b/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/types/XSTime.java
index fc8be42..482ab95 100644
--- a/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/types/XSTime.java
+++ b/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/types/XSTime.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2005, 2009 Andrea Bittau, University College London, and others
+ * Copyright (c) 2005, 2010 Andrea Bittau, University College London, and others
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
@@ -12,15 +12,18 @@
* correction of casting to time.
* David Carver - bug 280547 - fix dates for comparison
* Jesper Steen Moller - bug 262765 - fix type tests
+ * Mukul Gandhi - bug 280798 - PsychoPath support for JDK 1.4
*******************************************************************************/
package org.eclipse.wst.xml.xpath2.processor.internal.types;
+import org.eclipse.wst.xml.xpath2.api.typesystem.TypeDefinition;
import org.eclipse.wst.xml.xpath2.processor.DynamicContext;
import org.eclipse.wst.xml.xpath2.processor.DynamicError;
import org.eclipse.wst.xml.xpath2.processor.ResultSequence;
import org.eclipse.wst.xml.xpath2.processor.ResultSequenceFactory;
import org.eclipse.wst.xml.xpath2.processor.internal.function.*;
+import org.eclipse.wst.xml.xpath2.processor.internal.types.builtin.BuiltinTypeLibrary;
import java.util.*;
@@ -74,7 +77,6 @@ Cloneable {
* @return New XSTime representing the copy of the time and timezone
* @throws CloneNotSupportedException
*/
- @Override
public Object clone() throws CloneNotSupportedException {
Calendar c = (Calendar) calendar().clone();
XSDuration t = tz();
@@ -90,7 +92,6 @@ Cloneable {
*
* @return "time" which is the datatype's name
*/
- @Override
public String type_name() {
return "time";
}
@@ -122,7 +123,6 @@ Cloneable {
* @return New ResultSequence consisting of the supplied time
* @throws DynamicError
*/
- @Override
public ResultSequence constructor(ResultSequence arg) throws DynamicError {
ResultSequence rs = ResultSequenceFactory.create_new();
@@ -220,7 +220,6 @@ Cloneable {
*
* @return String representation of the time stored
*/
- @Override
public String string_value() {
String ret = "";
@@ -275,7 +274,6 @@ Cloneable {
*
* @return "xs:time" which is the datatype's full pathname
*/
- @Override
public String string_type() {
return XS_TIME;
}
@@ -452,4 +450,8 @@ Cloneable {
return null;
}
}
+
+ public TypeDefinition getTypeDefinition() {
+ return BuiltinTypeLibrary.XS_TIME;
+ }
}
diff --git a/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/types/XSToken.java b/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/types/XSToken.java
index ac797d4..231a0e8 100644
--- a/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/types/XSToken.java
+++ b/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/types/XSToken.java
@@ -11,9 +11,11 @@
package org.eclipse.wst.xml.xpath2.processor.internal.types;
+import org.eclipse.wst.xml.xpath2.api.typesystem.TypeDefinition;
import org.eclipse.wst.xml.xpath2.processor.DynamicError;
import org.eclipse.wst.xml.xpath2.processor.ResultSequence;
import org.eclipse.wst.xml.xpath2.processor.ResultSequenceFactory;
+import org.eclipse.wst.xml.xpath2.processor.internal.types.builtin.BuiltinTypeLibrary;
/**
* A representation of the xs:token datatype
@@ -44,7 +46,6 @@ public class XSToken extends XSNormalizedString {
*
* @return "xs:token" which is the datatype's full pathname
*/
- @Override
public String string_type() {
return XS_TOKEN;
}
@@ -54,7 +55,6 @@ public class XSToken extends XSNormalizedString {
*
* @return "token" which is the datatype's name
*/
- @Override
public String type_name() {
return "token";
}
@@ -68,7 +68,6 @@ public class XSToken extends XSNormalizedString {
* @return New ResultSequence consisting of the supplied String
* @throws DynamicError
*/
- @Override
public ResultSequence constructor(ResultSequence arg) throws DynamicError {
ResultSequence rs = ResultSequenceFactory.create_new();
@@ -106,4 +105,8 @@ public class XSToken extends XSNormalizedString {
} // isSatisfiesConstraints
+ public TypeDefinition getTypeDefinition() {
+ return BuiltinTypeLibrary.XS_TOKEN;
+ }
+
}
diff --git a/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/types/XSUnsignedByte.java b/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/types/XSUnsignedByte.java
index 12b9a5e..64c2cf6 100644
--- a/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/types/XSUnsignedByte.java
+++ b/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/types/XSUnsignedByte.java
@@ -9,15 +9,18 @@
* Mukul Gandhi - bug 277650 - Initial API and implementation, of xs:unsignedByte
* data type.
* David Carver (STAR) - bug 262765 - fixed abs value tests.
+ * Mukul Gandhi - bug 280798 - PsychoPath support for JDK 1.4
*******************************************************************************/
package org.eclipse.wst.xml.xpath2.processor.internal.types;
import java.math.BigInteger;
+import org.eclipse.wst.xml.xpath2.api.typesystem.TypeDefinition;
import org.eclipse.wst.xml.xpath2.processor.DynamicError;
import org.eclipse.wst.xml.xpath2.processor.ResultSequence;
import org.eclipse.wst.xml.xpath2.processor.ResultSequenceFactory;
+import org.eclipse.wst.xml.xpath2.processor.internal.types.builtin.BuiltinTypeLibrary;
public class XSUnsignedByte extends XSUnsignedShort {
@@ -45,7 +48,6 @@ public class XSUnsignedByte extends XSUnsignedShort {
*
* @return "xs:unsignedByte" which is the datatype's full pathname
*/
- @Override
public String string_type() {
return XS_UNSIGNED_BYTE;
}
@@ -55,7 +57,6 @@ public class XSUnsignedByte extends XSUnsignedShort {
*
* @return "unsignedByte" which is the datatype's name
*/
- @Override
public String type_name() {
return "unsignedByte";
}
@@ -69,7 +70,6 @@ public class XSUnsignedByte extends XSUnsignedShort {
* @return New ResultSequence consisting of the 'unsignedByte' supplied
* @throws DynamicError
*/
- @Override
public ResultSequence constructor(ResultSequence arg) throws DynamicError {
ResultSequence rs = ResultSequenceFactory.create_new();
@@ -103,4 +103,7 @@ public class XSUnsignedByte extends XSUnsignedShort {
}
+ public TypeDefinition getTypeDefinition() {
+ return BuiltinTypeLibrary.XS_UNSIGNEDBYTE;
+ }
}
diff --git a/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/types/XSUnsignedInt.java b/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/types/XSUnsignedInt.java
index 122a6ff..845b3f6 100644
--- a/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/types/XSUnsignedInt.java
+++ b/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/types/XSUnsignedInt.java
@@ -9,15 +9,18 @@
* Mukul Gandhi - bug 277642 - Initial API and implementation, of xs:unsignedInt
* data type.
* David Carver (STAR) - bug 262765 - fixed abs value tests.
+ * Mukul Gandhi - bug 280798 - PsychoPath support for JDK 1.4
*******************************************************************************/
package org.eclipse.wst.xml.xpath2.processor.internal.types;
import java.math.BigInteger;
+import org.eclipse.wst.xml.xpath2.api.typesystem.TypeDefinition;
import org.eclipse.wst.xml.xpath2.processor.DynamicError;
import org.eclipse.wst.xml.xpath2.processor.ResultSequence;
import org.eclipse.wst.xml.xpath2.processor.ResultSequenceFactory;
+import org.eclipse.wst.xml.xpath2.processor.internal.types.builtin.BuiltinTypeLibrary;
public class XSUnsignedInt extends XSUnsignedLong {
@@ -45,7 +48,6 @@ public class XSUnsignedInt extends XSUnsignedLong {
*
* @return "xs:unsignedInt" which is the datatype's full pathname
*/
- @Override
public String string_type() {
return XS_UNSIGNED_INT;
}
@@ -55,7 +57,6 @@ public class XSUnsignedInt extends XSUnsignedLong {
*
* @return "unsignedInt" which is the datatype's name
*/
- @Override
public String type_name() {
return "unsignedInt";
}
@@ -69,7 +70,6 @@ public class XSUnsignedInt extends XSUnsignedLong {
* @return New ResultSequence consisting of the 'unsignedInt' supplied
* @throws DynamicError
*/
- @Override
public ResultSequence constructor(ResultSequence arg) throws DynamicError {
ResultSequence rs = ResultSequenceFactory.create_new();
@@ -103,4 +103,7 @@ public class XSUnsignedInt extends XSUnsignedLong {
}
+ public TypeDefinition getTypeDefinition() {
+ return BuiltinTypeLibrary.XS_UNSIGNEDINT;
+ }
}
diff --git a/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/types/XSUnsignedLong.java b/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/types/XSUnsignedLong.java
index ac67028..45d0123 100644
--- a/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/types/XSUnsignedLong.java
+++ b/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/types/XSUnsignedLong.java
@@ -9,15 +9,18 @@
* Mukul Gandhi - bug 277629 - Initial API and implementation, of xs:unsignedLong
* data type.
* David Carver (STAR) - bug 262765 - fixed abs value tests.
+ * Mukul Gandhi - bug 280798 - PsychoPath support for JDK 1.4
*******************************************************************************/
package org.eclipse.wst.xml.xpath2.processor.internal.types;
import java.math.BigInteger;
+import org.eclipse.wst.xml.xpath2.api.typesystem.TypeDefinition;
import org.eclipse.wst.xml.xpath2.processor.DynamicError;
import org.eclipse.wst.xml.xpath2.processor.ResultSequence;
import org.eclipse.wst.xml.xpath2.processor.ResultSequenceFactory;
+import org.eclipse.wst.xml.xpath2.processor.internal.types.builtin.BuiltinTypeLibrary;
public class XSUnsignedLong extends XSNonNegativeInteger {
@@ -45,7 +48,6 @@ public class XSUnsignedLong extends XSNonNegativeInteger {
*
* @return "xs:unsignedLong" which is the datatype's full pathname
*/
- @Override
public String string_type() {
return XS_UNSIGNED_LONG;
}
@@ -55,7 +57,6 @@ public class XSUnsignedLong extends XSNonNegativeInteger {
*
* @return "unsignedLong" which is the datatype's name
*/
- @Override
public String type_name() {
return "unsignedLong";
}
@@ -69,7 +70,6 @@ public class XSUnsignedLong extends XSNonNegativeInteger {
* @return New ResultSequence consisting of the 'unsignedLong' supplied
* @throws DynamicError
*/
- @Override
public ResultSequence constructor(ResultSequence arg) throws DynamicError {
ResultSequence rs = ResultSequenceFactory.create_new();
@@ -103,4 +103,8 @@ public class XSUnsignedLong extends XSNonNegativeInteger {
}
+ public TypeDefinition getTypeDefinition() {
+ return BuiltinTypeLibrary.XS_UNSIGNEDLONG;
+ }
+
}
diff --git a/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/types/XSUnsignedShort.java b/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/types/XSUnsignedShort.java
index 3633e7f..44d4299 100644
--- a/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/types/XSUnsignedShort.java
+++ b/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/types/XSUnsignedShort.java
@@ -9,15 +9,18 @@
* Mukul Gandhi - bug 277645 - Initial API and implementation, of xs:unsignedShort
* data type.
* David Carver (STAR) - bug 262765 - fixed abs value tests.
+ * Mukul Gandhi - bug 280798 - PsychoPath support for JDK 1.4
*******************************************************************************/
package org.eclipse.wst.xml.xpath2.processor.internal.types;
import java.math.BigInteger;
+import org.eclipse.wst.xml.xpath2.api.typesystem.TypeDefinition;
import org.eclipse.wst.xml.xpath2.processor.DynamicError;
import org.eclipse.wst.xml.xpath2.processor.ResultSequence;
import org.eclipse.wst.xml.xpath2.processor.ResultSequenceFactory;
+import org.eclipse.wst.xml.xpath2.processor.internal.types.builtin.BuiltinTypeLibrary;
public class XSUnsignedShort extends XSUnsignedInt {
@@ -45,7 +48,6 @@ public class XSUnsignedShort extends XSUnsignedInt {
*
* @return "xs:unsignedShort" which is the datatype's full pathname
*/
- @Override
public String string_type() {
return XS_UNSIGNED_SHORT;
}
@@ -55,7 +57,6 @@ public class XSUnsignedShort extends XSUnsignedInt {
*
* @return "unsignedShort" which is the datatype's name
*/
- @Override
public String type_name() {
return "unsignedShort";
}
@@ -69,7 +70,6 @@ public class XSUnsignedShort extends XSUnsignedInt {
* @return New ResultSequence consisting of the 'unsignedShort' supplied
* @throws DynamicError
*/
- @Override
public ResultSequence constructor(ResultSequence arg) throws DynamicError {
ResultSequence rs = ResultSequenceFactory.create_new();
@@ -103,4 +103,8 @@ public class XSUnsignedShort extends XSUnsignedInt {
}
+ public TypeDefinition getTypeDefinition() {
+ return BuiltinTypeLibrary.XS_UNSIGNEDSHORT;
+ }
+
}
diff --git a/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/types/XSUntypedAtomic.java b/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/types/XSUntypedAtomic.java
index 95681e3..766614a 100644
--- a/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/types/XSUntypedAtomic.java
+++ b/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/types/XSUntypedAtomic.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2005, 2009 Andrea Bittau, University College London, and others
+ * Copyright (c) 2005, 2010 Andrea Bittau, University College London, and others
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
@@ -8,13 +8,16 @@
* Contributors:
* Andrea Bittau - initial API and implementation from the PsychoPath XPath 2.0
* David Carver - bug 262765 - corrected implementation of XSUntypedAtomic
+ * Mukul Gandhi - bug 280798 - PsychoPath support for JDK 1.4
*******************************************************************************/
package org.eclipse.wst.xml.xpath2.processor.internal.types;
+import org.eclipse.wst.xml.xpath2.api.typesystem.TypeDefinition;
import org.eclipse.wst.xml.xpath2.processor.DynamicError;
import org.eclipse.wst.xml.xpath2.processor.ResultSequence;
import org.eclipse.wst.xml.xpath2.processor.ResultSequenceFactory;
+import org.eclipse.wst.xml.xpath2.processor.internal.types.builtin.BuiltinTypeLibrary;
/**
* A representation of the UntypedAtomic datatype which is used to represent
@@ -45,7 +48,6 @@ public class XSUntypedAtomic extends CtrType {
*
* @return "xs:untypedAtomic" which is the datatype's full pathname
*/
- @Override
public String string_type() {
return XS_UNTYPED_ATOMIC;
}
@@ -56,12 +58,10 @@ public class XSUntypedAtomic extends CtrType {
*
* @return String representation of the value of this untyped atomic node
*/
- @Override
public String string_value() {
return _value;
}
- @Override
public ResultSequence constructor(ResultSequence arg) throws DynamicError {
ResultSequence rs = ResultSequenceFactory.create_new();
@@ -75,8 +75,12 @@ public class XSUntypedAtomic extends CtrType {
return rs;
}
- @Override
public String type_name() {
return "untypedAtomic";
}
+
+ public TypeDefinition getTypeDefinition() {
+ return BuiltinTypeLibrary.XS_UNTYPEDATOMIC;
+ }
+
}
diff --git a/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/types/XSYearMonthDuration.java b/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/types/XSYearMonthDuration.java
index c3329d2..7a8b9a7 100644
--- a/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/types/XSYearMonthDuration.java
+++ b/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/types/XSYearMonthDuration.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2005, 2009 Andrea Bittau, University College London, and others
+ * Copyright (c) 2005, 2010 Andrea Bittau, University College London, and others
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
@@ -11,17 +11,20 @@
* Mukul Gandhi - bug 279373 - improvements to multiply operation on xs:yearMonthDuration
* data type.
* David Carver - bug 282223 - implementation of xs:duration data type.
+ * Mukul Gandhi - bug 280798 - PsychoPath support for JDK 1.4
*******************************************************************************/
package org.eclipse.wst.xml.xpath2.processor.internal.types;
import java.math.BigDecimal;
+import org.eclipse.wst.xml.xpath2.api.typesystem.TypeDefinition;
import org.eclipse.wst.xml.xpath2.processor.DynamicContext;
import org.eclipse.wst.xml.xpath2.processor.DynamicError;
import org.eclipse.wst.xml.xpath2.processor.ResultSequence;
import org.eclipse.wst.xml.xpath2.processor.ResultSequenceFactory;
import org.eclipse.wst.xml.xpath2.processor.internal.function.*;
+import org.eclipse.wst.xml.xpath2.processor.internal.types.builtin.BuiltinTypeLibrary;
/**
* A representation of the YearMonthDuration datatype
@@ -160,7 +163,6 @@ public class XSYearMonthDuration extends XSDuration implements CmpEq, CmpLt,
*
* @return "yearMonthDuration" which is the datatype's name
*/
- @Override
public String type_name() {
return "yearMonthDuration";
}
@@ -174,7 +176,6 @@ public class XSYearMonthDuration extends XSDuration implements CmpEq, CmpLt,
* @return New ResultSequence consisting of the time duration extracted
* @throws DynamicError
*/
- @Override
public ResultSequence constructor(ResultSequence arg) throws DynamicError {
ResultSequence rs = ResultSequenceFactory.create_new();
@@ -219,7 +220,6 @@ public class XSYearMonthDuration extends XSDuration implements CmpEq, CmpLt,
* @return True if this duration represents a backward passage through time.
* False otherwise
*/
- @Override
public boolean negative() {
return _negative;
}
@@ -229,7 +229,6 @@ public class XSYearMonthDuration extends XSDuration implements CmpEq, CmpLt,
*
* @return String representation of the duration of time stored
*/
- @Override
public String string_value() {
String strval = "";
@@ -257,7 +256,6 @@ public class XSYearMonthDuration extends XSDuration implements CmpEq, CmpLt,
*
* @return "xs:yearMonthDuration" which is the datatype's full pathname
*/
- @Override
public String string_type() {
return XS_YEAR_MONTH_DURATION;
}
@@ -284,7 +282,6 @@ public class XSYearMonthDuration extends XSDuration implements CmpEq, CmpLt,
* @return True if they both represent the duration of time. False otherwise
* @throws DynamicError
*/
- @Override
public boolean eq(AnyType arg, DynamicContext context) throws DynamicError {
if (arg instanceof XSDayTimeDuration) {
XSDayTimeDuration dayTimeDuration = (XSDayTimeDuration)arg;
@@ -307,7 +304,6 @@ public class XSYearMonthDuration extends XSDuration implements CmpEq, CmpLt,
* stored. False otherwise
* @throws DynamicError
*/
- @Override
public boolean lt(AnyType arg, DynamicContext context) throws DynamicError {
XSYearMonthDuration val = (XSYearMonthDuration) NumericType
.get_single_type(arg, XSYearMonthDuration.class);
@@ -324,7 +320,6 @@ public class XSYearMonthDuration extends XSDuration implements CmpEq, CmpLt,
* stored. False otherwise
* @throws DynamicError
*/
- @Override
public boolean gt(AnyType arg, DynamicContext context) throws DynamicError {
XSYearMonthDuration val = (XSYearMonthDuration) NumericType
.get_single_type(arg, XSYearMonthDuration.class);
@@ -446,10 +441,15 @@ public class XSYearMonthDuration extends XSDuration implements CmpEq, CmpLt,
double res = (double) monthValue() / md.monthValue();
- return ResultSequenceFactory.create_new(new XSDecimal(BigDecimal.valueOf(res)));
+ return ResultSequenceFactory.create_new(new XSDecimal(new BigDecimal(res)));
} else {
DynamicError.throw_type_error();
return null; // unreach
}
}
+
+ public TypeDefinition getTypeDefinition() {
+ return BuiltinTypeLibrary.XS_YEARMONTHDURATION;
+ }
+
}
diff --git a/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/types/builtin/AtomicTypeDefinition.java b/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/types/builtin/AtomicTypeDefinition.java
new file mode 100644
index 0000000..4b3ad73
--- /dev/null
+++ b/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/types/builtin/AtomicTypeDefinition.java
@@ -0,0 +1,10 @@
+package org.eclipse.wst.xml.xpath2.processor.internal.types.builtin;
+
+import org.eclipse.wst.xml.xpath2.api.ResultSequence;
+import org.eclipse.wst.xml.xpath2.api.typesystem.TypeDefinition;
+
+public interface AtomicTypeDefinition extends TypeDefinition {
+
+ public abstract ResultSequence construct(ResultSequence rs);
+
+} \ No newline at end of file
diff --git a/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/types/builtin/BuiltinAtomicTypeDefinition.java b/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/types/builtin/BuiltinAtomicTypeDefinition.java
new file mode 100644
index 0000000..274ed05
--- /dev/null
+++ b/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/types/builtin/BuiltinAtomicTypeDefinition.java
@@ -0,0 +1,14 @@
+package org.eclipse.wst.xml.xpath2.processor.internal.types.builtin;
+
+public class BuiltinAtomicTypeDefinition extends BuiltinTypeDefinition {
+
+ public BuiltinAtomicTypeDefinition(String name, Class implementationClass, Class nativeType, BuiltinTypeDefinition baseType) {
+ super(name, implementationClass, nativeType, baseType);
+ }
+
+ public boolean isAbstract() {
+ return false;
+ }
+
+
+}
diff --git a/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/types/builtin/BuiltinListTypeDefinition.java b/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/types/builtin/BuiltinListTypeDefinition.java
new file mode 100644
index 0000000..83b6577
--- /dev/null
+++ b/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/types/builtin/BuiltinListTypeDefinition.java
@@ -0,0 +1,74 @@
+package org.eclipse.wst.xml.xpath2.processor.internal.types.builtin;
+
+import java.util.Collection;
+import java.util.List;
+
+import javax.xml.namespace.QName;
+
+import org.eclipse.wst.xml.xpath2.api.typesystem.SimpleTypeDefinition;
+import org.eclipse.wst.xml.xpath2.api.typesystem.TypeDefinition;
+
+public class BuiltinListTypeDefinition extends BuiltinTypeDefinition implements SimpleTypeDefinition {
+
+ private final BuiltinAtomicTypeDefinition itemType;
+
+ public BuiltinListTypeDefinition(QName name, BuiltinTypeDefinition baseType, BuiltinAtomicTypeDefinition itemType) {
+ super(name, null, Collection.class, baseType);
+ this.itemType = itemType;
+ }
+
+ public BuiltinListTypeDefinition(String name, BuiltinTypeDefinition baseType, BuiltinAtomicTypeDefinition itemType) {
+ super(name, null, Collection.class, baseType);
+ this.itemType = itemType;
+ }
+
+ public boolean isAbstract() {
+ return false;
+ }
+
+ public short getVariety() {
+ // TODO Auto-generated method stub
+ return 0;
+ }
+
+ public SimpleTypeDefinition getPrimitiveType() {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+ public short getBuiltInKind() {
+ // TODO Auto-generated method stub
+ return 0;
+ }
+
+ public TypeDefinition getItemType() {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+ public List getMemberTypes() {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+ public short getOrdered() {
+ // TODO Auto-generated method stub
+ return 0;
+ }
+
+ public boolean getFinite() {
+ // TODO Auto-generated method stub
+ return false;
+ }
+
+ public boolean getBounded() {
+ // TODO Auto-generated method stub
+ return false;
+ }
+
+ public boolean getNumeric() {
+ // TODO Auto-generated method stub
+ return false;
+ }
+
+}
diff --git a/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/types/builtin/BuiltinTypeDefinition.java b/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/types/builtin/BuiltinTypeDefinition.java
new file mode 100644
index 0000000..847715d
--- /dev/null
+++ b/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/types/builtin/BuiltinTypeDefinition.java
@@ -0,0 +1,110 @@
+package org.eclipse.wst.xml.xpath2.processor.internal.types.builtin;
+
+import java.lang.reflect.InvocationTargetException;
+import java.lang.reflect.Method;
+import java.util.Collections;
+import java.util.List;
+
+import javax.xml.namespace.QName;
+
+import org.eclipse.wst.xml.xpath2.api.ResultSequence;
+import org.eclipse.wst.xml.xpath2.api.typesystem.TypeDefinition;
+import org.eclipse.wst.xml.xpath2.processor.internal.XPathError;
+import org.w3c.dom.Attr;
+import org.w3c.dom.Element;
+
+public class BuiltinTypeDefinition implements AtomicTypeDefinition {
+
+ public final static String XS_NS = "http://www.w3.org/2001/XMLSchema";
+
+ private final QName name;
+ private final Class implementationClass;
+ private final Class nativeType;
+ private final BuiltinTypeDefinition baseType;
+ private final Method constructorMethod;
+
+ public BuiltinTypeDefinition(QName name, BuiltinTypeDefinition baseType) {
+ this(name, null, null, baseType);
+ }
+
+ public BuiltinTypeDefinition(String name, BuiltinTypeDefinition baseType) {
+ this(name, null, null, baseType);
+ }
+
+ public BuiltinTypeDefinition(QName name, Class implementationClass, Class nativeType, BuiltinTypeDefinition baseType) {
+ this.name = name;
+ this.implementationClass = implementationClass;
+ this.nativeType = nativeType;
+ this.baseType = baseType;
+ try {
+ this.constructorMethod = implementationClass != null ? implementationClass.getMethod("constructor", ResultSequence.class) : null;
+ } catch (SecurityException e) {
+ throw new RuntimeException(e);
+ } catch (NoSuchMethodException e) {
+ throw new RuntimeException(e);
+ }
+ }
+
+ public boolean isAbstract() {
+ return implementationClass == null;
+ }
+
+ public BuiltinTypeDefinition(String name, Class implementationClass, Class nativeType, BuiltinTypeDefinition baseType) {
+ this(new QName(XS_NS, name), implementationClass, nativeType, baseType);
+ }
+
+ public String getNamespace() {
+ return name.getNamespaceURI();
+ }
+
+ public String getName() {
+ return name.getLocalPart();
+ }
+
+ public TypeDefinition getBaseType() {
+ return baseType;
+ }
+
+ public boolean derivedFromType(TypeDefinition ancestorType, short derivationMethod) {
+ if (ancestorType == this) return true;
+ if (baseType == null) return false;
+ return baseType.derivedFromType(ancestorType, derivationMethod);
+ }
+
+ public boolean derivedFrom(String namespace, String name, short derivationMethod) {
+ if (namespace.equals(getNamespace()) && name.equals(getName())) return true;
+
+ if (baseType == null) return false;
+
+ return baseType.derivedFrom(namespace, name, derivationMethod);
+ }
+
+ public List getSimpleTypes(Attr attr) {
+ return Collections.emptyList();
+ }
+
+ public List getSimpleTypes(Element attr) {
+ return Collections.emptyList();
+ }
+
+ /* (non-Javadoc)
+ * @see org.eclipse.wst.xml.xpath2.processor.internal.types.builtin.AtomicTypeDefinition#construct(org.eclipse.wst.xml.xpath2.api.ResultSequence)
+ */
+ public ResultSequence construct(ResultSequence rs) {
+ try {
+ if (implementationClass == null) throw new XPathError("Type " + getName() + " is abstract!");
+ return (ResultSequence)constructorMethod.invoke(null, new Object[] { rs });
+ }
+ catch (IllegalAccessException e) {
+ throw new RuntimeException(e);
+ }
+ catch (InvocationTargetException e) {
+ throw new RuntimeException(e);
+ }
+ }
+
+ public Class getNativeType() {
+ return nativeType;
+ }
+
+}
diff --git a/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/types/builtin/BuiltinTypeLibrary.java b/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/types/builtin/BuiltinTypeLibrary.java
new file mode 100644
index 0000000..3c85111
--- /dev/null
+++ b/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/types/builtin/BuiltinTypeLibrary.java
@@ -0,0 +1,222 @@
+package org.eclipse.wst.xml.xpath2.processor.internal.types.builtin;
+
+import java.math.BigDecimal;
+import java.math.BigInteger;
+import java.util.Calendar;
+import java.util.HashMap;
+import java.util.Map;
+
+import javax.xml.datatype.Duration;
+
+import org.eclipse.wst.xml.xpath2.api.typesystem.TypeDefinition;
+import org.eclipse.wst.xml.xpath2.api.typesystem.TypeModel;
+import org.eclipse.wst.xml.xpath2.processor.internal.types.AnyAtomicType;
+import org.eclipse.wst.xml.xpath2.processor.internal.types.QName;
+import org.eclipse.wst.xml.xpath2.processor.internal.types.XSAnyURI;
+import org.eclipse.wst.xml.xpath2.processor.internal.types.XSBase64Binary;
+import org.eclipse.wst.xml.xpath2.processor.internal.types.XSBoolean;
+import org.eclipse.wst.xml.xpath2.processor.internal.types.XSByte;
+import org.eclipse.wst.xml.xpath2.processor.internal.types.XSDate;
+import org.eclipse.wst.xml.xpath2.processor.internal.types.XSDateTime;
+import org.eclipse.wst.xml.xpath2.processor.internal.types.XSDayTimeDuration;
+import org.eclipse.wst.xml.xpath2.processor.internal.types.XSDecimal;
+import org.eclipse.wst.xml.xpath2.processor.internal.types.XSDouble;
+import org.eclipse.wst.xml.xpath2.processor.internal.types.XSDuration;
+import org.eclipse.wst.xml.xpath2.processor.internal.types.XSEntity;
+import org.eclipse.wst.xml.xpath2.processor.internal.types.XSFloat;
+import org.eclipse.wst.xml.xpath2.processor.internal.types.XSGDay;
+import org.eclipse.wst.xml.xpath2.processor.internal.types.XSGMonth;
+import org.eclipse.wst.xml.xpath2.processor.internal.types.XSGMonthDay;
+import org.eclipse.wst.xml.xpath2.processor.internal.types.XSGYear;
+import org.eclipse.wst.xml.xpath2.processor.internal.types.XSGYearMonth;
+import org.eclipse.wst.xml.xpath2.processor.internal.types.XSHexBinary;
+import org.eclipse.wst.xml.xpath2.processor.internal.types.XSID;
+import org.eclipse.wst.xml.xpath2.processor.internal.types.XSIDREF;
+import org.eclipse.wst.xml.xpath2.processor.internal.types.XSInt;
+import org.eclipse.wst.xml.xpath2.processor.internal.types.XSInteger;
+import org.eclipse.wst.xml.xpath2.processor.internal.types.XSLong;
+import org.eclipse.wst.xml.xpath2.processor.internal.types.XSNCName;
+import org.eclipse.wst.xml.xpath2.processor.internal.types.XSNMTOKEN;
+import org.eclipse.wst.xml.xpath2.processor.internal.types.XSName;
+import org.eclipse.wst.xml.xpath2.processor.internal.types.XSNegativeInteger;
+import org.eclipse.wst.xml.xpath2.processor.internal.types.XSNonNegativeInteger;
+import org.eclipse.wst.xml.xpath2.processor.internal.types.XSNonPositiveInteger;
+import org.eclipse.wst.xml.xpath2.processor.internal.types.XSNotation;
+import org.eclipse.wst.xml.xpath2.processor.internal.types.XSPositiveInteger;
+import org.eclipse.wst.xml.xpath2.processor.internal.types.XSShort;
+import org.eclipse.wst.xml.xpath2.processor.internal.types.XSString;
+import org.eclipse.wst.xml.xpath2.processor.internal.types.XSTime;
+import org.eclipse.wst.xml.xpath2.processor.internal.types.XSToken;
+import org.eclipse.wst.xml.xpath2.processor.internal.types.XSUnsignedByte;
+import org.eclipse.wst.xml.xpath2.processor.internal.types.XSUnsignedInt;
+import org.eclipse.wst.xml.xpath2.processor.internal.types.XSUnsignedLong;
+import org.eclipse.wst.xml.xpath2.processor.internal.types.XSUnsignedShort;
+import org.eclipse.wst.xml.xpath2.processor.internal.types.XSYearMonthDuration;
+import org.w3c.dom.Node;
+
+
+/**
+ * This type captures all of the built-in XPath 2.0 types, as defined in F&O specification.
+ * http://www.w3.org/TR/xquery-operators/#datatypes
+ */
+public class BuiltinTypeLibrary {
+ // This type captures all of the built-in XPath 2.0 types, as defined in F&O specification.
+ // http://www.w3.org/TR/xquery-operators/#datatypes
+
+ public final static BuiltinTypeDefinition XS_ANYTYPE = new BuiltinTypeDefinition("anyType", null);
+ public final static BuiltinTypeDefinition XS_UNTYPED = new BuiltinTypeDefinition("untyped", XS_ANYTYPE);
+ public final static BuiltinTypeDefinition XS_ANYSIMPLETYPE = new BuiltinTypeDefinition("anySimpleType", XS_ANYTYPE);
+ // Subtypes of user-defined list and union types
+ // xs:IDREFS
+ // xs:NMTOKENS
+ // xs:ENTITIES
+ // xs:anyAtomicType
+ public final static BuiltinAtomicTypeDefinition XS_ANYATOMICTYPE = new BuiltinAtomicTypeDefinition("anyAtomicType", AnyAtomicType.class, Object.class, XS_ANYSIMPLETYPE);
+
+ public final static BuiltinAtomicTypeDefinition XS_UNTYPEDATOMIC = new BuiltinAtomicTypeDefinition("untypedAtomic", null, String.class, XS_ANYATOMICTYPE);
+
+ public final static BuiltinAtomicTypeDefinition XS_DATETIME = new BuiltinAtomicTypeDefinition("dateTime", XSDateTime.class, Calendar.class,XS_ANYATOMICTYPE);
+ public final static BuiltinAtomicTypeDefinition XS_DATE = new BuiltinAtomicTypeDefinition("date", XSDate.class, Calendar.class, XS_ANYATOMICTYPE);
+ public final static BuiltinAtomicTypeDefinition XS_TIME = new BuiltinAtomicTypeDefinition("time", XSTime.class, Calendar.class, XS_ANYATOMICTYPE);
+ public final static BuiltinAtomicTypeDefinition XS_DURATION = new BuiltinAtomicTypeDefinition("duration", XSDuration.class, Duration.class, XS_ANYATOMICTYPE);
+ public final static BuiltinAtomicTypeDefinition XS_YEARMONTHDURATION = new BuiltinAtomicTypeDefinition("yearMonthDuration", XSYearMonthDuration.class, Duration.class, XS_DURATION);
+ public final static BuiltinAtomicTypeDefinition XS_DAYTIMEDURATION = new BuiltinAtomicTypeDefinition("dayTimeDuration", XSDayTimeDuration.class, Duration.class, XS_DURATION);
+ public final static BuiltinAtomicTypeDefinition XS_FLOAT = new BuiltinAtomicTypeDefinition("float", XSFloat.class, Float.class, XS_ANYATOMICTYPE);
+ public final static BuiltinAtomicTypeDefinition XS_DOUBLE = new BuiltinAtomicTypeDefinition("double", XSDouble.class, Double.class, XS_ANYATOMICTYPE);
+ public final static BuiltinAtomicTypeDefinition XS_DECIMAL = new BuiltinAtomicTypeDefinition("decimal", XSDecimal.class, BigDecimal.class, XS_ANYATOMICTYPE);
+ public final static BuiltinAtomicTypeDefinition XS_INTEGER = new BuiltinAtomicTypeDefinition("integer", XSInteger.class, BigInteger.class, XS_DECIMAL);
+ public final static BuiltinAtomicTypeDefinition XS_NONPOSITIVEINTEGER = new BuiltinAtomicTypeDefinition("nonPositiveInteger", XSNonPositiveInteger.class, BigInteger.class, XS_INTEGER);
+ public final static BuiltinAtomicTypeDefinition XS_NEGATIVEINTEGER = new BuiltinAtomicTypeDefinition("negativeInteger", XSNegativeInteger.class, BigInteger.class, XS_NONPOSITIVEINTEGER);
+ public final static BuiltinAtomicTypeDefinition XS_LONG = new BuiltinAtomicTypeDefinition("long", XSLong.class, Long.class, XS_INTEGER);
+ public final static BuiltinAtomicTypeDefinition XS_INT = new BuiltinAtomicTypeDefinition("int", XSInt.class, Integer.class, XS_LONG);
+ public final static BuiltinAtomicTypeDefinition XS_SHORT = new BuiltinAtomicTypeDefinition("short", XSShort.class, Short.class, XS_INT);
+ public final static BuiltinAtomicTypeDefinition XS_BYTE = new BuiltinAtomicTypeDefinition("byte", XSByte.class, Byte.class, XS_SHORT);
+ public final static BuiltinAtomicTypeDefinition XS_NONNEGATIVEINTEGER = new BuiltinAtomicTypeDefinition("nonNegativeInteger", XSNonNegativeInteger.class, BigInteger.class, XS_INTEGER);
+ public final static BuiltinAtomicTypeDefinition XS_UNSIGNEDLONG = new BuiltinAtomicTypeDefinition("unsignedLong", XSUnsignedLong.class, BigInteger.class, XS_NONNEGATIVEINTEGER);
+ public final static BuiltinAtomicTypeDefinition XS_UNSIGNEDINT = new BuiltinAtomicTypeDefinition("unsignedInt", XSUnsignedInt.class, Long.class, XS_UNSIGNEDLONG);
+ public final static BuiltinAtomicTypeDefinition XS_UNSIGNEDSHORT = new BuiltinAtomicTypeDefinition("unsignedShort", XSUnsignedShort.class, Integer.class, XS_UNSIGNEDINT);
+ public final static BuiltinAtomicTypeDefinition XS_UNSIGNEDBYTE = new BuiltinAtomicTypeDefinition("unsignedByte", XSUnsignedByte.class, Short.class, XS_UNSIGNEDSHORT);
+ public final static BuiltinAtomicTypeDefinition XS_POSITIVEINTEGER = new BuiltinAtomicTypeDefinition("positiveInteger", XSPositiveInteger.class, BigInteger.class, XS_NONNEGATIVEINTEGER);
+ public final static BuiltinAtomicTypeDefinition XS_GYEARMONTH = new BuiltinAtomicTypeDefinition("gYearMonth", XSGYearMonth.class, Calendar.class, XS_ANYATOMICTYPE);
+ public final static BuiltinAtomicTypeDefinition XS_GYEAR = new BuiltinAtomicTypeDefinition("gYear", XSGYear.class, Calendar.class, XS_ANYATOMICTYPE);
+ public final static BuiltinAtomicTypeDefinition XS_GMONTHDAY = new BuiltinAtomicTypeDefinition("gMonthDay", XSGMonthDay.class, Calendar.class, XS_ANYATOMICTYPE);
+ public final static BuiltinAtomicTypeDefinition XS_GDAY = new BuiltinAtomicTypeDefinition("gDay", XSGDay.class, Calendar.class, XS_ANYATOMICTYPE);
+ public final static BuiltinAtomicTypeDefinition XS_GMONTH = new BuiltinAtomicTypeDefinition("gMonth", XSGMonth.class, Calendar.class, XS_ANYATOMICTYPE);
+ public final static BuiltinAtomicTypeDefinition XS_STRING = new BuiltinAtomicTypeDefinition("string", XSString.class, String.class, XS_ANYATOMICTYPE);
+ public final static BuiltinAtomicTypeDefinition XS_NORMALIZEDSTRING = new BuiltinAtomicTypeDefinition("normalizedString", XSString.class, String.class, XS_ANYATOMICTYPE);
+ public final static BuiltinAtomicTypeDefinition XS_TOKEN = new BuiltinAtomicTypeDefinition("token", XSToken.class, String.class, XS_NORMALIZEDSTRING);
+ public final static BuiltinAtomicTypeDefinition XS_LANGUAGE = new BuiltinAtomicTypeDefinition("language", XSToken.class, String.class, XS_TOKEN);
+ public final static BuiltinAtomicTypeDefinition XS_NMTOKEN = new BuiltinAtomicTypeDefinition("NMTOKEN", XSNMTOKEN.class, String.class, XS_TOKEN);
+ public final static BuiltinAtomicTypeDefinition XS_NAME = new BuiltinAtomicTypeDefinition("Name", XSName.class, String.class, XS_TOKEN);
+ public final static BuiltinAtomicTypeDefinition XS_NCNAME = new BuiltinAtomicTypeDefinition("NCName", XSNCName.class, String.class, XS_NAME);
+ public final static BuiltinAtomicTypeDefinition XS_ID = new BuiltinAtomicTypeDefinition("ID", XSID.class, String.class, XS_NCNAME);
+ public final static BuiltinAtomicTypeDefinition XS_IDREF = new BuiltinAtomicTypeDefinition("IDREF", XSIDREF.class, String.class, XS_NCNAME);
+ public final static BuiltinAtomicTypeDefinition XS_ENTITY = new BuiltinAtomicTypeDefinition("ENTITY", XSEntity.class, String.class, XS_NCNAME);
+ public final static BuiltinAtomicTypeDefinition XS_BOOLEAN = new BuiltinAtomicTypeDefinition("boolean", XSBoolean.class, Boolean.class, XS_ANYATOMICTYPE);
+ public final static BuiltinAtomicTypeDefinition XS_BASE64BINARY = new BuiltinAtomicTypeDefinition("base64Binary", XSBase64Binary.class, byte[].class, XS_ANYATOMICTYPE);
+ public final static BuiltinAtomicTypeDefinition XS_HEXBINARY = new BuiltinAtomicTypeDefinition("hexBinary", XSHexBinary.class, byte[].class, XS_ANYATOMICTYPE);
+ public final static BuiltinAtomicTypeDefinition XS_ANYURI = new BuiltinAtomicTypeDefinition("anyURI", XSAnyURI.class, String.class, XS_ANYATOMICTYPE);
+ public final static BuiltinAtomicTypeDefinition XS_QNAME = new BuiltinAtomicTypeDefinition("QName", QName.class, javax.xml.namespace.QName.class, XS_ANYATOMICTYPE);
+ public final static BuiltinAtomicTypeDefinition XS_NOTATION = new BuiltinAtomicTypeDefinition("NOTATION", XSNotation.class, String.class, XS_ANYATOMICTYPE);
+
+ // These are also subtypes of any types
+ public final static BuiltinListTypeDefinition XS_IDREFS = new BuiltinListTypeDefinition("IDREFS", XS_ANYTYPE, XS_IDREF);
+ public final static BuiltinListTypeDefinition XS_NMTOKENS = new BuiltinListTypeDefinition("NMTOKENS", XS_ANYTYPE, XS_NMTOKEN);
+ public final static BuiltinListTypeDefinition XS_ENTITIES = new BuiltinListTypeDefinition("ENTITIES", XS_ANYTYPE, XS_ENTITY);
+
+ public static final TypeModel BUILTIN_TYPES = new TypeModel() {
+
+ public TypeDefinition lookupType(String namespace, String typeName) {
+ if (! namespace.equals(BuiltinTypeDefinition.XS_NS)) return null;
+ return (TypeDefinition) builtinTypes.get(typeName);
+ }
+
+ public TypeDefinition lookupElementDeclaration(String namespace, String elementName) {
+ return null;
+ }
+
+ public TypeDefinition lookupAttributeDeclaration(String namespace, String attributeName) {
+ return null;
+ }
+
+ private Map/*<String, BuiltinTypeDefinition>*/ builtinTypes = new HashMap/*<String, BuiltinTypeDefinition>*/();
+ {
+ addType(XS_ANYTYPE);
+ addType(XS_UNTYPED);
+ addType(XS_ANYSIMPLETYPE);
+ addType(XS_ANYATOMICTYPE);
+
+ addType(XS_UNTYPEDATOMIC);
+
+ addType(XS_DATETIME);
+ addType(XS_DATE);
+ addType(XS_TIME);
+ addType(XS_DURATION);
+ addType(XS_YEARMONTHDURATION);
+ addType(XS_DAYTIMEDURATION);
+ addType(XS_FLOAT);
+ addType(XS_DOUBLE);
+ addType(XS_DECIMAL);
+ addType(XS_INTEGER);
+ addType(XS_NONPOSITIVEINTEGER);
+ addType(XS_NEGATIVEINTEGER);
+ addType(XS_LONG);
+ addType(XS_INT);
+ addType(XS_SHORT);
+ addType(XS_BYTE);
+ addType(XS_NONNEGATIVEINTEGER);
+ addType(XS_UNSIGNEDLONG);
+ addType(XS_UNSIGNEDINT);
+ addType(XS_UNSIGNEDSHORT);
+ addType(XS_UNSIGNEDBYTE);
+ addType(XS_POSITIVEINTEGER);
+ addType(XS_GYEARMONTH);
+ addType(XS_GYEAR);
+ addType(XS_GMONTHDAY);
+ addType(XS_GDAY);
+ addType(XS_GMONTH);
+ addType(XS_STRING);
+ addType(XS_NORMALIZEDSTRING);
+ addType(XS_TOKEN);
+ addType(XS_LANGUAGE);
+ addType(XS_NMTOKEN);
+ addType(XS_NAME);
+ addType(XS_NCNAME);
+ addType(XS_ID);
+ addType(XS_IDREF);
+ addType(XS_ENTITY);
+ addType(XS_BOOLEAN);
+ addType(XS_BASE64BINARY);
+ addType(XS_HEXBINARY);
+ addType(XS_ANYURI);
+ addType(XS_QNAME);
+ addType(XS_NOTATION);
+ addType(XS_IDREFS);
+ addType(XS_NMTOKENS);
+ addType(XS_ENTITIES);
+ }
+
+ private void addType(BuiltinTypeDefinition btd) { builtinTypes.put(btd.getName(), btd); }
+
+ public TypeDefinition getType(Node node) {
+ return null;
+ }
+ };
+
+ // Not types under XML Schema namespace
+// item
+// xs:anyAtomicType
+// node
+// attribute
+// user-defined attribute types
+// comment
+// document
+// user-defined document types
+// element
+// user-defined element types
+// processing-instruction
+// text
+
+
+
+}
diff --git a/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/types/ComplexXercesTypeDefinition.java b/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/types/xerces/ComplexXercesTypeDefinition.java
index e3dae96..d2fe4b8 100644
--- a/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/types/ComplexXercesTypeDefinition.java
+++ b/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/types/xerces/ComplexXercesTypeDefinition.java
@@ -1,10 +1,9 @@
-package org.eclipse.wst.xml.xpath2.processor.internal.types;
+package org.eclipse.wst.xml.xpath2.processor.internal.types.xerces;
import org.apache.xerces.xs.XSComplexTypeDefinition;
import org.apache.xerces.xs.XSSimpleTypeDefinition;
import org.eclipse.wst.xml.xpath2.api.typesystem.ComplexTypeDefinition;
import org.eclipse.wst.xml.xpath2.api.typesystem.SimpleTypeDefinition;
-import org.eclipse.wst.xml.xpath2.processor.internal.types.xerces.XercesTypeDefinition;
import org.w3c.dom.NodeList;
public class ComplexXercesTypeDefinition extends XercesTypeDefinition implements ComplexTypeDefinition {
diff --git a/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/types/SimpleXercesType.java b/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/types/xerces/SimpleXercesType.java
index 0b341d0..9c5a4dd 100644
--- a/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/types/SimpleXercesType.java
+++ b/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/types/xerces/SimpleXercesType.java
@@ -1,4 +1,4 @@
-package org.eclipse.wst.xml.xpath2.processor.internal.types;
+package org.eclipse.wst.xml.xpath2.processor.internal.types.xerces;
import org.apache.xerces.impl.dv.InvalidDatatypeValueException;
import org.apache.xerces.impl.dv.ValidatedInfo;
diff --git a/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/types/SimpleXercesTypeDefinition.java b/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/types/xerces/SimpleXercesTypeDefinition.java
index 0188cf7..5de5f03 100644
--- a/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/types/SimpleXercesTypeDefinition.java
+++ b/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/types/xerces/SimpleXercesTypeDefinition.java
@@ -1,4 +1,4 @@
-package org.eclipse.wst.xml.xpath2.processor.internal.types;
+package org.eclipse.wst.xml.xpath2.processor.internal.types.xerces;
import java.util.LinkedList;
import java.util.List;
@@ -10,7 +10,6 @@ import org.apache.xerces.xs.XSObjectList;
import org.apache.xerces.xs.XSSimpleTypeDefinition;
import org.eclipse.wst.xml.xpath2.processor.ResultSequence;
import org.eclipse.wst.xml.xpath2.processor.ResultSequenceFactory;
-import org.eclipse.wst.xml.xpath2.processor.internal.types.xerces.XercesTypeDefinition;
import org.eclipse.wst.xml.xpath2.api.typesystem.ComplexTypeDefinition;
import org.eclipse.wst.xml.xpath2.api.typesystem.SimpleTypeDefinition;
import org.eclipse.wst.xml.xpath2.api.typesystem.TypeDefinition;
@@ -39,13 +38,13 @@ public class SimpleXercesTypeDefinition extends XercesTypeDefinition implements
return simpleTypeDefinition.getBuiltInKind();
}
- public SimpleTypeDefinition getItemType() {
+ public TypeDefinition getItemType() {
return createTypeDefinition(simpleTypeDefinition.getItemType());
}
- public List<SimpleTypeDefinition> getMemberTypes() {
+ public List/*<SimpleTypeDefinition>*/ getMemberTypes() {
XSObjectList xsMemberTypes = simpleTypeDefinition.getMemberTypes();
- List<SimpleTypeDefinition> memberTypes = new LinkedList<SimpleTypeDefinition>();
+ List/*<SimpleTypeDefinition>*/ memberTypes = new LinkedList/*<SimpleTypeDefinition>*/();
for (int i = 0; i < xsMemberTypes.getLength(); i++) {
memberTypes.add(createTypeDefinition((XSSimpleTypeDefinition) xsMemberTypes.item(i)));
}
diff --git a/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/types/xerces/XercesTypeDefinition.java b/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/types/xerces/XercesTypeDefinition.java
index fc15f81..e76693d 100644
--- a/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/types/xerces/XercesTypeDefinition.java
+++ b/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/types/xerces/XercesTypeDefinition.java
@@ -11,9 +11,6 @@ import org.apache.xerces.xs.XSComplexTypeDefinition;
import org.apache.xerces.xs.XSConstants;
import org.apache.xerces.xs.XSSimpleTypeDefinition;
import org.apache.xerces.xs.XSTypeDefinition;
-import org.eclipse.wst.xml.xpath2.processor.internal.types.ComplexXercesTypeDefinition;
-import org.eclipse.wst.xml.xpath2.processor.internal.types.SimpleXercesType;
-import org.eclipse.wst.xml.xpath2.processor.internal.types.SimpleXercesTypeDefinition;
import org.eclipse.wst.xml.xpath2.api.typesystem.TypeDefinition;
import org.w3c.dom.Attr;
import org.w3c.dom.Element;
@@ -76,21 +73,21 @@ public abstract class XercesTypeDefinition implements TypeDefinition {
return xercesFlags;
}
- public List<Short> getSimpleTypes(Attr attr) {
+ public List/*<Short>*/ getSimpleTypes(Attr attr) {
PSVIAttrNSImpl psviAttr= (PSVIAttrNSImpl)attr;
return mapList(psviAttr.getItemValueTypes());
}
- public List<Short> getSimpleTypes(Element element) {
+ public List/*<Short>*/ getSimpleTypes(Element element) {
PSVIElementNSImpl psviElement= (PSVIElementNSImpl)element;
return mapList(psviElement.getItemValueTypes());
}
- private List<Short> mapList(ShortList valueTypes) {
+ private List/*<Short>*/ mapList(ShortList valueTypes) {
if (valueTypes == null) return null;
- List<Short> types = new LinkedList<Short>();
+ List/*<Short>*/ types = new LinkedList/*<Short>*/();
int limit = valueTypes.getLength();
- for (int i = 0; i < limit; ++i) types.add(valueTypes.item(i));
+ for (int i = 0; i < limit; ++i) types.add(Short.valueOf(valueTypes.item(i)));
return types;
}
diff --git a/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/utils/ComparableTypePromoter.java b/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/utils/ComparableTypePromoter.java
index 9373484..278ba26 100644
--- a/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/utils/ComparableTypePromoter.java
+++ b/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/utils/ComparableTypePromoter.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2009 Jesper Steen Moller, and others
+ * Copyright (c) 2009, 2010 Jesper Steen Moller, and others
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
@@ -7,11 +7,11 @@
*
* Contributors:
* Jesper Steen Moller - initial API and implementation
+ * Mukul Gandhi - bug 280798 - PsychoPath support for JDK 1.4
*******************************************************************************/
package org.eclipse.wst.xml.xpath2.processor.internal.utils;
-import org.eclipse.wst.xml.xpath2.processor.internal.types.AnyAtomicType;
import org.eclipse.wst.xml.xpath2.processor.internal.types.XSAnyURI;
import org.eclipse.wst.xml.xpath2.processor.internal.types.XSDate;
import org.eclipse.wst.xml.xpath2.processor.internal.types.XSDateTime;
@@ -20,10 +20,9 @@ import org.eclipse.wst.xml.xpath2.processor.internal.types.XSTime;
public class ComparableTypePromoter extends ScalarTypePromoter {
- @Override
- protected boolean checkCombination(Class<? extends AnyAtomicType> newType) {
+ protected boolean checkCombination(Class newType) {
- Class<? extends AnyAtomicType> targetType = getTargetType();
+ Class targetType = getTargetType();
if (newType == XSString.class || newType == XSTime.class || targetType == XSString.class || targetType == XSTime.class) {
return targetType == newType;
}
@@ -37,8 +36,7 @@ public class ComparableTypePromoter extends ScalarTypePromoter {
return super.checkCombination(newType);
}
- @Override
- protected Class<? extends AnyAtomicType> substitute(Class<? extends AnyAtomicType> typeToConsider) {
+ protected Class substitute(Class typeToConsider) {
if (typeToConsider == XSAnyURI.class || typeToConsider == XSString.class) {
return XSString.class;
}
diff --git a/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/utils/LiteralUtils.java b/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/utils/LiteralUtils.java
index d1f75d8..c90dcc7 100644
--- a/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/utils/LiteralUtils.java
+++ b/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/utils/LiteralUtils.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2009 Jesper Steen M�ller and others.
+ * Copyright (c) 2009, 2010 Jesper Steen M¿ller and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
@@ -7,6 +7,7 @@
*
* Contributors:
* Jesper Steen Moller - initial API and implementation
+ * Mukul Gandhi - bug 280798 - PsychoPath support for JDK 1.4
*******************************************************************************/
package org.eclipse.wst.xml.xpath2.processor.internal.utils;
@@ -38,7 +39,7 @@ public class LiteralUtils {
return quotedString.substring(1, inputLength-1);
}
- StringBuilder sb = new StringBuilder();
+ StringBuffer sb = new StringBuffer();
for (int i = 1; i < inputLength-1; ++i) {
char ch = quotedString.charAt(i);
sb.append(ch);
diff --git a/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/utils/NumericTypePromoter.java b/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/utils/NumericTypePromoter.java
index 14248e8..e147f0d 100644
--- a/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/utils/NumericTypePromoter.java
+++ b/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/utils/NumericTypePromoter.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2009 Jesper Steen Moller, and others
+ * Copyright (c) 2009, 2010 Jesper Steen Moller, and others
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
@@ -8,6 +8,7 @@
* Contributors:
* Jesper Steen Moller - initial API and implementation
* Jesper Steen Moller - bug 281028 - avg/min/max/sum work
+ * Mukul Gandhi - bug 280798 - PsychoPath support for JDK 1.4
*******************************************************************************/
package org.eclipse.wst.xml.xpath2.processor.internal.utils;
@@ -26,8 +27,7 @@ import org.eclipse.wst.xml.xpath2.processor.internal.types.XSUntypedAtomic;
public class NumericTypePromoter extends TypePromoter {
- @Override
- protected boolean checkCombination(Class<? extends AnyAtomicType> newType) {
+ protected boolean checkCombination(Class newType) {
// Note: Double or float will override everything
if (newType == XSDouble.class || getTargetType() == XSDouble.class) {
setTargetType(XSDouble.class);
@@ -43,7 +43,6 @@ public class NumericTypePromoter extends TypePromoter {
return true;
}
- @Override
public AnyAtomicType doPromote(AnyAtomicType value) throws DynamicError {
if (getTargetType() == XSFloat.class) {
return new XSFloat(value.string_value());
@@ -57,8 +56,7 @@ public class NumericTypePromoter extends TypePromoter {
return null;
}
- @Override
- protected Class<? extends AnyAtomicType> substitute(Class<? extends AnyAtomicType> typeToConsider) {
+ protected Class substitute(Class typeToConsider) {
if (typeToConsider == XSUntypedAtomic.class) return XSDouble.class;
if (isDerivedFrom(typeToConsider, XSFloat.class)) return XSFloat.class;
if (isDerivedFrom(typeToConsider, XSDouble.class)) return XSDouble.class;
@@ -67,7 +65,7 @@ public class NumericTypePromoter extends TypePromoter {
return null;
}
- private boolean isDerivedFrom(Class<? extends AnyType> typeToConsider, Class<? extends AnyType> superType) {
+ private boolean isDerivedFrom(Class typeToConsider, Class superType) {
return superType.isAssignableFrom(typeToConsider);
}
diff --git a/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/utils/ScalarTypePromoter.java b/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/utils/ScalarTypePromoter.java
index 5177d81..4909d30 100644
--- a/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/utils/ScalarTypePromoter.java
+++ b/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/utils/ScalarTypePromoter.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2009 Jesper Steen Moller, and others
+ * Copyright (c) 2009, 2010 Jesper Steen Moller, and others
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
@@ -7,28 +7,26 @@
*
* Contributors:
* Jesper Steen Moller - initial API and implementation
+ * Mukul Gandhi - bug 280798 - PsychoPath support for JDK 1.4
*******************************************************************************/
package org.eclipse.wst.xml.xpath2.processor.internal.utils;
-import org.eclipse.wst.xml.xpath2.processor.internal.types.AnyAtomicType;
import org.eclipse.wst.xml.xpath2.processor.internal.types.XSDayTimeDuration;
import org.eclipse.wst.xml.xpath2.processor.internal.types.XSYearMonthDuration;
public class ScalarTypePromoter extends NumericTypePromoter {
- @Override
- protected boolean checkCombination(Class<? extends AnyAtomicType> newType) {
+ protected boolean checkCombination(Class newType) {
- Class<? extends AnyAtomicType> targetType = getTargetType();
+ Class targetType = getTargetType();
if (targetType == XSDayTimeDuration.class || targetType == XSYearMonthDuration.class) {
return targetType == newType;
}
return super.checkCombination(newType);
}
- @Override
- protected Class<? extends AnyAtomicType> substitute(Class<? extends AnyAtomicType> typeToConsider) {
+ protected Class substitute(Class typeToConsider) {
if (typeToConsider == XSDayTimeDuration.class || typeToConsider == XSYearMonthDuration.class) {
return typeToConsider;
}
diff --git a/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/utils/StringCodePointIterator.java b/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/utils/StringCodePointIterator.java
index b409b3b..340c51f 100644
--- a/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/utils/StringCodePointIterator.java
+++ b/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/utils/StringCodePointIterator.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2009 Jesper Steen Moeller and others.
+ * Copyright (c) 2009, 2010 Jesper Steen Moeller and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
@@ -7,10 +7,13 @@
*
* Contributors:
* Jesper Steen Moeller - bug 282096 - initial API and implementation
+ * Mukul Gandhi - bug 280798 - PsychoPath support for JDK 1.4
*******************************************************************************/
package org.eclipse.wst.xml.xpath2.processor.internal.utils;
+import com.ibm.icu.lang.UCharacter;
+
public final class StringCodePointIterator implements CodePointIterator
{
private String text;
@@ -29,7 +32,7 @@ public final class StringCodePointIterator implements CodePointIterator
this.text = text;
this.end = text.length();
- if (end > 0 && Character.isHighSurrogate(text.charAt(end-1)))
+ if (end > 0 && UCharacter.isHighSurrogate(text.charAt(end-1)))
throw new IllegalArgumentException("Invalid UTF-16 sequence ending with a high surrogate");
this.pos = 0;
@@ -72,7 +75,7 @@ public final class StringCodePointIterator implements CodePointIterator
public int last()
{
pos = end;
- cpPos = Character.codePointCount(text, 0, pos);
+ cpPos = UCharacter.codePointCount(text, 0, pos);
return previous();
}
@@ -84,7 +87,9 @@ public final class StringCodePointIterator implements CodePointIterator
{
if (pos < end) {
char ch1 = text.charAt(pos);
- if (Character.isHighSurrogate(ch1)) return Character.toCodePoint(ch1, text.charAt(pos+1));
+ if (UCharacter.isHighSurrogate(ch1))
+ return UCharacter.toCodePoint(ch1, text.charAt(pos+1));
+
return ch1;
}
else {
@@ -100,7 +105,7 @@ public final class StringCodePointIterator implements CodePointIterator
{
if (pos < end - 1) {
pos++;
- if (Character.isLowSurrogate(text.charAt(pos))) pos++;
+ if (UCharacter.isLowSurrogate(text.charAt(pos))) pos++;
cpPos++;
return current();
}
@@ -118,7 +123,7 @@ public final class StringCodePointIterator implements CodePointIterator
{
if (pos > 0) {
pos--;
- if (Character.isLowSurrogate(text.charAt(pos))) pos--;
+ if (UCharacter.isLowSurrogate(text.charAt(pos))) pos--;
cpPos--;
return current();
}
@@ -142,7 +147,6 @@ public final class StringCodePointIterator implements CodePointIterator
* @return true if the given obj is the same as this
* StringCodePointIterator object; false otherwise.
*/
- @Override
public boolean equals(Object obj)
{
if (this == obj)
@@ -165,7 +169,6 @@ public final class StringCodePointIterator implements CodePointIterator
* Computes a hashcode for this iterator.
* @return A hash code
*/
- @Override
public int hashCode()
{
return text.hashCode() ^ pos ^ end;
@@ -175,7 +178,6 @@ public final class StringCodePointIterator implements CodePointIterator
* Creates a copy of this iterator.
* @return A copy of this
*/
- @Override
public Object clone()
{
try {
diff --git a/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/utils/TypePromoter.java b/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/utils/TypePromoter.java
index 01d743a..e755e28 100644
--- a/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/utils/TypePromoter.java
+++ b/bundles/org.eclipse.wst.xml.xpath2.processor/src/org/eclipse/wst/xml/xpath2/processor/internal/utils/TypePromoter.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2009 Jesper Steen Moller, and others
+ * Copyright (c) 2009, 2010 Jesper Steen Moller, and others
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
@@ -8,11 +8,13 @@
* Contributors:
* Jesper Steen Moller - initial API and implementation
* Jesper Steen Moller - bug 281028 - avg/min/max/sum work
+ * Mukul Gandhi - bug 280798 - PsychoPath support for JDK 1.4
*******************************************************************************/
package org.eclipse.wst.xml.xpath2.processor.internal.utils;
import java.util.Collection;
+import java.util.Iterator;
import org.eclipse.wst.xml.xpath2.processor.DynamicError;
import org.eclipse.wst.xml.xpath2.processor.ResultSequence;
@@ -24,7 +26,7 @@ import org.eclipse.wst.xml.xpath2.processor.internal.types.NodeType;
* Generic type promoter for handling subtype substitution and type promotions for functions and operators.
*/
public abstract class TypePromoter {
- private Class<? extends AnyAtomicType> targetType = null;
+ private Class targetType = null;
abstract public AnyAtomicType doPromote(AnyAtomicType value) throws DynamicError;
@@ -39,12 +41,12 @@ public abstract class TypePromoter {
* @param typeToConsider The
* @return The supertype to treat it as (i.e. if a xs:nonNegativeInteger is treated as xs:number)
*/
- abstract protected Class<? extends AnyAtomicType> substitute(Class<? extends AnyAtomicType> typeToConsider);
+ abstract protected Class substitute(Class typeToConsider);
- abstract protected boolean checkCombination(Class<? extends AnyAtomicType> newType);
+ abstract protected boolean checkCombination(Class newType);
- public void considerType(Class<? extends AnyAtomicType> typeToConsider) throws DynamicError {
- Class<? extends AnyAtomicType> baseType = substitute(typeToConsider);
+ public void considerType(Class typeToConsider) throws DynamicError {
+ Class baseType = substitute(typeToConsider);
if (baseType == null) {
throw DynamicError.argument_type_error(typeToConsider);
@@ -59,9 +61,9 @@ public abstract class TypePromoter {
}
}
- public void considerTypes(Collection<Class<? extends AnyAtomicType>> typesToConsider) throws DynamicError {
- for (Class<? extends AnyAtomicType> type : typesToConsider) {
- considerType(type);
+ public void considerTypes(Collection typesToConsider) throws DynamicError {
+ for (Iterator iter = typesToConsider.iterator(); iter.hasNext();) {
+ considerType((Class)iter.next());
}
}
@@ -72,11 +74,11 @@ public abstract class TypePromoter {
}
}
- public Class<? extends AnyAtomicType> getTargetType() {
+ public Class getTargetType() {
return targetType;
}
- protected void setTargetType(Class<? extends AnyAtomicType> class1) {
+ protected void setTargetType(Class class1) {
this.targetType = class1;
}
diff --git a/bundles/org.eclipse.wst.xml.xpath2.wtptypes/src/org/eclipse/wst/xml/xpath2/wtptypes/XsdDOMTypeProvider.java b/bundles/org.eclipse.wst.xml.xpath2.wtptypes/src/org/eclipse/wst/xml/xpath2/wtptypes/XsdDOMTypeProvider.java
index 6f801d1..a44cd70 100644
--- a/bundles/org.eclipse.wst.xml.xpath2.wtptypes/src/org/eclipse/wst/xml/xpath2/wtptypes/XsdDOMTypeProvider.java
+++ b/bundles/org.eclipse.wst.xml.xpath2.wtptypes/src/org/eclipse/wst/xml/xpath2/wtptypes/XsdDOMTypeProvider.java
@@ -221,7 +221,6 @@ public class XsdDOMTypeProvider {
}
public Class getNativeType() {
- // TODO Auto-generated method stub
return null;
}
@@ -231,14 +230,11 @@ public class XsdDOMTypeProvider {
static boolean isDerivedFrom(XSDTypeDefinition base, XSDTypeDefinition derived, short derivationMethod) {
if (base == derived) return true;
-
-
// TODO: Check flags
return false;
}
public TypeModel getTypeModel() {
- // TODO Auto-generated method stub
return null;
}
} \ No newline at end of file

Back to the top