incubator-imperius-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ke...@apache.org
Subject svn commit: r611261 [1/43] - in /incubator/imperius/trunk: ./ imperius-javaspl/ imperius-javaspl/src/main/java/org/apache/imperius/javaspl/ imperius-splcore/ imperius-splcore/src/main/antlr/org/apache/imperius/spl/parser/compiler/ imperius-splcore/src/...
Date Fri, 11 Jan 2008 18:57:14 GMT
Author: kevan
Date: Fri Jan 11 10:56:30 2008
New Revision: 611261

URL: http://svn.apache.org/viewvc?rev=611261&view=rev
Log:
Set svn:eol-style for files. Fixed a few more files with inconsistent line endings...

Modified:
    incubator/imperius/trunk/LICENSE.txt   (props changed)
    incubator/imperius/trunk/NOTICE.txt   (contents, props changed)
    incubator/imperius/trunk/README.txt   (contents, props changed)
    incubator/imperius/trunk/imperius-javaspl/pom.xml   (contents, props changed)
    incubator/imperius/trunk/imperius-javaspl/src/main/java/org/apache/imperius/javaspl/JavaActuatorImpl.java   (contents, props changed)
    incubator/imperius/trunk/imperius-javaspl/src/main/java/org/apache/imperius/javaspl/JavaDataCollectorImpl.java   (contents, props changed)
    incubator/imperius/trunk/imperius-javaspl/src/main/java/org/apache/imperius/javaspl/JavaSPLTypeConstants.java   (contents, props changed)
    incubator/imperius/trunk/imperius-javaspl/src/main/java/org/apache/imperius/javaspl/Java_SPLPolicyRuleProvider.java   (contents, props changed)
    incubator/imperius/trunk/imperius-splcore/pom.xml   (contents, props changed)
    incubator/imperius/trunk/imperius-splcore/src/main/antlr/org/apache/imperius/spl/parser/compiler/cimspl.g   (contents, props changed)
    incubator/imperius/trunk/imperius-splcore/src/main/antlr/org/apache/imperius/spl/parser/compiler/cimspl.tree.g   (contents, props changed)
    incubator/imperius/trunk/imperius-splcore/src/main/java/org/apache/imperius/spl/datastore/PolicyDataStore.java   (contents, props changed)
    incubator/imperius/trunk/imperius-splcore/src/main/java/org/apache/imperius/spl/datastore/PolicyParser.java   (contents, props changed)
    incubator/imperius/trunk/imperius-splcore/src/main/java/org/apache/imperius/spl/datastore/PolicyRepository.java   (contents, props changed)
    incubator/imperius/trunk/imperius-splcore/src/main/java/org/apache/imperius/spl/datastore/impl/PolicyCache.java   (contents, props changed)
    incubator/imperius/trunk/imperius-splcore/src/main/java/org/apache/imperius/spl/datastore/impl/PolicyDataStoreImpl.java   (contents, props changed)
    incubator/imperius/trunk/imperius-splcore/src/main/java/org/apache/imperius/spl/datastore/impl/PolicyParserImpl.java   (contents, props changed)
    incubator/imperius/trunk/imperius-splcore/src/main/java/org/apache/imperius/spl/datastore/impl/PolicyRepositoryImpl.java   (contents, props changed)
    incubator/imperius/trunk/imperius-splcore/src/main/java/org/apache/imperius/spl/evaluator/PolicyEvaluator.java   (contents, props changed)
    incubator/imperius/trunk/imperius-splcore/src/main/java/org/apache/imperius/spl/evaluator/impl/PolicyEvaluatorImpl.java   (contents, props changed)
    incubator/imperius/trunk/imperius-splcore/src/main/java/org/apache/imperius/spl/evaluator/impl/ReturnObjectStore.java   (contents, props changed)
    incubator/imperius/trunk/imperius-splcore/src/main/java/org/apache/imperius/spl/external/Actuator.java   (contents, props changed)
    incubator/imperius/trunk/imperius-splcore/src/main/java/org/apache/imperius/spl/external/Argument.java   (contents, props changed)
    incubator/imperius/trunk/imperius-splcore/src/main/java/org/apache/imperius/spl/external/DataCollector.java   (contents, props changed)
    incubator/imperius/trunk/imperius-splcore/src/main/java/org/apache/imperius/spl/external/Expression.java   (contents, props changed)
    incubator/imperius/trunk/imperius-splcore/src/main/java/org/apache/imperius/spl/external/InstanceInfo.java   (contents, props changed)
    incubator/imperius/trunk/imperius-splcore/src/main/java/org/apache/imperius/spl/external/InternalClient.java   (contents, props changed)
    incubator/imperius/trunk/imperius-splcore/src/main/java/org/apache/imperius/spl/external/TypeConstants.java   (contents, props changed)
    incubator/imperius/trunk/imperius-splcore/src/main/java/org/apache/imperius/spl/manager/PolicyManager.java   (contents, props changed)
    incubator/imperius/trunk/imperius-splcore/src/main/java/org/apache/imperius/spl/manager/impl/PolicyManagerImpl.java   (contents, props changed)
    incubator/imperius/trunk/imperius-splcore/src/main/java/org/apache/imperius/spl/parser/compiler/ASTWithLineNumber.java   (contents, props changed)
    incubator/imperius/trunk/imperius-splcore/src/main/java/org/apache/imperius/spl/parser/compiler/IdentPrimaryTuple.java   (contents, props changed)
    incubator/imperius/trunk/imperius-splcore/src/main/java/org/apache/imperius/spl/parser/compiler/symboltable/AnchorData.java   (contents, props changed)
    incubator/imperius/trunk/imperius-splcore/src/main/java/org/apache/imperius/spl/parser/compiler/symboltable/MacroSymbol.java   (contents, props changed)
    incubator/imperius/trunk/imperius-splcore/src/main/java/org/apache/imperius/spl/parser/compiler/symboltable/MethodSymbol.java   (contents, props changed)
    incubator/imperius/trunk/imperius-splcore/src/main/java/org/apache/imperius/spl/parser/compiler/symboltable/PropertySymbol.java   (contents, props changed)
    incubator/imperius/trunk/imperius-splcore/src/main/java/org/apache/imperius/spl/parser/compiler/symboltable/SPLSymbolTable.java   (contents, props changed)
    incubator/imperius/trunk/imperius-splcore/src/main/java/org/apache/imperius/spl/parser/compiler/symboltable/Symbol.java   (contents, props changed)
    incubator/imperius/trunk/imperius-splcore/src/main/java/org/apache/imperius/spl/parser/exceptions/ClassDoesNotExistException.java   (contents, props changed)
    incubator/imperius/trunk/imperius-splcore/src/main/java/org/apache/imperius/spl/parser/exceptions/IllegalExpressionTypeException.java   (contents, props changed)
    incubator/imperius/trunk/imperius-splcore/src/main/java/org/apache/imperius/spl/parser/exceptions/IllegalParameterTypeException.java   (contents, props changed)
    incubator/imperius/trunk/imperius-splcore/src/main/java/org/apache/imperius/spl/parser/exceptions/IllegalSymbolReferenceException.java   (contents, props changed)
    incubator/imperius/trunk/imperius-splcore/src/main/java/org/apache/imperius/spl/parser/exceptions/InstanceDoesNotExistException.java   (contents, props changed)
    incubator/imperius/trunk/imperius-splcore/src/main/java/org/apache/imperius/spl/parser/exceptions/InvalidAssociationException.java   (contents, props changed)
    incubator/imperius/trunk/imperius-splcore/src/main/java/org/apache/imperius/spl/parser/exceptions/InvalidCIMParameterException.java   (contents, props changed)
    incubator/imperius/trunk/imperius-splcore/src/main/java/org/apache/imperius/spl/parser/exceptions/InvalidPolicyParameterException.java   (contents, props changed)
    incubator/imperius/trunk/imperius-splcore/src/main/java/org/apache/imperius/spl/parser/exceptions/MissingParameterException.java   (contents, props changed)
    incubator/imperius/trunk/imperius-splcore/src/main/java/org/apache/imperius/spl/parser/exceptions/NonExistentSymbolException.java   (contents, props changed)
    incubator/imperius/trunk/imperius-splcore/src/main/java/org/apache/imperius/spl/parser/exceptions/PolicyAlreadyExistsInRepositoryException.java   (contents, props changed)
    incubator/imperius/trunk/imperius-splcore/src/main/java/org/apache/imperius/spl/parser/exceptions/PolicyDoesNotExistException.java   (contents, props changed)
    incubator/imperius/trunk/imperius-splcore/src/main/java/org/apache/imperius/spl/parser/exceptions/ReferenceDoesNotExistException.java   (contents, props changed)
    incubator/imperius/trunk/imperius-splcore/src/main/java/org/apache/imperius/spl/parser/exceptions/SPLException.java   (contents, props changed)
    incubator/imperius/trunk/imperius-splcore/src/main/java/org/apache/imperius/spl/parser/exceptions/SymbolAlreadyDefinedException.java   (contents, props changed)
    incubator/imperius/trunk/imperius-splcore/src/main/java/org/apache/imperius/spl/parser/exceptions/TypeMismatchException.java   (contents, props changed)
    incubator/imperius/trunk/imperius-splcore/src/main/java/org/apache/imperius/spl/parser/exceptions/TypesNotAssignableException.java   (contents, props changed)
    incubator/imperius/trunk/imperius-splcore/src/main/java/org/apache/imperius/spl/parser/expression/primary/BasicCollectionExpression.java   (contents, props changed)
    incubator/imperius/trunk/imperius-splcore/src/main/java/org/apache/imperius/spl/parser/expression/primary/CollectOperation.java   (contents, props changed)
    incubator/imperius/trunk/imperius-splcore/src/main/java/org/apache/imperius/spl/parser/expression/primary/MacroExpression.java   (contents, props changed)
    incubator/imperius/trunk/imperius-splcore/src/main/java/org/apache/imperius/spl/parser/expression/primary/PostCollectExpression.java   (contents, props changed)
    incubator/imperius/trunk/imperius-splcore/src/main/java/org/apache/imperius/spl/parser/expression/primary/PrimaryExpression.java   (contents, props changed)
    incubator/imperius/trunk/imperius-splcore/src/main/java/org/apache/imperius/spl/parser/expression/primary/SelfExpression.java   (contents, props changed)
    incubator/imperius/trunk/imperius-splcore/src/main/java/org/apache/imperius/spl/parser/expressions/BooleanExpression.java   (contents, props changed)
    incubator/imperius/trunk/imperius-splcore/src/main/java/org/apache/imperius/spl/parser/expressions/CalendarExpression.java   (contents, props changed)
    incubator/imperius/trunk/imperius-splcore/src/main/java/org/apache/imperius/spl/parser/expressions/ConstantExpression.java   (contents, props changed)
    incubator/imperius/trunk/imperius-splcore/src/main/java/org/apache/imperius/spl/parser/expressions/DoubleArgumentExpression.java   (contents, props changed)
    incubator/imperius/trunk/imperius-splcore/src/main/java/org/apache/imperius/spl/parser/expressions/MethodExpression.java   (contents, props changed)
    incubator/imperius/trunk/imperius-splcore/src/main/java/org/apache/imperius/spl/parser/expressions/MultipleArgumentExpression.java   (contents, props changed)
    incubator/imperius/trunk/imperius-splcore/src/main/java/org/apache/imperius/spl/parser/expressions/NumericExpression.java   (contents, props changed)
    incubator/imperius/trunk/imperius-splcore/src/main/java/org/apache/imperius/spl/parser/expressions/QuadrupleArgumentExpression.java   (contents, props changed)
    incubator/imperius/trunk/imperius-splcore/src/main/java/org/apache/imperius/spl/parser/expressions/ReferenceExpression.java   (contents, props changed)
    incubator/imperius/trunk/imperius-splcore/src/main/java/org/apache/imperius/spl/parser/expressions/SingleArgumentExpression.java   (contents, props changed)
    incubator/imperius/trunk/imperius-splcore/src/main/java/org/apache/imperius/spl/parser/expressions/StringExpression.java   (contents, props changed)
    incubator/imperius/trunk/imperius-splcore/src/main/java/org/apache/imperius/spl/parser/expressions/TimeZoneExpression.java   (contents, props changed)
    incubator/imperius/trunk/imperius-splcore/src/main/java/org/apache/imperius/spl/parser/expressions/TripleArgumentExpression.java   (contents, props changed)
    incubator/imperius/trunk/imperius-splcore/src/main/java/org/apache/imperius/spl/parser/expressions/ZeroArgumentExpression.java   (contents, props changed)
    incubator/imperius/trunk/imperius-splcore/src/main/java/org/apache/imperius/spl/parser/expressions/impl/Abs.java   (contents, props changed)
    incubator/imperius/trunk/imperius-splcore/src/main/java/org/apache/imperius/spl/parser/expressions/impl/Addition.java   (contents, props changed)
    incubator/imperius/trunk/imperius-splcore/src/main/java/org/apache/imperius/spl/parser/expressions/impl/AllInCollection.java   (contents, props changed)
    incubator/imperius/trunk/imperius-splcore/src/main/java/org/apache/imperius/spl/parser/expressions/impl/AnyInCollection.java   (contents, props changed)
    incubator/imperius/trunk/imperius-splcore/src/main/java/org/apache/imperius/spl/parser/expressions/impl/ApplyToCollection.java   (contents, props changed)
    incubator/imperius/trunk/imperius-splcore/src/main/java/org/apache/imperius/spl/parser/expressions/impl/AssignmentExpression.java   (contents, props changed)
    incubator/imperius/trunk/imperius-splcore/src/main/java/org/apache/imperius/spl/parser/expressions/impl/AvrgInCollection.java   (contents, props changed)
    incubator/imperius/trunk/imperius-splcore/src/main/java/org/apache/imperius/spl/parser/expressions/impl/BooleanConstant.java   (contents, props changed)
    incubator/imperius/trunk/imperius-splcore/src/main/java/org/apache/imperius/spl/parser/expressions/impl/ByteConstant.java   (contents, props changed)
    incubator/imperius/trunk/imperius-splcore/src/main/java/org/apache/imperius/spl/parser/expressions/impl/Ceiling.java   (contents, props changed)
    incubator/imperius/trunk/imperius-splcore/src/main/java/org/apache/imperius/spl/parser/expressions/impl/CharConstant.java   (contents, props changed)
    incubator/imperius/trunk/imperius-splcore/src/main/java/org/apache/imperius/spl/parser/expressions/impl/CollectionSize.java   (contents, props changed)
    incubator/imperius/trunk/imperius-splcore/src/main/java/org/apache/imperius/spl/parser/expressions/impl/Concatenate.java   (contents, props changed)
    incubator/imperius/trunk/imperius-splcore/src/main/java/org/apache/imperius/spl/parser/expressions/impl/ConstantExpression.java   (contents, props changed)
    incubator/imperius/trunk/imperius-splcore/src/main/java/org/apache/imperius/spl/parser/expressions/impl/Contains.java   (contents, props changed)
    incubator/imperius/trunk/imperius-splcore/src/main/java/org/apache/imperius/spl/parser/expressions/impl/ContainsOnlyDigits.java   (contents, props changed)
    incubator/imperius/trunk/imperius-splcore/src/main/java/org/apache/imperius/spl/parser/expressions/impl/ContainsOnlyLetters.java   (contents, props changed)
    incubator/imperius/trunk/imperius-splcore/src/main/java/org/apache/imperius/spl/parser/expressions/impl/ContainsOnlyLettersOrDigits.java   (contents, props changed)
    incubator/imperius/trunk/imperius-splcore/src/main/java/org/apache/imperius/spl/parser/expressions/impl/DateTime.java   (contents, props changed)
    incubator/imperius/trunk/imperius-splcore/src/main/java/org/apache/imperius/spl/parser/expressions/impl/DateTimeConstant.java   (contents, props changed)
    incubator/imperius/trunk/imperius-splcore/src/main/java/org/apache/imperius/spl/parser/expressions/impl/Division.java   (contents, props changed)
    incubator/imperius/trunk/imperius-splcore/src/main/java/org/apache/imperius/spl/parser/expressions/impl/DoubleConstant.java   (contents, props changed)
    incubator/imperius/trunk/imperius-splcore/src/main/java/org/apache/imperius/spl/parser/expressions/impl/EndsWith.java   (contents, props changed)
    incubator/imperius/trunk/imperius-splcore/src/main/java/org/apache/imperius/spl/parser/expressions/impl/EqCollections.java   (contents, props changed)
    incubator/imperius/trunk/imperius-splcore/src/main/java/org/apache/imperius/spl/parser/expressions/impl/Equal.java   (contents, props changed)
    incubator/imperius/trunk/imperius-splcore/src/main/java/org/apache/imperius/spl/parser/expressions/impl/Exp.java   (contents, props changed)
    incubator/imperius/trunk/imperius-splcore/src/main/java/org/apache/imperius/spl/parser/expressions/impl/FloatConstant.java   (contents, props changed)
    incubator/imperius/trunk/imperius-splcore/src/main/java/org/apache/imperius/spl/parser/expressions/impl/Floor.java   (contents, props changed)
    incubator/imperius/trunk/imperius-splcore/src/main/java/org/apache/imperius/spl/parser/expressions/impl/GetCurrentTime.java   (contents, props changed)
    incubator/imperius/trunk/imperius-splcore/src/main/java/org/apache/imperius/spl/parser/expressions/impl/GetDayOfMonth.java   (contents, props changed)
    incubator/imperius/trunk/imperius-splcore/src/main/java/org/apache/imperius/spl/parser/expressions/impl/GetDayOfWeek.java   (contents, props changed)
    incubator/imperius/trunk/imperius-splcore/src/main/java/org/apache/imperius/spl/parser/expressions/impl/GetDayOfWeekInMonth.java   (contents, props changed)
    incubator/imperius/trunk/imperius-splcore/src/main/java/org/apache/imperius/spl/parser/expressions/impl/GetDayOfYear.java   (contents, props changed)
    incubator/imperius/trunk/imperius-splcore/src/main/java/org/apache/imperius/spl/parser/expressions/impl/GetHour12.java   (contents, props changed)
    incubator/imperius/trunk/imperius-splcore/src/main/java/org/apache/imperius/spl/parser/expressions/impl/GetHour24.java   (contents, props changed)
    incubator/imperius/trunk/imperius-splcore/src/main/java/org/apache/imperius/spl/parser/expressions/impl/GetMillisecond.java   (contents, props changed)
    incubator/imperius/trunk/imperius-splcore/src/main/java/org/apache/imperius/spl/parser/expressions/impl/GetMinute.java   (contents, props changed)
    incubator/imperius/trunk/imperius-splcore/src/main/java/org/apache/imperius/spl/parser/expressions/impl/GetMonth.java   (contents, props changed)
    incubator/imperius/trunk/imperius-splcore/src/main/java/org/apache/imperius/spl/parser/expressions/impl/GetSecond.java   (contents, props changed)
    incubator/imperius/trunk/imperius-splcore/src/main/java/org/apache/imperius/spl/parser/expressions/impl/GetWeekOfMonth.java   (contents, props changed)
    incubator/imperius/trunk/imperius-splcore/src/main/java/org/apache/imperius/spl/parser/expressions/impl/GetWeekOfYear.java   (contents, props changed)
    incubator/imperius/trunk/imperius-splcore/src/main/java/org/apache/imperius/spl/parser/expressions/impl/GetYear.java   (contents, props changed)
    incubator/imperius/trunk/imperius-splcore/src/main/java/org/apache/imperius/spl/parser/expressions/impl/Greater.java   (contents, props changed)
    incubator/imperius/trunk/imperius-splcore/src/main/java/org/apache/imperius/spl/parser/expressions/impl/GreaterOrEqual.java   (contents, props changed)
    incubator/imperius/trunk/imperius-splcore/src/main/java/org/apache/imperius/spl/parser/expressions/impl/InCollection.java   (contents, props changed)
    incubator/imperius/trunk/imperius-splcore/src/main/java/org/apache/imperius/spl/parser/expressions/impl/IntegerConstant.java   (contents, props changed)
    incubator/imperius/trunk/imperius-splcore/src/main/java/org/apache/imperius/spl/parser/expressions/impl/IsAfter.java   (contents, props changed)
    incubator/imperius/trunk/imperius-splcore/src/main/java/org/apache/imperius/spl/parser/expressions/impl/IsBefore.java   (contents, props changed)
    incubator/imperius/trunk/imperius-splcore/src/main/java/org/apache/imperius/spl/parser/expressions/impl/IsWithin.java   (contents, props changed)
    incubator/imperius/trunk/imperius-splcore/src/main/java/org/apache/imperius/spl/parser/expressions/impl/LeftSubstring.java   (contents, props changed)
    incubator/imperius/trunk/imperius-splcore/src/main/java/org/apache/imperius/spl/parser/expressions/impl/Less.java   (contents, props changed)
    incubator/imperius/trunk/imperius-splcore/src/main/java/org/apache/imperius/spl/parser/expressions/impl/LessOrEqual.java   (contents, props changed)
    incubator/imperius/trunk/imperius-splcore/src/main/java/org/apache/imperius/spl/parser/expressions/impl/Ln.java   (contents, props changed)
    incubator/imperius/trunk/imperius-splcore/src/main/java/org/apache/imperius/spl/parser/expressions/impl/Log10.java   (contents, props changed)
    incubator/imperius/trunk/imperius-splcore/src/main/java/org/apache/imperius/spl/parser/expressions/impl/LogicalAnd.java   (contents, props changed)
    incubator/imperius/trunk/imperius-splcore/src/main/java/org/apache/imperius/spl/parser/expressions/impl/LogicalNot.java   (contents, props changed)
    incubator/imperius/trunk/imperius-splcore/src/main/java/org/apache/imperius/spl/parser/expressions/impl/LogicalOr.java   (contents, props changed)
    incubator/imperius/trunk/imperius-splcore/src/main/java/org/apache/imperius/spl/parser/expressions/impl/LogicalXor.java   (contents, props changed)
    incubator/imperius/trunk/imperius-splcore/src/main/java/org/apache/imperius/spl/parser/expressions/impl/LongConstant.java   (contents, props changed)
    incubator/imperius/trunk/imperius-splcore/src/main/java/org/apache/imperius/spl/parser/expressions/impl/MatchesRegExp.java   (contents, props changed)
    incubator/imperius/trunk/imperius-splcore/src/main/java/org/apache/imperius/spl/parser/expressions/impl/Max.java   (contents, props changed)
    incubator/imperius/trunk/imperius-splcore/src/main/java/org/apache/imperius/spl/parser/expressions/impl/MaxInCollection.java   (contents, props changed)
    incubator/imperius/trunk/imperius-splcore/src/main/java/org/apache/imperius/spl/parser/expressions/impl/MedianInCollection.java   (contents, props changed)
    incubator/imperius/trunk/imperius-splcore/src/main/java/org/apache/imperius/spl/parser/expressions/impl/MiddleSubstring.java   (contents, props changed)
    incubator/imperius/trunk/imperius-splcore/src/main/java/org/apache/imperius/spl/parser/expressions/impl/Min.java   (contents, props changed)
    incubator/imperius/trunk/imperius-splcore/src/main/java/org/apache/imperius/spl/parser/expressions/impl/MinInCollection.java   (contents, props changed)
    incubator/imperius/trunk/imperius-splcore/src/main/java/org/apache/imperius/spl/parser/expressions/impl/Mod.java   (contents, props changed)
    incubator/imperius/trunk/imperius-splcore/src/main/java/org/apache/imperius/spl/parser/expressions/impl/NotEqual.java   (contents, props changed)
    incubator/imperius/trunk/imperius-splcore/src/main/java/org/apache/imperius/spl/parser/expressions/impl/Power.java   (contents, props changed)
    incubator/imperius/trunk/imperius-splcore/src/main/java/org/apache/imperius/spl/parser/expressions/impl/Product.java   (contents, props changed)
    incubator/imperius/trunk/imperius-splcore/src/main/java/org/apache/imperius/spl/parser/expressions/impl/ReplaceSubstring.java   (contents, props changed)
    incubator/imperius/trunk/imperius-splcore/src/main/java/org/apache/imperius/spl/parser/expressions/impl/ReturnValues.java   (contents, props changed)
    incubator/imperius/trunk/imperius-splcore/src/main/java/org/apache/imperius/spl/parser/expressions/impl/RightSubstring.java   (contents, props changed)
    incubator/imperius/trunk/imperius-splcore/src/main/java/org/apache/imperius/spl/parser/expressions/impl/Rint.java   (contents, props changed)
    incubator/imperius/trunk/imperius-splcore/src/main/java/org/apache/imperius/spl/parser/expressions/impl/Round.java   (contents, props changed)
    incubator/imperius/trunk/imperius-splcore/src/main/java/org/apache/imperius/spl/parser/expressions/impl/SdInCollection.java   (contents, props changed)
    incubator/imperius/trunk/imperius-splcore/src/main/java/org/apache/imperius/spl/parser/expressions/impl/ShortConstant.java   (contents, props changed)
    incubator/imperius/trunk/imperius-splcore/src/main/java/org/apache/imperius/spl/parser/expressions/impl/SquareRoot.java   (contents, props changed)
    incubator/imperius/trunk/imperius-splcore/src/main/java/org/apache/imperius/spl/parser/expressions/impl/StartsWith.java   (contents, props changed)
    incubator/imperius/trunk/imperius-splcore/src/main/java/org/apache/imperius/spl/parser/expressions/impl/StringConstant.java   (contents, props changed)
    incubator/imperius/trunk/imperius-splcore/src/main/java/org/apache/imperius/spl/parser/expressions/impl/StringLength.java   (contents, props changed)
    incubator/imperius/trunk/imperius-splcore/src/main/java/org/apache/imperius/spl/parser/expressions/impl/SubCollection.java   (contents, props changed)
    incubator/imperius/trunk/imperius-splcore/src/main/java/org/apache/imperius/spl/parser/expressions/impl/Substring.java   (contents, props changed)
    incubator/imperius/trunk/imperius-splcore/src/main/java/org/apache/imperius/spl/parser/expressions/impl/Subtraction.java   (contents, props changed)
    incubator/imperius/trunk/imperius-splcore/src/main/java/org/apache/imperius/spl/parser/expressions/impl/Sum.java   (contents, props changed)
    incubator/imperius/trunk/imperius-splcore/src/main/java/org/apache/imperius/spl/parser/expressions/impl/ToBoolean.java   (contents, props changed)
    incubator/imperius/trunk/imperius-splcore/src/main/java/org/apache/imperius/spl/parser/expressions/impl/ToLower.java   (contents, props changed)
    incubator/imperius/trunk/imperius-splcore/src/main/java/org/apache/imperius/spl/parser/expressions/impl/ToMilliseconds.java   (contents, props changed)
    incubator/imperius/trunk/imperius-splcore/src/main/java/org/apache/imperius/spl/parser/expressions/impl/ToREAL32.java   (contents, props changed)
    incubator/imperius/trunk/imperius-splcore/src/main/java/org/apache/imperius/spl/parser/expressions/impl/ToREAL64.java   (contents, props changed)
    incubator/imperius/trunk/imperius-splcore/src/main/java/org/apache/imperius/spl/parser/expressions/impl/ToSINT16.java   (contents, props changed)
    incubator/imperius/trunk/imperius-splcore/src/main/java/org/apache/imperius/spl/parser/expressions/impl/ToSINT32.java   (contents, props changed)
    incubator/imperius/trunk/imperius-splcore/src/main/java/org/apache/imperius/spl/parser/expressions/impl/ToSINT64.java   (contents, props changed)
    incubator/imperius/trunk/imperius-splcore/src/main/java/org/apache/imperius/spl/parser/expressions/impl/ToSINT8.java   (contents, props changed)
    incubator/imperius/trunk/imperius-splcore/src/main/java/org/apache/imperius/spl/parser/expressions/impl/ToString.java   (contents, props changed)
    incubator/imperius/trunk/imperius-splcore/src/main/java/org/apache/imperius/spl/parser/expressions/impl/ToUpper.java   (contents, props changed)
    incubator/imperius/trunk/imperius-splcore/src/main/java/org/apache/imperius/spl/parser/expressions/impl/UnaryMinusExpression.java   (contents, props changed)
    incubator/imperius/trunk/imperius-splcore/src/main/java/org/apache/imperius/spl/parser/expressions/impl/UnaryNotExpression.java   (contents, props changed)
    incubator/imperius/trunk/imperius-splcore/src/main/java/org/apache/imperius/spl/parser/expressions/impl/UnaryPlusExpression.java   (contents, props changed)
    incubator/imperius/trunk/imperius-splcore/src/main/java/org/apache/imperius/spl/parser/expressions/impl/Union.java   (contents, props changed)
    incubator/imperius/trunk/imperius-splcore/src/main/java/org/apache/imperius/spl/parser/expressions/impl/Word.java   (contents, props changed)
    incubator/imperius/trunk/imperius-splcore/src/main/java/org/apache/imperius/spl/parser/factory/ACPLParserMap.java   (contents, props changed)
    incubator/imperius/trunk/imperius-splcore/src/main/java/org/apache/imperius/spl/parser/factory/ActionFactory.java   (contents, props changed)
    incubator/imperius/trunk/imperius-splcore/src/main/java/org/apache/imperius/spl/parser/factory/BuitInOperationExpressionFactory.java   (contents, props changed)
    incubator/imperius/trunk/imperius-splcore/src/main/java/org/apache/imperius/spl/parser/factory/ExpressionFactory.java   (contents, props changed)
    incubator/imperius/trunk/imperius-splcore/src/main/java/org/apache/imperius/spl/parser/statements/ActionBlock.java   (contents, props changed)
    incubator/imperius/trunk/imperius-splcore/src/main/java/org/apache/imperius/spl/parser/statements/BasicActionBlock.java   (contents, props changed)
    incubator/imperius/trunk/imperius-splcore/src/main/java/org/apache/imperius/spl/parser/statements/PolicyStatement.java   (contents, props changed)
    incubator/imperius/trunk/imperius-splcore/src/main/java/org/apache/imperius/spl/parser/statements/actions/impl/AnchorMethodInvokeAction.java   (contents, props changed)
    incubator/imperius/trunk/imperius-splcore/src/main/java/org/apache/imperius/spl/parser/statements/actions/impl/ArrowActionBlock.java   (contents, props changed)
    incubator/imperius/trunk/imperius-splcore/src/main/java/org/apache/imperius/spl/parser/statements/actions/impl/ConcurrentActionBlock.java   (contents, props changed)
    incubator/imperius/trunk/imperius-splcore/src/main/java/org/apache/imperius/spl/parser/statements/actions/impl/DoubleArgumentActionBlock.java   (contents, props changed)
    incubator/imperius/trunk/imperius-splcore/src/main/java/org/apache/imperius/spl/parser/statements/actions/impl/ExtrinsicMethodInvokeAction.java   (contents, props changed)
    incubator/imperius/trunk/imperius-splcore/src/main/java/org/apache/imperius/spl/parser/statements/actions/impl/InvokePolicyAction.java   (contents, props changed)
    incubator/imperius/trunk/imperius-splcore/src/main/java/org/apache/imperius/spl/parser/statements/actions/impl/LogicalAndActionBlock.java   (contents, props changed)
    incubator/imperius/trunk/imperius-splcore/src/main/java/org/apache/imperius/spl/parser/statements/actions/impl/LogicalOrActionBlock.java   (contents, props changed)
    incubator/imperius/trunk/imperius-splcore/src/main/java/org/apache/imperius/spl/parser/statements/actions/impl/SetActionBlock.java   (contents, props changed)
    incubator/imperius/trunk/imperius-splcore/src/main/java/org/apache/imperius/spl/parser/statements/impl/ArgumentImpl.java   (contents, props changed)
    incubator/imperius/trunk/imperius-splcore/src/main/java/org/apache/imperius/spl/parser/statements/impl/ConstantDefinition.java   (contents, props changed)
    incubator/imperius/trunk/imperius-splcore/src/main/java/org/apache/imperius/spl/parser/statements/impl/DeclarationStatement.java   (contents, props changed)
    incubator/imperius/trunk/imperius-splcore/src/main/java/org/apache/imperius/spl/parser/statements/impl/ImportStatement.java   (contents, props changed)
    incubator/imperius/trunk/imperius-splcore/src/main/java/org/apache/imperius/spl/parser/statements/impl/MacroDefinition.java   (contents, props changed)
    incubator/imperius/trunk/imperius-splcore/src/main/java/org/apache/imperius/spl/parser/statements/impl/PolicyDefinition.java   (contents, props changed)
    incubator/imperius/trunk/imperius-splcore/src/main/java/org/apache/imperius/spl/parser/statements/impl/PolicyGroup.java   (contents, props changed)
    incubator/imperius/trunk/imperius-splcore/src/main/java/org/apache/imperius/spl/parser/statements/impl/PolicyInfo.java   (contents, props changed)
    incubator/imperius/trunk/imperius-splcore/src/main/java/org/apache/imperius/spl/parser/statements/impl/SPLPolicy.java   (contents, props changed)
    incubator/imperius/trunk/imperius-splcore/src/main/java/org/apache/imperius/spl/parser/statements/impl/StrategyStatement.java   (contents, props changed)
    incubator/imperius/trunk/imperius-splcore/src/main/java/org/apache/imperius/spl/parser/util/ActuatorFactory.java   (contents, props changed)
    incubator/imperius/trunk/imperius-splcore/src/main/java/org/apache/imperius/spl/parser/util/DataCollectorFactory.java   (contents, props changed)
    incubator/imperius/trunk/imperius-splcore/src/main/java/org/apache/imperius/spl/parser/util/ExpressionUtility.java   (contents, props changed)
    incubator/imperius/trunk/imperius-splcore/src/main/java/org/apache/imperius/spl/parser/util/InternalClientFactory.java   (contents, props changed)
    incubator/imperius/trunk/imperius-splcore/src/main/java/org/apache/imperius/spl/parser/util/KeyStringToMapConvertor.java   (contents, props changed)
    incubator/imperius/trunk/imperius-splcore/src/main/java/org/apache/imperius/spl/parser/util/TypeInfo.java   (contents, props changed)
    incubator/imperius/trunk/imperius-splcore/src/main/java/org/apache/imperius/spl/parser/util/TypeResolver.java   (contents, props changed)
    incubator/imperius/trunk/imperius-splcore/src/main/java/org/apache/imperius/util/PropertiesLoader.java   (contents, props changed)
    incubator/imperius/trunk/imperius-splcore/src/main/java/org/apache/imperius/util/SPLAuditLoggerClass.java   (contents, props changed)
    incubator/imperius/trunk/imperius-splcore/src/main/java/org/apache/imperius/util/SPLLogger.java   (contents, props changed)
    incubator/imperius/trunk/imperius-splcore/src/main/java/org/apache/imperius/util/SPLLoggerClass.java   (contents, props changed)
    incubator/imperius/trunk/imperius-splcore/src/test/java/org/apache/imperius/spl/tests/BooleanExpressionTest.java   (contents, props changed)
    incubator/imperius/trunk/imperius-splcore/src/test/java/org/apache/imperius/spl/tests/CalendarExpressionTest.java   (contents, props changed)
    incubator/imperius/trunk/imperius-splcore/src/test/java/org/apache/imperius/spl/tests/CollectionExpressionsTest.java   (contents, props changed)
    incubator/imperius/trunk/imperius-splcore/src/test/java/org/apache/imperius/spl/tests/NewExpressionTest.java   (contents, props changed)
    incubator/imperius/trunk/imperius-splcore/src/test/java/org/apache/imperius/spl/tests/NumericExpressionTest.java   (contents, props changed)
    incubator/imperius/trunk/imperius-splcore/src/test/java/org/apache/imperius/spl/tests/StringExpressionTest.java   (contents, props changed)
    incubator/imperius/trunk/imperius-splcore/src/test/java/org/apache/imperius/spl/tests/TestMain.java   (contents, props changed)
    incubator/imperius/trunk/imperius-splcore/src/test/java/org/apache/imperius/spl/tests/UtilityTest.java   (contents, props changed)
    incubator/imperius/trunk/javaspl-samples/customexpressions.properties   (props changed)
    incubator/imperius/trunk/javaspl-samples/pom.xml   (contents, props changed)
    incubator/imperius/trunk/javaspl-samples/resources/README.txt   (contents, props changed)
    incubator/imperius/trunk/javaspl-samples/resources/samples/computersystem/policies/Java_Compliance.spl   (contents, props changed)
    incubator/imperius/trunk/javaspl-samples/resources/samples/computersystem/policies/Java_FileSystem.spl   (contents, props changed)
    incubator/imperius/trunk/javaspl-samples/resources/samples/computersystem/runcompliancedemo.bat   (contents, props changed)
    incubator/imperius/trunk/javaspl-samples/resources/samples/computersystem/runfilesystemdemo.bat   (contents, props changed)
    incubator/imperius/trunk/javaspl-samples/resources/samples/simple/policies/BasicPolicy.spl   (contents, props changed)
    incubator/imperius/trunk/javaspl-samples/resources/samples/simple/policies/ComplexPolicy.spl   (contents, props changed)
    incubator/imperius/trunk/javaspl-samples/resources/samples/simple/policies/DateTime.spl   (contents, props changed)
    incubator/imperius/trunk/javaspl-samples/resources/samples/simple/policies/InvokeMethodSample.spl   (contents, props changed)
    incubator/imperius/trunk/javaspl-samples/resources/samples/simple/policies/MacroSample.spl   (contents, props changed)
    incubator/imperius/trunk/javaspl-samples/resources/samples/simple/policies/MultiplePolicySample.spl   (contents, props changed)
    incubator/imperius/trunk/javaspl-samples/resources/samples/simple/policies/SimplePolicy.spl   (contents, props changed)
    incubator/imperius/trunk/javaspl-samples/resources/samples/simple/runsamples.bat   (contents, props changed)
    incubator/imperius/trunk/javaspl-samples/src/main/java/org/apache/imperius/javaspl/samples/simplepolicies/AnotherClass.java   (contents, props changed)
    incubator/imperius/trunk/javaspl-samples/src/main/java/org/apache/imperius/javaspl/samples/simplepolicies/EmbeddedClass1.java   (contents, props changed)
    incubator/imperius/trunk/javaspl-samples/src/main/java/org/apache/imperius/javaspl/samples/simplepolicies/SampleClass.java   (contents, props changed)
    incubator/imperius/trunk/javaspl-samples/src/main/java/org/apache/imperius/javaspl/samples/simplepolicies/TestElement.java   (contents, props changed)
    incubator/imperius/trunk/javaspl-samples/src/main/java/org/apache/imperius/javaspl/samples/userdefinedmethods/CommandLineExecution.java   (contents, props changed)
    incubator/imperius/trunk/javaspl-samples/src/main/java/org/apache/imperius/javaspl/samples/userdefinedmethods/SendMail.java   (contents, props changed)
    incubator/imperius/trunk/pom.xml   (contents, props changed)

Propchange: incubator/imperius/trunk/LICENSE.txt
------------------------------------------------------------------------------
    svn:eol-style = native

Modified: incubator/imperius/trunk/NOTICE.txt
URL: http://svn.apache.org/viewvc/incubator/imperius/trunk/NOTICE.txt?rev=611261&r1=611260&r2=611261&view=diff
==============================================================================
--- incubator/imperius/trunk/NOTICE.txt (original)
+++ incubator/imperius/trunk/NOTICE.txt Fri Jan 11 10:56:30 2008
@@ -1,11 +1,11 @@
-Apache Imperius
-Copyright 2007-2008 The Apache Software Foundation
-
-This product includes software developed at
-The Apache Software Foundation (http://www.apache.org/).
-
-Please read the different LICENSE files present in the lib directory of
-this distribution.
-
-This package also contains binary files from the Eclipse Equinox project.
-Source is available at http://eclipse.org/equinox
+Apache Imperius
+Copyright 2007-2008 The Apache Software Foundation
+
+This product includes software developed at
+The Apache Software Foundation (http://www.apache.org/).
+
+Please read the different LICENSE files present in the lib directory of
+this distribution.
+
+This package also contains binary files from the Eclipse Equinox project.
+Source is available at http://eclipse.org/equinox

Propchange: incubator/imperius/trunk/NOTICE.txt
------------------------------------------------------------------------------
    svn:eol-style = native

Modified: incubator/imperius/trunk/README.txt
URL: http://svn.apache.org/viewvc/incubator/imperius/trunk/README.txt?rev=611261&r1=611260&r2=611261&view=diff
==============================================================================
--- incubator/imperius/trunk/README.txt (original)
+++ incubator/imperius/trunk/README.txt Fri Jan 11 10:56:30 2008
@@ -2,68 +2,63 @@
                                 Imperius
  
 
- 
+ 
  What is it? 
-  
+  
 -----------
   
- 
-Imperius (Simple Policy Language) or SPL - Is a simple standards based 
- 
-object-oriented policy language that allows expression of 
- management policies 
-using condition-action rules. Imperius provides 
- an extensible set of over 
-100 operations for expressing conditions and actions.
-
-Imperius is a generalization of the CIM-SPL language. 
-Conversely, CIM-SPL 
- can be thought of as Imperius with CIM binding. 
-Imperius can be extended
- to create similar bindings for other environments. 
-JavaSPL (Imperius with Java binding) 
- is another such example.
+ 
+Imperius (Simple Policy Language) or SPL - Is a simple standards based
+object-oriented policy language that allows expression of management
+policies using condition-action rules. Imperius provides an extensible
+set of over 100 operations for expressing conditions and actions.
+
+Imperius is a generalization of the CIM-SPL language. Conversely,
+CIM-SPL can be thought of as Imperius with CIM binding. Imperius can
+be extended to create similar bindings for other environments. JavaSPL
+(Imperius with Java binding) is another such example.
+
 
-
 
   The Latest Version
-  
+  
 ------------------
 
-  
+  
 Details of the latest version can be found on the Apache Imperius
-  
+  
 Project web site <http://incubator.apache.org/Imperius/>.
 
 
-  
-
+  
+
 Documentation
-  
+  
 -------------
 
- 
- Documentation is available online at the project website  
- 
-
-Samples
--------
-Samples can be found under /samples folder. 
-
+ 
+ Documentation is available online at the project website
+
+
+Samples
+--------
+Samples are located under the /samples folder.
+
  Licensing
-  
+  
 ---------
 
-  
+  
 This software is licensed under the terms you may find in the file 
- 
+ 
  named "LICENSE" in this directory.
   
 
- 
+ 
  Thanks for using Imperius.
 
-                                          
+                                          
 The Apache Imperius Project
-                                         
+                                         
 <http://incubator.apache.org/Imperius/>
+

Propchange: incubator/imperius/trunk/README.txt
------------------------------------------------------------------------------
    svn:eol-style = native

Modified: incubator/imperius/trunk/imperius-javaspl/pom.xml
URL: http://svn.apache.org/viewvc/incubator/imperius/trunk/imperius-javaspl/pom.xml?rev=611261&r1=611260&r2=611261&view=diff
==============================================================================
--- incubator/imperius/trunk/imperius-javaspl/pom.xml (original)
+++ incubator/imperius/trunk/imperius-javaspl/pom.xml Fri Jan 11 10:56:30 2008
@@ -1,32 +1,32 @@
-<!--
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- * 
- *      http://www.apache.org/licenses/LICENSE-2.0
- * 
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */ -->
-<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
-  xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
-  <modelVersion>4.0.0</modelVersion>
-  <groupId>imperius</groupId>
-  <artifactId>imperius-javaspl</artifactId>
-  <packaging>jar</packaging>
-  <version>1.0.0-SNAPSHOT</version>
-  <name>imperius-javaspl</name>
-   <dependencies>
-	  <dependency>
-		<groupId>imperius</groupId>
-		<artifactId>imperius-splcore</artifactId>
-		<version>1.0.0-SNAPSHOT</version>
-	    </dependency>
-	   
-  </dependencies>
-  
-
-</project>
+<!--
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ * 
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ * 
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */ -->
+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+  xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
+  <modelVersion>4.0.0</modelVersion>
+  <groupId>imperius</groupId>
+  <artifactId>imperius-javaspl</artifactId>
+  <packaging>jar</packaging>
+  <version>1.0.0-SNAPSHOT</version>
+  <name>imperius-javaspl</name>
+   <dependencies>
+	  <dependency>
+		<groupId>imperius</groupId>
+		<artifactId>imperius-splcore</artifactId>
+		<version>1.0.0-SNAPSHOT</version>
+	    </dependency>
+	   
+  </dependencies>
+  
+
+</project>

Propchange: incubator/imperius/trunk/imperius-javaspl/pom.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Modified: incubator/imperius/trunk/imperius-javaspl/src/main/java/org/apache/imperius/javaspl/JavaActuatorImpl.java
URL: http://svn.apache.org/viewvc/incubator/imperius/trunk/imperius-javaspl/src/main/java/org/apache/imperius/javaspl/JavaActuatorImpl.java?rev=611261&r1=611260&r2=611261&view=diff
==============================================================================
--- incubator/imperius/trunk/imperius-javaspl/src/main/java/org/apache/imperius/javaspl/JavaActuatorImpl.java (original)
+++ incubator/imperius/trunk/imperius-javaspl/src/main/java/org/apache/imperius/javaspl/JavaActuatorImpl.java Fri Jan 11 10:56:30 2008
@@ -1,207 +1,207 @@
-/*
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- * 
- *      http://www.apache.org/licenses/LICENSE-2.0
- * 
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-//
-
-/**
- * @author Neeraj Joshi <jneeraj@us.ibm.com>
- * 
- * This class implements the Actuator interface for the JAVA binding
- * of SPL
- *
- */
-
-package org.apache.imperius.javaspl;
-
-import java.util.ArrayList;
-import java.util.List;
-import java.util.Map;
-import java.util.Iterator;
-import java.lang.reflect.Field;
-import java.lang.reflect.InvocationTargetException;
-import java.lang.reflect.Method;
-import java.net.URL;
-import java.net.URLClassLoader;
-
-import org.apache.imperius.spl.external.Actuator;
-import org.apache.imperius.spl.external.Argument;
-import org.apache.imperius.spl.parser.exceptions.*;
-import org.apache.imperius.spl.parser.util.*;
-
-
-public class JavaActuatorImpl implements Actuator {
-
-	//private static final String sourceClass="JavaActuatorImpl";
-	//private static Logger logger = SPLLogger.getCIMSPLLogger().getLogger();
-
-	private URL[] fUrls = null;
-	
-	public JavaActuatorImpl() {
-		
-	}
-	
-	public JavaActuatorImpl(URL[] urls) {
-		fUrls = urls;
-	}
-	
-	
-	/**
-	 * Invokes the given method on the given instance 
-	 */
-	public Object invokeMethod(String className, String qualifier,
-			Object instance, String methodName, List arguments)	throws SPLException {
-		Class c;
-		Object result = null;
-		try {
-			// Load class
-			
-			//c = Class.forName(instance.getClass().getName());
-			
-			// modified by naidu to enable URL class loading
-			if(fUrls == null) {
-				c = Class.forName(instance.getClass().getName());
-			} else {
-				URLClassLoader uc = new URLClassLoader(fUrls);
-				c = uc.loadClass(instance.getClass().getName());
-			}
-			
-
-			// Get an array of formal parameter class types
-			Class[] arrayOfParameterTypes = _getParameterTypeArray(arguments);
-
-			// Load the method using reflection
-			Method method = c.getMethod(methodName, arrayOfParameterTypes);
-
-			// If No. of formal params > 0
-			if (arguments.size() != 0) {
-				List paramValues = new ArrayList();
-				Iterator it = arguments.iterator();
-				// Iterate over the passed parameters
-				while (it.hasNext()) {
-					Argument arg = (Argument) it.next();
-					//Add the values of the passed parameters to a list
-					paramValues.add(arg.getValue());
-				}
-
-				// Convert list to an array
-				Object[] arrayOfParameters = paramValues.toArray();
-
-				// Invoke the method on the passed object
-				result = method.invoke(instance, arrayOfParameters);
-			} else {
-				Object[] arrayOfParameters = new Object[0];
-				result = method.invoke(instance, arrayOfParameters);
-			}
-		} catch (ClassNotFoundException e) {
-			throw new SPLException(e.getMessage());
-		} catch (SecurityException e) {
-			throw new SPLException(e.getMessage());
-		} catch (NoSuchMethodException e) {
-			throw new SPLException(e.getMessage());
-		} catch (IllegalArgumentException e) {
-			throw new SPLException(e.getMessage());
-		} catch (IllegalAccessException e) {
-			throw new SPLException(e.getMessage());
-		} catch (InvocationTargetException e) {
-			throw new SPLException(e.getMessage());
-		}
-		return result;
-	}
-
-	/**
-	 * @param className : fully qualified name of the class whoose instance is to be modified
-	 * @param instance : instance to be modified
-	 * @param memberMap: A map of the form (String member Name ->  Object value to be set to)
-	 * 
-	 */
-
-	public void modifyInstance(String className, String qualifier,
-			Object instance, Map memberMap) throws SPLException {
-		Class c;
-		try {
-			// Load class
-			//c = Class.forName(className);
-			
-			// modified by naidu to enable URL class loading
-			if(fUrls == null) {
-				c = Class.forName(className);
-			} else {
-				URLClassLoader uc = new URLClassLoader(fUrls);
-				c = uc.loadClass(className);
-			}
-
-			// Iterate over the property map for the instance
-			Iterator keyIt = memberMap.keySet().iterator();
-			while (keyIt.hasNext()) {
-				String propName = (String) keyIt.next();
-				// Retrieve value of the property
-				Object value = memberMap.get(propName);
-
-				// Load field
-				Field member = c.getField(propName);
-
-				// Set the value of the field
-				member.set(instance, value);
-
-			}
-		} catch (ClassNotFoundException e) {
-			throw new SPLException(e.getMessage());
-
-		} catch (SecurityException e) {
-			throw new SPLException(e.getMessage());
-		} catch (NoSuchFieldException e) {
-			throw new SPLException(e.getMessage());
-		} catch (IllegalArgumentException e) {
-			throw new SPLException(e.getMessage());
-		} catch (IllegalAccessException e) {
-			throw new SPLException(e.getMessage());
-		}
-
-	}
-
-	/**
-	 * Iterate over the list of Argument objects to retrieve an
-	 * array of the class types
-	 * @param inParameterList
-	 * @return
-	 * @throws SPLException 
-	 */
-
-	private Class[] _getParameterTypeArray(List inParameterList)
-			throws SPLException {
-		int listSize = inParameterList.size();
-		int i = 0;
-		Class[] paramTypeArray = new Class[listSize];
-		try {
-			Iterator it = inParameterList.iterator();
-			// Iterate over the arguments
-			while (it.hasNext()) {
-				Argument arg = (Argument) it.next();
-				TypeInfo tp = arg.getType();
-				boolean isArray = arg.getIsArray();
-				String referenceName = arg.getReferenceTypeName();
-
-				// convert internal type to java type
-				Class c = JavaSPLTypeConstants.convertInternalTypeToJavaType(tp.getType(), isArray, referenceName);
-
-				// Add to array
-				paramTypeArray[i++] = c;
-			}
-		} catch (ClassNotFoundException e) {
-			e.printStackTrace();
-			throw new SPLException(e.getMessage());
-		}
-		return paramTypeArray;
-	}
-
-}
+/*
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ * 
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ * 
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+//
+
+/**
+ * @author Neeraj Joshi <jneeraj@us.ibm.com>
+ * 
+ * This class implements the Actuator interface for the JAVA binding
+ * of SPL
+ *
+ */
+
+package org.apache.imperius.javaspl;
+
+import java.util.ArrayList;
+import java.util.List;
+import java.util.Map;
+import java.util.Iterator;
+import java.lang.reflect.Field;
+import java.lang.reflect.InvocationTargetException;
+import java.lang.reflect.Method;
+import java.net.URL;
+import java.net.URLClassLoader;
+
+import org.apache.imperius.spl.external.Actuator;
+import org.apache.imperius.spl.external.Argument;
+import org.apache.imperius.spl.parser.exceptions.*;
+import org.apache.imperius.spl.parser.util.*;
+
+
+public class JavaActuatorImpl implements Actuator {
+
+	//private static final String sourceClass="JavaActuatorImpl";
+	//private static Logger logger = SPLLogger.getCIMSPLLogger().getLogger();
+
+	private URL[] fUrls = null;
+	
+	public JavaActuatorImpl() {
+		
+	}
+	
+	public JavaActuatorImpl(URL[] urls) {
+		fUrls = urls;
+	}
+	
+	
+	/**
+	 * Invokes the given method on the given instance 
+	 */
+	public Object invokeMethod(String className, String qualifier,
+			Object instance, String methodName, List arguments)	throws SPLException {
+		Class c;
+		Object result = null;
+		try {
+			// Load class
+			
+			//c = Class.forName(instance.getClass().getName());
+			
+			// modified by naidu to enable URL class loading
+			if(fUrls == null) {
+				c = Class.forName(instance.getClass().getName());
+			} else {
+				URLClassLoader uc = new URLClassLoader(fUrls);
+				c = uc.loadClass(instance.getClass().getName());
+			}
+			
+
+			// Get an array of formal parameter class types
+			Class[] arrayOfParameterTypes = _getParameterTypeArray(arguments);
+
+			// Load the method using reflection
+			Method method = c.getMethod(methodName, arrayOfParameterTypes);
+
+			// If No. of formal params > 0
+			if (arguments.size() != 0) {
+				List paramValues = new ArrayList();
+				Iterator it = arguments.iterator();
+				// Iterate over the passed parameters
+				while (it.hasNext()) {
+					Argument arg = (Argument) it.next();
+					//Add the values of the passed parameters to a list
+					paramValues.add(arg.getValue());
+				}
+
+				// Convert list to an array
+				Object[] arrayOfParameters = paramValues.toArray();
+
+				// Invoke the method on the passed object
+				result = method.invoke(instance, arrayOfParameters);
+			} else {
+				Object[] arrayOfParameters = new Object[0];
+				result = method.invoke(instance, arrayOfParameters);
+			}
+		} catch (ClassNotFoundException e) {
+			throw new SPLException(e.getMessage());
+		} catch (SecurityException e) {
+			throw new SPLException(e.getMessage());
+		} catch (NoSuchMethodException e) {
+			throw new SPLException(e.getMessage());
+		} catch (IllegalArgumentException e) {
+			throw new SPLException(e.getMessage());
+		} catch (IllegalAccessException e) {
+			throw new SPLException(e.getMessage());
+		} catch (InvocationTargetException e) {
+			throw new SPLException(e.getMessage());
+		}
+		return result;
+	}
+
+	/**
+	 * @param className : fully qualified name of the class whoose instance is to be modified
+	 * @param instance : instance to be modified
+	 * @param memberMap: A map of the form (String member Name ->  Object value to be set to)
+	 * 
+	 */
+
+	public void modifyInstance(String className, String qualifier,
+			Object instance, Map memberMap) throws SPLException {
+		Class c;
+		try {
+			// Load class
+			//c = Class.forName(className);
+			
+			// modified by naidu to enable URL class loading
+			if(fUrls == null) {
+				c = Class.forName(className);
+			} else {
+				URLClassLoader uc = new URLClassLoader(fUrls);
+				c = uc.loadClass(className);
+			}
+
+			// Iterate over the property map for the instance
+			Iterator keyIt = memberMap.keySet().iterator();
+			while (keyIt.hasNext()) {
+				String propName = (String) keyIt.next();
+				// Retrieve value of the property
+				Object value = memberMap.get(propName);
+
+				// Load field
+				Field member = c.getField(propName);
+
+				// Set the value of the field
+				member.set(instance, value);
+
+			}
+		} catch (ClassNotFoundException e) {
+			throw new SPLException(e.getMessage());
+
+		} catch (SecurityException e) {
+			throw new SPLException(e.getMessage());
+		} catch (NoSuchFieldException e) {
+			throw new SPLException(e.getMessage());
+		} catch (IllegalArgumentException e) {
+			throw new SPLException(e.getMessage());
+		} catch (IllegalAccessException e) {
+			throw new SPLException(e.getMessage());
+		}
+
+	}
+
+	/**
+	 * Iterate over the list of Argument objects to retrieve an
+	 * array of the class types
+	 * @param inParameterList
+	 * @return
+	 * @throws SPLException 
+	 */
+
+	private Class[] _getParameterTypeArray(List inParameterList)
+			throws SPLException {
+		int listSize = inParameterList.size();
+		int i = 0;
+		Class[] paramTypeArray = new Class[listSize];
+		try {
+			Iterator it = inParameterList.iterator();
+			// Iterate over the arguments
+			while (it.hasNext()) {
+				Argument arg = (Argument) it.next();
+				TypeInfo tp = arg.getType();
+				boolean isArray = arg.getIsArray();
+				String referenceName = arg.getReferenceTypeName();
+
+				// convert internal type to java type
+				Class c = JavaSPLTypeConstants.convertInternalTypeToJavaType(tp.getType(), isArray, referenceName);
+
+				// Add to array
+				paramTypeArray[i++] = c;
+			}
+		} catch (ClassNotFoundException e) {
+			e.printStackTrace();
+			throw new SPLException(e.getMessage());
+		}
+		return paramTypeArray;
+	}
+
+}

Propchange: incubator/imperius/trunk/imperius-javaspl/src/main/java/org/apache/imperius/javaspl/JavaActuatorImpl.java
------------------------------------------------------------------------------
    svn:eol-style = native

Modified: incubator/imperius/trunk/imperius-javaspl/src/main/java/org/apache/imperius/javaspl/JavaDataCollectorImpl.java
URL: http://svn.apache.org/viewvc/incubator/imperius/trunk/imperius-javaspl/src/main/java/org/apache/imperius/javaspl/JavaDataCollectorImpl.java?rev=611261&r1=611260&r2=611261&view=diff
==============================================================================
--- incubator/imperius/trunk/imperius-javaspl/src/main/java/org/apache/imperius/javaspl/JavaDataCollectorImpl.java (original)
+++ incubator/imperius/trunk/imperius-javaspl/src/main/java/org/apache/imperius/javaspl/JavaDataCollectorImpl.java Fri Jan 11 10:56:30 2008
@@ -1,287 +1,287 @@
-/*
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- * 
- *      http://www.apache.org/licenses/LICENSE-2.0
- * 
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-//
-
-/**
- * @author Neeraj Joshi <jneeraj@us.ibm.com>
- *
- */
-
-package org.apache.imperius.javaspl;
-
-import java.lang.reflect.Field;
-import java.lang.reflect.Method;
-import java.net.URL;
-import java.net.URLClassLoader;
-import java.util.ArrayList;
-import java.util.Hashtable;
-import java.util.List;
-import java.util.Map;
-
-import org.apache.imperius.spl.external.Argument;
-import org.apache.imperius.spl.external.DataCollector;
-import org.apache.imperius.spl.external.TypeConstants;
-import org.apache.imperius.spl.parser.compiler.symboltable.MethodSymbol;
-import org.apache.imperius.spl.parser.compiler.symboltable.PropertySymbol;
-import org.apache.imperius.spl.parser.compiler.symboltable.Symbol;
-import org.apache.imperius.spl.parser.exceptions.SPLException;
-import org.apache.imperius.spl.parser.statements.impl.ArgumentImpl;
-
-
-
-public class JavaDataCollectorImpl implements DataCollector {
-	
-	private URL[] fUrls = null;
-	
-	public JavaDataCollectorImpl() {
-		
-	}
-	
-	public JavaDataCollectorImpl(URL[] urls) {
-		fUrls = urls;
-	}
-	
-	/**
-	 * Use reflection to retrieve properties of the given class and load them into
-	 * the symbol map
-	 * @param className
-	 * @param symbolMap
-	 * @throws SPLException
-	 */
-	private void _populateClassMembers(String className, Map symbolMap)
-			throws SPLException {
-		Class c;
-
-		try {
-			// Load class
-			if(fUrls == null) {
-				c = Class.forName(className);
-			} else {
-				URLClassLoader uc = new URLClassLoader(fUrls);
-				c = uc.loadClass(className);
-			}
-
-			// Iterate over it's fields
-			Field[] fields = c.getFields();
-			for (int i = 0; i < fields.length; i++) {
-				Field f = fields[i];
-
-				String fieldName = f.getName();
-				String javaType = f.getType().toString();
-
-				// Retrieve the SPL type constant corresponding to the java type
-				int internalType = JavaSPLTypeConstants.convertJavaTypeToInternalType(javaType);
-
-				// check if its an array
-				boolean isArray = JavaSPLTypeConstants.getIsArray(javaType);
-
-				// if type is reference get the class name
-				String referenceTypeName = "";
-				if (internalType == TypeConstants.referenceType) {
-					referenceTypeName = JavaSPLTypeConstants.getReferenceTypeName(javaType);
-				}
-				boolean isPropertyOfClass = true;
-				boolean isKey = false;
-
-				// create a new property symbol object
-				Symbol s = new PropertySymbol(f.getName(), internalType,
-						referenceTypeName, isArray, isKey, isPropertyOfClass);
-
-				// insert into map
-				symbolMap.put(fieldName, s);
-
-			}
-		} catch (Exception e) {
-
-			e.printStackTrace();
-			throw new SPLException(e.getMessage());
-		}
-
-	}
-
-	/**
-	 * Use reflection to retrieve the public methods supported by the given class
-	 * and populate into the given Map
-	 * @param className
-	 * @param symbolMap
-	 * @throws SPLException
-	 */
-	private void _populateClassMethods(String className, Map symbolMap)
-			throws SPLException {
-		Class c;
-		try {
-			// Load Class
-			if(fUrls == null) {
-				c = Class.forName(className);
-			} else {
-				URLClassLoader uc = new URLClassLoader(fUrls);
-				c = uc.loadClass(className);
-			}
-
-			// Iterate over the methods
-			Method[] methods = c.getMethods();
-
-			for (int j = 0; j < methods.length; j++) {
-				Method m = methods[j];
-				String methodName = m.getName();
-				String returnType = m.getReturnType().getName();
-
-				// Retrieve the SPL type constant corresponding to the java method return type
-				int internalReturnType = JavaSPLTypeConstants.convertJavaTypeToInternalType(returnType);
-
-				// In case of type reference retrieve the class name
-				String returnReferenceTypeName = "";
-				if (internalReturnType == TypeConstants.referenceType) {
-					returnReferenceTypeName = JavaSPLTypeConstants.getReferenceTypeName(returnType);
-				}
-
-				// Check if returning an array
-				boolean isReturnArray = JavaSPLTypeConstants.getIsArray(returnType);
-
-				// Get the list of formal parameters to the method
-				Class[] paramTypes = m.getParameterTypes();
-				List argTypeList = new ArrayList();
-
-				// Iterate over the formal parameters
-				for (int k = 0; k < paramTypes.length; k++) {
-					Class p = paramTypes[k];
-					String javaType = p.getName();
-
-					// Get the SPL type constant for the java type of the paramter 
-					int internalType = JavaSPLTypeConstants.convertJavaTypeToInternalType(javaType);
-
-					// Get the class name in case of Reference type
-					String referenceTypeName = "";
-					if (internalType == TypeConstants.referenceType) {
-						referenceTypeName = JavaSPLTypeConstants
-								.getReferenceTypeName(javaType);
-					}
-
-					// check if array
-					boolean isArray = JavaSPLTypeConstants.getIsArray(javaType);
-
-					// Construct an argument object
-					Argument param;
-					String paramName = "";
-					try {
-						param = new ArgumentImpl(internalType, paramName, isArray, referenceTypeName);
-						argTypeList.add(param);
-					} catch (SPLException e) {
-						e.printStackTrace();
-						throw new SPLException(e.getMessage());
-					}
-				}
-
-				// construct a method symbol 
-				Symbol s = new MethodSymbol(methodName, internalReturnType, isReturnArray, returnReferenceTypeName, argTypeList, null);
-
-				// Insert into map
-				symbolMap.put(methodName, s);
-			}
-
-		} catch (Exception e) {
-			e.printStackTrace();
-			throw new SPLException(e.getMessage());
-		}
-
-	}
-
-	public Map getSymbolsForClass(String className, String qualifier) throws SPLException {
-		String formattedClass = null;
-		if (className.startsWith("\"")) // string of form ""lkasdlk""
-		{
-			formattedClass = className.substring(1, className.length() - 1);
-		} else {
-			formattedClass = className;
-		}
-
-		Map symbolMap = new Hashtable();
-		_populateClassMembers(formattedClass, symbolMap);
-		_populateClassMethods(formattedClass, symbolMap);
-
-		return symbolMap;
-
-	}
-
-	/**
-	 * Get symbols for the given instance
-	 */
-
-	public Map getSymbolsForInstance(String className, String qualifier, Object instance) throws SPLException {
-		Map instanceMemberValues = new Hashtable();
-
-		Class c;
-		try {
-			// Load the class
-			if(fUrls == null) {
-				c = Class.forName(className);
-			} else {
-				URLClassLoader uc = new URLClassLoader(fUrls);
-				c = uc.loadClass(className);
-			}
-			
-			Field[] fields = c.getFields();
-
-			// Iterate over the fields
-			for (int i = 0; i < fields.length; i++) {
-				Field f = fields[i];
-
-				// Get the instance value of the current field
-				Object value = f.get(instance);
-				String fieldName = f.getName();
-
-				// Insert into map
-				instanceMemberValues.put(fieldName, value);
-			}
-		} catch (ClassNotFoundException e) {
-			e.printStackTrace();
-			throw new SPLException(e.getMessage());
-
-		} catch (IllegalArgumentException e) {
-			e.printStackTrace();
-			throw new SPLException(e.getMessage());
-		} catch (IllegalAccessException e) {
-			e.printStackTrace();
-			throw new SPLException(e.getMessage());
-		}
-		return instanceMemberValues;
-
-	}
-
-	/**
-	 * Not applicable for java spl
-	 */
-	public boolean associationExists(String nameSpace, String className,
-			String resultClass, String assocClass, String role, String resultRole) throws SPLException {
-		throw new SPLException("associationExists not supported in JAVA-SPL");
-	}
-
-	public List getAssociatedInstanceReferences(Object srcReference,
-			String classPath, String resultInstancesClassFilter,
-			String assocClass, String role, String resultRole) throws SPLException {
-		
-		throw new SPLException("getAssociatedInstanceReferences not supported in JAVA-SPL");
-	}
-
-	public List enumerateInstanceNames(String className, String qualifier) throws SPLException {
-		throw new SPLException("enumerateInstanceNames not supported in JAVA-SPL");
-
-	}
-
-	public String getReferenceTypeName(String reference) {
-		String refTypeNm = JavaSPLTypeConstants.getReferenceTypeName(reference);
-		return refTypeNm;
-	}
-
+/*
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ * 
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ * 
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+//
+
+/**
+ * @author Neeraj Joshi <jneeraj@us.ibm.com>
+ *
+ */
+
+package org.apache.imperius.javaspl;
+
+import java.lang.reflect.Field;
+import java.lang.reflect.Method;
+import java.net.URL;
+import java.net.URLClassLoader;
+import java.util.ArrayList;
+import java.util.Hashtable;
+import java.util.List;
+import java.util.Map;
+
+import org.apache.imperius.spl.external.Argument;
+import org.apache.imperius.spl.external.DataCollector;
+import org.apache.imperius.spl.external.TypeConstants;
+import org.apache.imperius.spl.parser.compiler.symboltable.MethodSymbol;
+import org.apache.imperius.spl.parser.compiler.symboltable.PropertySymbol;
+import org.apache.imperius.spl.parser.compiler.symboltable.Symbol;
+import org.apache.imperius.spl.parser.exceptions.SPLException;
+import org.apache.imperius.spl.parser.statements.impl.ArgumentImpl;
+
+
+
+public class JavaDataCollectorImpl implements DataCollector {
+	
+	private URL[] fUrls = null;
+	
+	public JavaDataCollectorImpl() {
+		
+	}
+	
+	public JavaDataCollectorImpl(URL[] urls) {
+		fUrls = urls;
+	}
+	
+	/**
+	 * Use reflection to retrieve properties of the given class and load them into
+	 * the symbol map
+	 * @param className
+	 * @param symbolMap
+	 * @throws SPLException
+	 */
+	private void _populateClassMembers(String className, Map symbolMap)
+			throws SPLException {
+		Class c;
+
+		try {
+			// Load class
+			if(fUrls == null) {
+				c = Class.forName(className);
+			} else {
+				URLClassLoader uc = new URLClassLoader(fUrls);
+				c = uc.loadClass(className);
+			}
+
+			// Iterate over it's fields
+			Field[] fields = c.getFields();
+			for (int i = 0; i < fields.length; i++) {
+				Field f = fields[i];
+
+				String fieldName = f.getName();
+				String javaType = f.getType().toString();
+
+				// Retrieve the SPL type constant corresponding to the java type
+				int internalType = JavaSPLTypeConstants.convertJavaTypeToInternalType(javaType);
+
+				// check if its an array
+				boolean isArray = JavaSPLTypeConstants.getIsArray(javaType);
+
+				// if type is reference get the class name
+				String referenceTypeName = "";
+				if (internalType == TypeConstants.referenceType) {
+					referenceTypeName = JavaSPLTypeConstants.getReferenceTypeName(javaType);
+				}
+				boolean isPropertyOfClass = true;
+				boolean isKey = false;
+
+				// create a new property symbol object
+				Symbol s = new PropertySymbol(f.getName(), internalType,
+						referenceTypeName, isArray, isKey, isPropertyOfClass);
+
+				// insert into map
+				symbolMap.put(fieldName, s);
+
+			}
+		} catch (Exception e) {
+
+			e.printStackTrace();
+			throw new SPLException(e.getMessage());
+		}
+
+	}
+
+	/**
+	 * Use reflection to retrieve the public methods supported by the given class
+	 * and populate into the given Map
+	 * @param className
+	 * @param symbolMap
+	 * @throws SPLException
+	 */
+	private void _populateClassMethods(String className, Map symbolMap)
+			throws SPLException {
+		Class c;
+		try {
+			// Load Class
+			if(fUrls == null) {
+				c = Class.forName(className);
+			} else {
+				URLClassLoader uc = new URLClassLoader(fUrls);
+				c = uc.loadClass(className);
+			}
+
+			// Iterate over the methods
+			Method[] methods = c.getMethods();
+
+			for (int j = 0; j < methods.length; j++) {
+				Method m = methods[j];
+				String methodName = m.getName();
+				String returnType = m.getReturnType().getName();
+
+				// Retrieve the SPL type constant corresponding to the java method return type
+				int internalReturnType = JavaSPLTypeConstants.convertJavaTypeToInternalType(returnType);
+
+				// In case of type reference retrieve the class name
+				String returnReferenceTypeName = "";
+				if (internalReturnType == TypeConstants.referenceType) {
+					returnReferenceTypeName = JavaSPLTypeConstants.getReferenceTypeName(returnType);
+				}
+
+				// Check if returning an array
+				boolean isReturnArray = JavaSPLTypeConstants.getIsArray(returnType);
+
+				// Get the list of formal parameters to the method
+				Class[] paramTypes = m.getParameterTypes();
+				List argTypeList = new ArrayList();
+
+				// Iterate over the formal parameters
+				for (int k = 0; k < paramTypes.length; k++) {
+					Class p = paramTypes[k];
+					String javaType = p.getName();
+
+					// Get the SPL type constant for the java type of the paramter 
+					int internalType = JavaSPLTypeConstants.convertJavaTypeToInternalType(javaType);
+
+					// Get the class name in case of Reference type
+					String referenceTypeName = "";
+					if (internalType == TypeConstants.referenceType) {
+						referenceTypeName = JavaSPLTypeConstants
+								.getReferenceTypeName(javaType);
+					}
+
+					// check if array
+					boolean isArray = JavaSPLTypeConstants.getIsArray(javaType);
+
+					// Construct an argument object
+					Argument param;
+					String paramName = "";
+					try {
+						param = new ArgumentImpl(internalType, paramName, isArray, referenceTypeName);
+						argTypeList.add(param);
+					} catch (SPLException e) {
+						e.printStackTrace();
+						throw new SPLException(e.getMessage());
+					}
+				}
+
+				// construct a method symbol 
+				Symbol s = new MethodSymbol(methodName, internalReturnType, isReturnArray, returnReferenceTypeName, argTypeList, null);
+
+				// Insert into map
+				symbolMap.put(methodName, s);
+			}
+
+		} catch (Exception e) {
+			e.printStackTrace();
+			throw new SPLException(e.getMessage());
+		}
+
+	}
+
+	public Map getSymbolsForClass(String className, String qualifier) throws SPLException {
+		String formattedClass = null;
+		if (className.startsWith("\"")) // string of form ""lkasdlk""
+		{
+			formattedClass = className.substring(1, className.length() - 1);
+		} else {
+			formattedClass = className;
+		}
+
+		Map symbolMap = new Hashtable();
+		_populateClassMembers(formattedClass, symbolMap);
+		_populateClassMethods(formattedClass, symbolMap);
+
+		return symbolMap;
+
+	}
+
+	/**
+	 * Get symbols for the given instance
+	 */
+
+	public Map getSymbolsForInstance(String className, String qualifier, Object instance) throws SPLException {
+		Map instanceMemberValues = new Hashtable();
+
+		Class c;
+		try {
+			// Load the class
+			if(fUrls == null) {
+				c = Class.forName(className);
+			} else {
+				URLClassLoader uc = new URLClassLoader(fUrls);
+				c = uc.loadClass(className);
+			}
+			
+			Field[] fields = c.getFields();
+
+			// Iterate over the fields
+			for (int i = 0; i < fields.length; i++) {
+				Field f = fields[i];
+
+				// Get the instance value of the current field
+				Object value = f.get(instance);
+				String fieldName = f.getName();
+
+				// Insert into map
+				instanceMemberValues.put(fieldName, value);
+			}
+		} catch (ClassNotFoundException e) {
+			e.printStackTrace();
+			throw new SPLException(e.getMessage());
+
+		} catch (IllegalArgumentException e) {
+			e.printStackTrace();
+			throw new SPLException(e.getMessage());
+		} catch (IllegalAccessException e) {
+			e.printStackTrace();
+			throw new SPLException(e.getMessage());
+		}
+		return instanceMemberValues;
+
+	}
+
+	/**
+	 * Not applicable for java spl
+	 */
+	public boolean associationExists(String nameSpace, String className,
+			String resultClass, String assocClass, String role, String resultRole) throws SPLException {
+		throw new SPLException("associationExists not supported in JAVA-SPL");
+	}
+
+	public List getAssociatedInstanceReferences(Object srcReference,
+			String classPath, String resultInstancesClassFilter,
+			String assocClass, String role, String resultRole) throws SPLException {
+		
+		throw new SPLException("getAssociatedInstanceReferences not supported in JAVA-SPL");
+	}
+
+	public List enumerateInstanceNames(String className, String qualifier) throws SPLException {
+		throw new SPLException("enumerateInstanceNames not supported in JAVA-SPL");
+
+	}
+
+	public String getReferenceTypeName(String reference) {
+		String refTypeNm = JavaSPLTypeConstants.getReferenceTypeName(reference);
+		return refTypeNm;
+	}
+
 }

Propchange: incubator/imperius/trunk/imperius-javaspl/src/main/java/org/apache/imperius/javaspl/JavaDataCollectorImpl.java
------------------------------------------------------------------------------
    svn:eol-style = native



Mime
View raw message