From: <fg...@us...> - 2009-03-01 12:45:48
|
Revision: 1071 http://openutils.svn.sourceforge.net/openutils/?rev=1071&view=rev Author: fgrilli Date: 2009-03-01 12:45:46 +0000 (Sun, 01 Mar 2009) Log Message: ----------- improved javadoc Modified Paths: -------------- trunk/openutils-mgnlcriteria/src/main/java/net/sourceforge/openutils/mgnlcriteria/jcr/query/Criteria.java trunk/openutils-mgnlcriteria/src/main/java/net/sourceforge/openutils/mgnlcriteria/jcr/query/JCRCriteriaFactory.java Modified: trunk/openutils-mgnlcriteria/src/main/java/net/sourceforge/openutils/mgnlcriteria/jcr/query/Criteria.java =================================================================== --- trunk/openutils-mgnlcriteria/src/main/java/net/sourceforge/openutils/mgnlcriteria/jcr/query/Criteria.java 2009-03-01 12:34:32 UTC (rev 1070) +++ trunk/openutils-mgnlcriteria/src/main/java/net/sourceforge/openutils/mgnlcriteria/jcr/query/Criteria.java 2009-03-01 12:45:46 UTC (rev 1071) @@ -38,7 +38,8 @@ * <br> * @see JCRCriteriaFactory#createMgnlCriteria(String, info.magnolia.cms.core.search.QueryManager, String) * @see JCRCriteriaFactory#createMgnlCriteria(String, info.magnolia.cms.core.search.QueryManager, String, Class) - * @see JCRCriteriaFactory#createJCRCriteria(String, javax.jcr.query.QueryManager, String) + * @see JCRCriteriaFactory#createMgnlCriteriaWithLimit(String, info.magnolia.cms.core.search.QueryManager, String) + * @see JCRCriteriaFactory#createMgnlCriteriaWithLimit(String, info.magnolia.cms.core.search.QueryManager, String, Class) * @see Restrictions * @see Order * @author Federico Grilli Modified: trunk/openutils-mgnlcriteria/src/main/java/net/sourceforge/openutils/mgnlcriteria/jcr/query/JCRCriteriaFactory.java =================================================================== --- trunk/openutils-mgnlcriteria/src/main/java/net/sourceforge/openutils/mgnlcriteria/jcr/query/JCRCriteriaFactory.java 2009-03-01 12:34:32 UTC (rev 1070) +++ trunk/openutils-mgnlcriteria/src/main/java/net/sourceforge/openutils/mgnlcriteria/jcr/query/JCRCriteriaFactory.java 2009-03-01 12:45:46 UTC (rev 1071) @@ -1,6 +1,5 @@ package net.sourceforge.openutils.mgnlcriteria.jcr.query; -import net.sourceforge.openutils.mgnlcriteria.jcr.query.xpath.impl.AbstractMagnoliaCriteriaImpl; import net.sourceforge.openutils.mgnlcriteria.jcr.query.xpath.impl.MagnoliaCriteriaImpl; import net.sourceforge.openutils.mgnlcriteria.jcr.query.xpath.impl.MagnoliaCriteriaWithLimitImpl; @@ -22,8 +21,7 @@ * predicate * @param queryManager - an instance of info.magnolia.cms.core.search.QueryManager * @param itemType String - if not specified defaults to "mgnl:content" - * @return an instance of a concrete subclass of {@link AbstractMagnoliaCriteriaImpl} - * @see MagnoliaCriteriaImpl + * @return a factory for Magnolia CMS specific Criteria implementation */ public static Criteria createMgnlCriteria(String path, info.magnolia.cms.core.search.QueryManager queryManager, String itemType) @@ -38,8 +36,7 @@ * @param queryManager - an instance of info.magnolia.cms.core.search.QueryManager * @param itemType String - if not specified defaults to "mgnl:content" * @param classType Class<?> - the list method of this implementation must return instances of this type - * @return an instance of a concrete subclass of {@link AbstractMagnoliaCriteriaImpl} - * @see MagnoliaCriteriaImpl + * @return a factory for Magnolia CMS specific Criteria implementation */ public static Criteria createMgnlCriteria(String path, info.magnolia.cms.core.search.QueryManager queryManager, String itemType, Class< ? > classType) @@ -60,8 +57,7 @@ * predicate * @param queryManager - an instance of info.magnolia.cms.core.search.QueryManager * @param itemType String - if not specified defaults to "mgnl:content" - * @return an instance of a concrete subclass of {@link AbstractMagnoliaCriteriaImpl} - * @see MagnoliaCriteriaWithLimitImpl + * @return a factory for Magnolia CMS specific Criteria implementation */ public static Criteria createMgnlCriteriaWithLimit(String path, info.magnolia.cms.core.search.QueryManager queryManager, String itemType) @@ -83,8 +79,7 @@ * @param queryManager - an instance of info.magnolia.cms.core.search.QueryManager * @param itemType String - if not specified defaults to "mgnl:content" * @param classType Class<?> - the list method of this implementation must return instances of this type - * @return an instance of a concrete subclass of {@link AbstractMagnoliaCriteriaImpl} - * @see MagnoliaCriteriaWithLimitImpl + * @return a factory for Magnolia CMS specific Criteria implementation */ public static Criteria createMgnlCriteriaWithLimit(String path, info.magnolia.cms.core.search.QueryManager queryManager, String itemType, Class< ? > classType) @@ -92,16 +87,14 @@ return new MagnoliaCriteriaWithLimitImpl(path, queryManager, itemType, classType); } - /** + /* * @param path String - the path in JCR repository to search for Nodes. This is the path which precedes the * predicate * @param queryManager - an instance of javax.jcr.query.QueryManager * @param itemType String - depends on the implementation * @return an instance of a JCR-specific implementation of {@link Criteria} - * @throws UnsupportedOperationException as it is not implemented yet + * @throws UnsupportedOperationException as it is not implemented yet public static Criteria + * createJCRCriteria(String path, javax.jcr.query.QueryManager queryManager, String itemType) { throw new + * UnsupportedOperationException(); } */ - public static Criteria createJCRCriteria(String path, javax.jcr.query.QueryManager queryManager, String itemType) - { - throw new UnsupportedOperationException(); - } } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <fg...@us...> - 2009-05-08 21:05:27
|
Revision: 1193 http://openutils.svn.sourceforge.net/openutils/?rev=1193&view=rev Author: fgrilli Date: 2009-05-08 21:05:22 +0000 (Fri, 08 May 2009) Log Message: ----------- added license header to source files Modified Paths: -------------- trunk/openutils-mgnlcriteria/src/main/java/net/sourceforge/openutils/mgnlcriteria/jcr/query/Criteria.java trunk/openutils-mgnlcriteria/src/main/java/net/sourceforge/openutils/mgnlcriteria/jcr/query/JCRCriteriaFactory.java trunk/openutils-mgnlcriteria/src/main/java/net/sourceforge/openutils/mgnlcriteria/jcr/query/JCRMagnoliaCriteriaQueryTranslator.java trunk/openutils-mgnlcriteria/src/main/java/net/sourceforge/openutils/mgnlcriteria/jcr/query/JCRQueryException.java trunk/openutils-mgnlcriteria/src/main/java/net/sourceforge/openutils/mgnlcriteria/jcr/query/criterion/BetweenExpression.java trunk/openutils-mgnlcriteria/src/main/java/net/sourceforge/openutils/mgnlcriteria/jcr/query/criterion/Conjunction.java trunk/openutils-mgnlcriteria/src/main/java/net/sourceforge/openutils/mgnlcriteria/jcr/query/criterion/Criterion.java trunk/openutils-mgnlcriteria/src/main/java/net/sourceforge/openutils/mgnlcriteria/jcr/query/criterion/Disjunction.java trunk/openutils-mgnlcriteria/src/main/java/net/sourceforge/openutils/mgnlcriteria/jcr/query/criterion/InExpression.java trunk/openutils-mgnlcriteria/src/main/java/net/sourceforge/openutils/mgnlcriteria/jcr/query/criterion/IsNotNullExpression.java trunk/openutils-mgnlcriteria/src/main/java/net/sourceforge/openutils/mgnlcriteria/jcr/query/criterion/IsNullExpression.java trunk/openutils-mgnlcriteria/src/main/java/net/sourceforge/openutils/mgnlcriteria/jcr/query/criterion/JCRFunctionExpression.java trunk/openutils-mgnlcriteria/src/main/java/net/sourceforge/openutils/mgnlcriteria/jcr/query/criterion/Junction.java trunk/openutils-mgnlcriteria/src/main/java/net/sourceforge/openutils/mgnlcriteria/jcr/query/criterion/LikeExpression.java trunk/openutils-mgnlcriteria/src/main/java/net/sourceforge/openutils/mgnlcriteria/jcr/query/criterion/LogicalExpression.java trunk/openutils-mgnlcriteria/src/main/java/net/sourceforge/openutils/mgnlcriteria/jcr/query/criterion/MatchMode.java trunk/openutils-mgnlcriteria/src/main/java/net/sourceforge/openutils/mgnlcriteria/jcr/query/criterion/NotExpression.java trunk/openutils-mgnlcriteria/src/main/java/net/sourceforge/openutils/mgnlcriteria/jcr/query/criterion/Order.java trunk/openutils-mgnlcriteria/src/main/java/net/sourceforge/openutils/mgnlcriteria/jcr/query/criterion/Restrictions.java trunk/openutils-mgnlcriteria/src/main/java/net/sourceforge/openutils/mgnlcriteria/jcr/query/criterion/SimpleExpression.java trunk/openutils-mgnlcriteria/src/main/java/net/sourceforge/openutils/mgnlcriteria/jcr/query/xpath/XPathSelect.java trunk/openutils-mgnlcriteria/src/main/java/net/sourceforge/openutils/mgnlcriteria/jcr/query/xpath/impl/AbstractCriteriaImpl.java trunk/openutils-mgnlcriteria/src/main/java/net/sourceforge/openutils/mgnlcriteria/jcr/query/xpath/impl/AbstractMagnoliaCriteriaImpl.java trunk/openutils-mgnlcriteria/src/main/java/net/sourceforge/openutils/mgnlcriteria/jcr/query/xpath/impl/MagnoliaCriteriaImpl.java trunk/openutils-mgnlcriteria/src/main/java/net/sourceforge/openutils/mgnlcriteria/jcr/query/xpath/impl/MagnoliaCriteriaWithLimitImpl.java trunk/openutils-mgnlcriteria/src/main/java/net/sourceforge/openutils/mgnlcriteria/jcr/query/xpath/utils/XPathTextUtils.java Modified: trunk/openutils-mgnlcriteria/src/main/java/net/sourceforge/openutils/mgnlcriteria/jcr/query/Criteria.java =================================================================== --- trunk/openutils-mgnlcriteria/src/main/java/net/sourceforge/openutils/mgnlcriteria/jcr/query/Criteria.java 2009-05-08 21:03:34 UTC (rev 1192) +++ trunk/openutils-mgnlcriteria/src/main/java/net/sourceforge/openutils/mgnlcriteria/jcr/query/Criteria.java 2009-05-08 21:05:22 UTC (rev 1193) @@ -1,3 +1,21 @@ +/** + * + * Copyright Openmind http://www.openmindonline.it + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see <http://www.gnu.org/licenses/>. + * + */ package net.sourceforge.openutils.mgnlcriteria.jcr.query; Modified: trunk/openutils-mgnlcriteria/src/main/java/net/sourceforge/openutils/mgnlcriteria/jcr/query/JCRCriteriaFactory.java =================================================================== --- trunk/openutils-mgnlcriteria/src/main/java/net/sourceforge/openutils/mgnlcriteria/jcr/query/JCRCriteriaFactory.java 2009-05-08 21:03:34 UTC (rev 1192) +++ trunk/openutils-mgnlcriteria/src/main/java/net/sourceforge/openutils/mgnlcriteria/jcr/query/JCRCriteriaFactory.java 2009-05-08 21:05:22 UTC (rev 1193) @@ -1,3 +1,21 @@ +/** + * + * Copyright Openmind http://www.openmindonline.it + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see <http://www.gnu.org/licenses/>. + * + */ package net.sourceforge.openutils.mgnlcriteria.jcr.query; import net.sourceforge.openutils.mgnlcriteria.jcr.query.xpath.impl.MagnoliaCriteriaImpl; Modified: trunk/openutils-mgnlcriteria/src/main/java/net/sourceforge/openutils/mgnlcriteria/jcr/query/JCRMagnoliaCriteriaQueryTranslator.java =================================================================== --- trunk/openutils-mgnlcriteria/src/main/java/net/sourceforge/openutils/mgnlcriteria/jcr/query/JCRMagnoliaCriteriaQueryTranslator.java 2009-05-08 21:03:34 UTC (rev 1192) +++ trunk/openutils-mgnlcriteria/src/main/java/net/sourceforge/openutils/mgnlcriteria/jcr/query/JCRMagnoliaCriteriaQueryTranslator.java 2009-05-08 21:05:22 UTC (rev 1193) @@ -1,3 +1,21 @@ +/** + * + * Copyright Openmind http://www.openmindonline.it + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see <http://www.gnu.org/licenses/>. + * + */ package net.sourceforge.openutils.mgnlcriteria.jcr.query; Modified: trunk/openutils-mgnlcriteria/src/main/java/net/sourceforge/openutils/mgnlcriteria/jcr/query/JCRQueryException.java =================================================================== --- trunk/openutils-mgnlcriteria/src/main/java/net/sourceforge/openutils/mgnlcriteria/jcr/query/JCRQueryException.java 2009-05-08 21:03:34 UTC (rev 1192) +++ trunk/openutils-mgnlcriteria/src/main/java/net/sourceforge/openutils/mgnlcriteria/jcr/query/JCRQueryException.java 2009-05-08 21:05:22 UTC (rev 1193) @@ -1,3 +1,21 @@ +/** + * + * Copyright Openmind http://www.openmindonline.it + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see <http://www.gnu.org/licenses/>. + * + */ package net.sourceforge.openutils.mgnlcriteria.jcr.query; import org.apache.commons.lang.exception.NestableRuntimeException; Modified: trunk/openutils-mgnlcriteria/src/main/java/net/sourceforge/openutils/mgnlcriteria/jcr/query/criterion/BetweenExpression.java =================================================================== --- trunk/openutils-mgnlcriteria/src/main/java/net/sourceforge/openutils/mgnlcriteria/jcr/query/criterion/BetweenExpression.java 2009-05-08 21:03:34 UTC (rev 1192) +++ trunk/openutils-mgnlcriteria/src/main/java/net/sourceforge/openutils/mgnlcriteria/jcr/query/criterion/BetweenExpression.java 2009-05-08 21:05:22 UTC (rev 1193) @@ -1,3 +1,21 @@ +/** + * + * Copyright Openmind http://www.openmindonline.it + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see <http://www.gnu.org/licenses/>. + * + */ package net.sourceforge.openutils.mgnlcriteria.jcr.query.criterion; import java.util.Calendar; Modified: trunk/openutils-mgnlcriteria/src/main/java/net/sourceforge/openutils/mgnlcriteria/jcr/query/criterion/Conjunction.java =================================================================== --- trunk/openutils-mgnlcriteria/src/main/java/net/sourceforge/openutils/mgnlcriteria/jcr/query/criterion/Conjunction.java 2009-05-08 21:03:34 UTC (rev 1192) +++ trunk/openutils-mgnlcriteria/src/main/java/net/sourceforge/openutils/mgnlcriteria/jcr/query/criterion/Conjunction.java 2009-05-08 21:05:22 UTC (rev 1193) @@ -1,3 +1,21 @@ +/** + * + * Copyright Openmind http://www.openmindonline.it + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see <http://www.gnu.org/licenses/>. + * + */ package net.sourceforge.openutils.mgnlcriteria.jcr.query.criterion; /** Modified: trunk/openutils-mgnlcriteria/src/main/java/net/sourceforge/openutils/mgnlcriteria/jcr/query/criterion/Criterion.java =================================================================== --- trunk/openutils-mgnlcriteria/src/main/java/net/sourceforge/openutils/mgnlcriteria/jcr/query/criterion/Criterion.java 2009-05-08 21:03:34 UTC (rev 1192) +++ trunk/openutils-mgnlcriteria/src/main/java/net/sourceforge/openutils/mgnlcriteria/jcr/query/criterion/Criterion.java 2009-05-08 21:05:22 UTC (rev 1193) @@ -1,3 +1,21 @@ +/** + * + * Copyright Openmind http://www.openmindonline.it + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see <http://www.gnu.org/licenses/>. + * + */ package net.sourceforge.openutils.mgnlcriteria.jcr.query.criterion; Modified: trunk/openutils-mgnlcriteria/src/main/java/net/sourceforge/openutils/mgnlcriteria/jcr/query/criterion/Disjunction.java =================================================================== --- trunk/openutils-mgnlcriteria/src/main/java/net/sourceforge/openutils/mgnlcriteria/jcr/query/criterion/Disjunction.java 2009-05-08 21:03:34 UTC (rev 1192) +++ trunk/openutils-mgnlcriteria/src/main/java/net/sourceforge/openutils/mgnlcriteria/jcr/query/criterion/Disjunction.java 2009-05-08 21:05:22 UTC (rev 1193) @@ -1,3 +1,21 @@ +/** + * + * Copyright Openmind http://www.openmindonline.it + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see <http://www.gnu.org/licenses/>. + * + */ package net.sourceforge.openutils.mgnlcriteria.jcr.query.criterion; /** Modified: trunk/openutils-mgnlcriteria/src/main/java/net/sourceforge/openutils/mgnlcriteria/jcr/query/criterion/InExpression.java =================================================================== --- trunk/openutils-mgnlcriteria/src/main/java/net/sourceforge/openutils/mgnlcriteria/jcr/query/criterion/InExpression.java 2009-05-08 21:03:34 UTC (rev 1192) +++ trunk/openutils-mgnlcriteria/src/main/java/net/sourceforge/openutils/mgnlcriteria/jcr/query/criterion/InExpression.java 2009-05-08 21:05:22 UTC (rev 1193) @@ -1,3 +1,21 @@ +/** + * + * Copyright Openmind http://www.openmindonline.it + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see <http://www.gnu.org/licenses/>. + * + */ package net.sourceforge.openutils.mgnlcriteria.jcr.query.criterion; import net.sourceforge.openutils.mgnlcriteria.jcr.query.Criteria; Modified: trunk/openutils-mgnlcriteria/src/main/java/net/sourceforge/openutils/mgnlcriteria/jcr/query/criterion/IsNotNullExpression.java =================================================================== --- trunk/openutils-mgnlcriteria/src/main/java/net/sourceforge/openutils/mgnlcriteria/jcr/query/criterion/IsNotNullExpression.java 2009-05-08 21:03:34 UTC (rev 1192) +++ trunk/openutils-mgnlcriteria/src/main/java/net/sourceforge/openutils/mgnlcriteria/jcr/query/criterion/IsNotNullExpression.java 2009-05-08 21:05:22 UTC (rev 1193) @@ -1,3 +1,21 @@ +/** + * + * Copyright Openmind http://www.openmindonline.it + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see <http://www.gnu.org/licenses/>. + * + */ package net.sourceforge.openutils.mgnlcriteria.jcr.query.criterion; import net.sourceforge.openutils.mgnlcriteria.jcr.query.Criteria; Modified: trunk/openutils-mgnlcriteria/src/main/java/net/sourceforge/openutils/mgnlcriteria/jcr/query/criterion/IsNullExpression.java =================================================================== --- trunk/openutils-mgnlcriteria/src/main/java/net/sourceforge/openutils/mgnlcriteria/jcr/query/criterion/IsNullExpression.java 2009-05-08 21:03:34 UTC (rev 1192) +++ trunk/openutils-mgnlcriteria/src/main/java/net/sourceforge/openutils/mgnlcriteria/jcr/query/criterion/IsNullExpression.java 2009-05-08 21:05:22 UTC (rev 1193) @@ -1,3 +1,21 @@ +/** + * + * Copyright Openmind http://www.openmindonline.it + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see <http://www.gnu.org/licenses/>. + * + */ package net.sourceforge.openutils.mgnlcriteria.jcr.query.criterion; import net.sourceforge.openutils.mgnlcriteria.jcr.query.Criteria; Modified: trunk/openutils-mgnlcriteria/src/main/java/net/sourceforge/openutils/mgnlcriteria/jcr/query/criterion/JCRFunctionExpression.java =================================================================== --- trunk/openutils-mgnlcriteria/src/main/java/net/sourceforge/openutils/mgnlcriteria/jcr/query/criterion/JCRFunctionExpression.java 2009-05-08 21:03:34 UTC (rev 1192) +++ trunk/openutils-mgnlcriteria/src/main/java/net/sourceforge/openutils/mgnlcriteria/jcr/query/criterion/JCRFunctionExpression.java 2009-05-08 21:05:22 UTC (rev 1193) @@ -1,3 +1,21 @@ +/** + * + * Copyright Openmind http://www.openmindonline.it + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see <http://www.gnu.org/licenses/>. + * + */ package net.sourceforge.openutils.mgnlcriteria.jcr.query.criterion; import net.sourceforge.openutils.mgnlcriteria.jcr.query.Criteria; Modified: trunk/openutils-mgnlcriteria/src/main/java/net/sourceforge/openutils/mgnlcriteria/jcr/query/criterion/Junction.java =================================================================== --- trunk/openutils-mgnlcriteria/src/main/java/net/sourceforge/openutils/mgnlcriteria/jcr/query/criterion/Junction.java 2009-05-08 21:03:34 UTC (rev 1192) +++ trunk/openutils-mgnlcriteria/src/main/java/net/sourceforge/openutils/mgnlcriteria/jcr/query/criterion/Junction.java 2009-05-08 21:05:22 UTC (rev 1193) @@ -1,3 +1,21 @@ +/** + * + * Copyright Openmind http://www.openmindonline.it + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see <http://www.gnu.org/licenses/>. + * + */ package net.sourceforge.openutils.mgnlcriteria.jcr.query.criterion; import java.util.ArrayList; Modified: trunk/openutils-mgnlcriteria/src/main/java/net/sourceforge/openutils/mgnlcriteria/jcr/query/criterion/LikeExpression.java =================================================================== --- trunk/openutils-mgnlcriteria/src/main/java/net/sourceforge/openutils/mgnlcriteria/jcr/query/criterion/LikeExpression.java 2009-05-08 21:03:34 UTC (rev 1192) +++ trunk/openutils-mgnlcriteria/src/main/java/net/sourceforge/openutils/mgnlcriteria/jcr/query/criterion/LikeExpression.java 2009-05-08 21:05:22 UTC (rev 1193) @@ -1,3 +1,21 @@ +/** + * + * Copyright Openmind http://www.openmindonline.it + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see <http://www.gnu.org/licenses/>. + * + */ package net.sourceforge.openutils.mgnlcriteria.jcr.query.criterion; import net.sourceforge.openutils.mgnlcriteria.jcr.query.Criteria; Modified: trunk/openutils-mgnlcriteria/src/main/java/net/sourceforge/openutils/mgnlcriteria/jcr/query/criterion/LogicalExpression.java =================================================================== --- trunk/openutils-mgnlcriteria/src/main/java/net/sourceforge/openutils/mgnlcriteria/jcr/query/criterion/LogicalExpression.java 2009-05-08 21:03:34 UTC (rev 1192) +++ trunk/openutils-mgnlcriteria/src/main/java/net/sourceforge/openutils/mgnlcriteria/jcr/query/criterion/LogicalExpression.java 2009-05-08 21:05:22 UTC (rev 1193) @@ -1,3 +1,21 @@ +/** + * + * Copyright Openmind http://www.openmindonline.it + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see <http://www.gnu.org/licenses/>. + * + */ package net.sourceforge.openutils.mgnlcriteria.jcr.query.criterion; import net.sourceforge.openutils.mgnlcriteria.jcr.query.Criteria; Modified: trunk/openutils-mgnlcriteria/src/main/java/net/sourceforge/openutils/mgnlcriteria/jcr/query/criterion/MatchMode.java =================================================================== --- trunk/openutils-mgnlcriteria/src/main/java/net/sourceforge/openutils/mgnlcriteria/jcr/query/criterion/MatchMode.java 2009-05-08 21:03:34 UTC (rev 1192) +++ trunk/openutils-mgnlcriteria/src/main/java/net/sourceforge/openutils/mgnlcriteria/jcr/query/criterion/MatchMode.java 2009-05-08 21:05:22 UTC (rev 1193) @@ -1,3 +1,21 @@ +/** + * + * Copyright Openmind http://www.openmindonline.it + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see <http://www.gnu.org/licenses/>. + * + */ package net.sourceforge.openutils.mgnlcriteria.jcr.query.criterion; import java.io.Serializable; Modified: trunk/openutils-mgnlcriteria/src/main/java/net/sourceforge/openutils/mgnlcriteria/jcr/query/criterion/NotExpression.java =================================================================== --- trunk/openutils-mgnlcriteria/src/main/java/net/sourceforge/openutils/mgnlcriteria/jcr/query/criterion/NotExpression.java 2009-05-08 21:03:34 UTC (rev 1192) +++ trunk/openutils-mgnlcriteria/src/main/java/net/sourceforge/openutils/mgnlcriteria/jcr/query/criterion/NotExpression.java 2009-05-08 21:05:22 UTC (rev 1193) @@ -1,3 +1,21 @@ +/** + * + * Copyright Openmind http://www.openmindonline.it + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see <http://www.gnu.org/licenses/>. + * + */ package net.sourceforge.openutils.mgnlcriteria.jcr.query.criterion; import net.sourceforge.openutils.mgnlcriteria.jcr.query.Criteria; Modified: trunk/openutils-mgnlcriteria/src/main/java/net/sourceforge/openutils/mgnlcriteria/jcr/query/criterion/Order.java =================================================================== --- trunk/openutils-mgnlcriteria/src/main/java/net/sourceforge/openutils/mgnlcriteria/jcr/query/criterion/Order.java 2009-05-08 21:03:34 UTC (rev 1192) +++ trunk/openutils-mgnlcriteria/src/main/java/net/sourceforge/openutils/mgnlcriteria/jcr/query/criterion/Order.java 2009-05-08 21:05:22 UTC (rev 1193) @@ -1,3 +1,21 @@ +/** + * + * Copyright Openmind http://www.openmindonline.it + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see <http://www.gnu.org/licenses/>. + * + */ package net.sourceforge.openutils.mgnlcriteria.jcr.query.criterion; import net.sourceforge.openutils.mgnlcriteria.jcr.query.Criteria; Modified: trunk/openutils-mgnlcriteria/src/main/java/net/sourceforge/openutils/mgnlcriteria/jcr/query/criterion/Restrictions.java =================================================================== --- trunk/openutils-mgnlcriteria/src/main/java/net/sourceforge/openutils/mgnlcriteria/jcr/query/criterion/Restrictions.java 2009-05-08 21:03:34 UTC (rev 1192) +++ trunk/openutils-mgnlcriteria/src/main/java/net/sourceforge/openutils/mgnlcriteria/jcr/query/criterion/Restrictions.java 2009-05-08 21:05:22 UTC (rev 1193) @@ -1,3 +1,21 @@ +/** + * + * Copyright Openmind http://www.openmindonline.it + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see <http://www.gnu.org/licenses/>. + * + */ package net.sourceforge.openutils.mgnlcriteria.jcr.query.criterion; import java.util.Calendar; Modified: trunk/openutils-mgnlcriteria/src/main/java/net/sourceforge/openutils/mgnlcriteria/jcr/query/criterion/SimpleExpression.java =================================================================== --- trunk/openutils-mgnlcriteria/src/main/java/net/sourceforge/openutils/mgnlcriteria/jcr/query/criterion/SimpleExpression.java 2009-05-08 21:03:34 UTC (rev 1192) +++ trunk/openutils-mgnlcriteria/src/main/java/net/sourceforge/openutils/mgnlcriteria/jcr/query/criterion/SimpleExpression.java 2009-05-08 21:05:22 UTC (rev 1193) @@ -1,3 +1,21 @@ +/** + * + * Copyright Openmind http://www.openmindonline.it + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see <http://www.gnu.org/licenses/>. + * + */ package net.sourceforge.openutils.mgnlcriteria.jcr.query.criterion; Modified: trunk/openutils-mgnlcriteria/src/main/java/net/sourceforge/openutils/mgnlcriteria/jcr/query/xpath/XPathSelect.java =================================================================== --- trunk/openutils-mgnlcriteria/src/main/java/net/sourceforge/openutils/mgnlcriteria/jcr/query/xpath/XPathSelect.java 2009-05-08 21:03:34 UTC (rev 1192) +++ trunk/openutils-mgnlcriteria/src/main/java/net/sourceforge/openutils/mgnlcriteria/jcr/query/xpath/XPathSelect.java 2009-05-08 21:05:22 UTC (rev 1193) @@ -1,3 +1,21 @@ +/** + * + * Copyright Openmind http://www.openmindonline.it + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see <http://www.gnu.org/licenses/>. + * + */ package net.sourceforge.openutils.mgnlcriteria.jcr.query.xpath; import org.apache.commons.lang.StringUtils; Modified: trunk/openutils-mgnlcriteria/src/main/java/net/sourceforge/openutils/mgnlcriteria/jcr/query/xpath/impl/AbstractCriteriaImpl.java =================================================================== --- trunk/openutils-mgnlcriteria/src/main/java/net/sourceforge/openutils/mgnlcriteria/jcr/query/xpath/impl/AbstractCriteriaImpl.java 2009-05-08 21:03:34 UTC (rev 1192) +++ trunk/openutils-mgnlcriteria/src/main/java/net/sourceforge/openutils/mgnlcriteria/jcr/query/xpath/impl/AbstractCriteriaImpl.java 2009-05-08 21:05:22 UTC (rev 1193) @@ -1,3 +1,21 @@ +/** + * + * Copyright Openmind http://www.openmindonline.it + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see <http://www.gnu.org/licenses/>. + * + */ package net.sourceforge.openutils.mgnlcriteria.jcr.query.xpath.impl; import java.io.Serializable; Modified: trunk/openutils-mgnlcriteria/src/main/java/net/sourceforge/openutils/mgnlcriteria/jcr/query/xpath/impl/AbstractMagnoliaCriteriaImpl.java =================================================================== --- trunk/openutils-mgnlcriteria/src/main/java/net/sourceforge/openutils/mgnlcriteria/jcr/query/xpath/impl/AbstractMagnoliaCriteriaImpl.java 2009-05-08 21:03:34 UTC (rev 1192) +++ trunk/openutils-mgnlcriteria/src/main/java/net/sourceforge/openutils/mgnlcriteria/jcr/query/xpath/impl/AbstractMagnoliaCriteriaImpl.java 2009-05-08 21:05:22 UTC (rev 1193) @@ -1,3 +1,21 @@ +/** + * + * Copyright Openmind http://www.openmindonline.it + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see <http://www.gnu.org/licenses/>. + * + */ package net.sourceforge.openutils.mgnlcriteria.jcr.query.xpath.impl; import org.apache.commons.lang.StringUtils; Modified: trunk/openutils-mgnlcriteria/src/main/java/net/sourceforge/openutils/mgnlcriteria/jcr/query/xpath/impl/MagnoliaCriteriaImpl.java =================================================================== --- trunk/openutils-mgnlcriteria/src/main/java/net/sourceforge/openutils/mgnlcriteria/jcr/query/xpath/impl/MagnoliaCriteriaImpl.java 2009-05-08 21:03:34 UTC (rev 1192) +++ trunk/openutils-mgnlcriteria/src/main/java/net/sourceforge/openutils/mgnlcriteria/jcr/query/xpath/impl/MagnoliaCriteriaImpl.java 2009-05-08 21:05:22 UTC (rev 1193) @@ -1,3 +1,21 @@ +/** + * + * Copyright Openmind http://www.openmindonline.it + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see <http://www.gnu.org/licenses/>. + * + */ package net.sourceforge.openutils.mgnlcriteria.jcr.query.xpath.impl; import info.magnolia.cms.core.Content; Modified: trunk/openutils-mgnlcriteria/src/main/java/net/sourceforge/openutils/mgnlcriteria/jcr/query/xpath/impl/MagnoliaCriteriaWithLimitImpl.java =================================================================== --- trunk/openutils-mgnlcriteria/src/main/java/net/sourceforge/openutils/mgnlcriteria/jcr/query/xpath/impl/MagnoliaCriteriaWithLimitImpl.java 2009-05-08 21:03:34 UTC (rev 1192) +++ trunk/openutils-mgnlcriteria/src/main/java/net/sourceforge/openutils/mgnlcriteria/jcr/query/xpath/impl/MagnoliaCriteriaWithLimitImpl.java 2009-05-08 21:05:22 UTC (rev 1193) @@ -1,3 +1,21 @@ +/** + * + * Copyright Openmind http://www.openmindonline.it + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see <http://www.gnu.org/licenses/>. + * + */ package net.sourceforge.openutils.mgnlcriteria.jcr.query.xpath.impl; import info.magnolia.cms.core.Content; Modified: trunk/openutils-mgnlcriteria/src/main/java/net/sourceforge/openutils/mgnlcriteria/jcr/query/xpath/utils/XPathTextUtils.java =================================================================== --- trunk/openutils-mgnlcriteria/src/main/java/net/sourceforge/openutils/mgnlcriteria/jcr/query/xpath/utils/XPathTextUtils.java 2009-05-08 21:03:34 UTC (rev 1192) +++ trunk/openutils-mgnlcriteria/src/main/java/net/sourceforge/openutils/mgnlcriteria/jcr/query/xpath/utils/XPathTextUtils.java 2009-05-08 21:05:22 UTC (rev 1193) @@ -1,3 +1,21 @@ +/** + * + * Copyright Openmind http://www.openmindonline.it + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see <http://www.gnu.org/licenses/>. + * + */ package net.sourceforge.openutils.mgnlcriteria.jcr.query.xpath.utils; import org.apache.commons.lang.StringUtils; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <fg...@us...> - 2009-08-13 08:10:25
|
Revision: 1259 http://openutils.svn.sourceforge.net/openutils/?rev=1259&view=rev Author: fgrilli Date: 2009-08-13 08:10:16 +0000 (Thu, 13 Aug 2009) Log Message: ----------- some fixes and improvements suggested by findbugs Modified Paths: -------------- trunk/openutils-mgnlcriteria/src/main/java/net/sourceforge/openutils/mgnlcriteria/jcr/query/criterion/InExpression.java trunk/openutils-mgnlcriteria/src/main/java/net/sourceforge/openutils/mgnlcriteria/jcr/query/criterion/MatchMode.java trunk/openutils-mgnlcriteria/src/main/java/net/sourceforge/openutils/mgnlcriteria/jcr/query/xpath/impl/AbstractCriteriaImpl.java trunk/openutils-mgnlcriteria/src/main/java/net/sourceforge/openutils/mgnlcriteria/jcr/query/xpath/impl/MagnoliaCriteriaImpl.java trunk/openutils-mgnlcriteria/src/main/java/net/sourceforge/openutils/mgnlcriteria/jcr/query/xpath/impl/MagnoliaCriteriaWithLimitImpl.java Modified: trunk/openutils-mgnlcriteria/src/main/java/net/sourceforge/openutils/mgnlcriteria/jcr/query/criterion/InExpression.java =================================================================== --- trunk/openutils-mgnlcriteria/src/main/java/net/sourceforge/openutils/mgnlcriteria/jcr/query/criterion/InExpression.java 2009-08-12 16:37:45 UTC (rev 1258) +++ trunk/openutils-mgnlcriteria/src/main/java/net/sourceforge/openutils/mgnlcriteria/jcr/query/criterion/InExpression.java 2009-08-13 08:10:16 UTC (rev 1259) @@ -38,12 +38,6 @@ public InExpression(String nodeName, String[] values) { this.nodeName = nodeName; - if (!(values instanceof String[])) - { - String msg = "values must be of type String[]"; - log.error(msg); - throw new IllegalArgumentException(msg); - } this.values = values; } Modified: trunk/openutils-mgnlcriteria/src/main/java/net/sourceforge/openutils/mgnlcriteria/jcr/query/criterion/MatchMode.java =================================================================== --- trunk/openutils-mgnlcriteria/src/main/java/net/sourceforge/openutils/mgnlcriteria/jcr/query/criterion/MatchMode.java 2009-08-12 16:37:45 UTC (rev 1258) +++ trunk/openutils-mgnlcriteria/src/main/java/net/sourceforge/openutils/mgnlcriteria/jcr/query/criterion/MatchMode.java 2009-08-13 08:10:16 UTC (rev 1259) @@ -94,11 +94,6 @@ INSTANCES.put(ANYWHERE.name, ANYWHERE); } - private Object readResolve() - { - return INSTANCES.get(name); - } - /** * convert the pattern, by appending/prepending "%" */ Modified: trunk/openutils-mgnlcriteria/src/main/java/net/sourceforge/openutils/mgnlcriteria/jcr/query/xpath/impl/AbstractCriteriaImpl.java =================================================================== --- trunk/openutils-mgnlcriteria/src/main/java/net/sourceforge/openutils/mgnlcriteria/jcr/query/xpath/impl/AbstractCriteriaImpl.java 2009-08-12 16:37:45 UTC (rev 1258) +++ trunk/openutils-mgnlcriteria/src/main/java/net/sourceforge/openutils/mgnlcriteria/jcr/query/xpath/impl/AbstractCriteriaImpl.java 2009-08-13 08:10:16 UTC (rev 1259) @@ -104,7 +104,7 @@ public Criteria setMaxResults(int maxResults) { - this.maxResults = new Integer(maxResults); + this.maxResults = Integer.valueOf(maxResults); return this; } @@ -115,7 +115,7 @@ public Criteria setFirstResult(int firstResult) { - this.firstResult = new Integer(firstResult); + this.firstResult = Integer.valueOf(firstResult); return this; } @@ -126,7 +126,7 @@ public Criteria setTimeout(int timeout) { - this.timeout = new Integer(timeout); + this.timeout = Integer.valueOf(timeout); return this; } @@ -146,6 +146,8 @@ public static final class CriterionEntry implements Serializable { + private static final long serialVersionUID = 1L; + private final Criterion criterion; private final Criteria criteria; @@ -175,6 +177,7 @@ public static final class OrderEntry implements Serializable { + private static final long serialVersionUID = 1L; private final Order order; Modified: trunk/openutils-mgnlcriteria/src/main/java/net/sourceforge/openutils/mgnlcriteria/jcr/query/xpath/impl/MagnoliaCriteriaImpl.java =================================================================== --- trunk/openutils-mgnlcriteria/src/main/java/net/sourceforge/openutils/mgnlcriteria/jcr/query/xpath/impl/MagnoliaCriteriaImpl.java 2009-08-12 16:37:45 UTC (rev 1258) +++ trunk/openutils-mgnlcriteria/src/main/java/net/sourceforge/openutils/mgnlcriteria/jcr/query/xpath/impl/MagnoliaCriteriaImpl.java 2009-08-13 08:10:16 UTC (rev 1259) @@ -110,9 +110,8 @@ else { log.debug("returning a Collection holding objects of type {} ", classType.getName()); - Iterator iter = retVal.iterator(); List list = new ArrayList(); - while (iter.hasNext()) + for (Iterator iter = retVal.iterator(); iter.hasNext();) { Content node = (Content) iter.next(); try Modified: trunk/openutils-mgnlcriteria/src/main/java/net/sourceforge/openutils/mgnlcriteria/jcr/query/xpath/impl/MagnoliaCriteriaWithLimitImpl.java =================================================================== --- trunk/openutils-mgnlcriteria/src/main/java/net/sourceforge/openutils/mgnlcriteria/jcr/query/xpath/impl/MagnoliaCriteriaWithLimitImpl.java 2009-08-12 16:37:45 UTC (rev 1258) +++ trunk/openutils-mgnlcriteria/src/main/java/net/sourceforge/openutils/mgnlcriteria/jcr/query/xpath/impl/MagnoliaCriteriaWithLimitImpl.java 2009-08-13 08:10:16 UTC (rev 1259) @@ -127,7 +127,7 @@ stop = System.currentTimeMillis(); log.debug("Query executed in {} milliseconds", stop - start); - Collection retVal = new ArrayList(); + Collection retVal; field = managerClass.getDeclaredField(HIERARCHY_MANAGER); field.setAccessible(true); HierarchyManager hm = (HierarchyManager) field.get(queryManager); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <fg...@us...> - 2010-01-09 14:01:00
|
Revision: 1617 http://openutils.svn.sourceforge.net/openutils/?rev=1617&view=rev Author: fgiust Date: 2010-01-09 14:00:53 +0000 (Sat, 09 Jan 2010) Log Message: ----------- CRIT-3 Don't generate an invalid Xpath in case of empty expressions Modified Paths: -------------- trunk/openutils-mgnlcriteria/src/main/java/net/sourceforge/openutils/mgnlcriteria/jcr/query/JCRMagnoliaCriteriaQueryTranslator.java trunk/openutils-mgnlcriteria/src/main/java/net/sourceforge/openutils/mgnlcriteria/jcr/query/xpath/impl/MagnoliaCriteriaImpl.java trunk/openutils-mgnlcriteria/src/main/java/net/sourceforge/openutils/mgnlcriteria/jcr/query/xpath/utils/XPathTextUtils.java Modified: trunk/openutils-mgnlcriteria/src/main/java/net/sourceforge/openutils/mgnlcriteria/jcr/query/JCRMagnoliaCriteriaQueryTranslator.java =================================================================== --- trunk/openutils-mgnlcriteria/src/main/java/net/sourceforge/openutils/mgnlcriteria/jcr/query/JCRMagnoliaCriteriaQueryTranslator.java 2010-01-09 10:36:17 UTC (rev 1616) +++ trunk/openutils-mgnlcriteria/src/main/java/net/sourceforge/openutils/mgnlcriteria/jcr/query/JCRMagnoliaCriteriaQueryTranslator.java 2010-01-09 14:00:53 UTC (rev 1617) @@ -18,13 +18,14 @@ */ package net.sourceforge.openutils.mgnlcriteria.jcr.query; - import java.util.Iterator; import net.sourceforge.openutils.mgnlcriteria.jcr.query.xpath.impl.AbstractCriteriaImpl; import net.sourceforge.openutils.mgnlcriteria.jcr.query.xpath.impl.AbstractMagnoliaCriteriaImpl; +import org.apache.commons.lang.StringUtils; + /** * @author Federico Grilli * @version $Id$ @@ -49,16 +50,25 @@ { StringBuilder condition = new StringBuilder(30); Iterator<AbstractMagnoliaCriteriaImpl.CriterionEntry> criterionIterator = criteria.iterateExpressionEntries(); + + boolean isfirst = true; while (criterionIterator.hasNext()) { AbstractMagnoliaCriteriaImpl.CriterionEntry entry = criterionIterator.next(); String xpathString = entry.getCriterion().toXPathString(entry.getCriteria()); - condition.append(xpathString); - if (criterionIterator.hasNext()) + + if (StringUtils.isNotBlank(xpathString)) { - condition.append(" and "); + if (!isfirst && StringUtils.isNotBlank(xpathString)) + { + condition.append(" and "); + } + + condition.append(xpathString); + isfirst = false; } } + return condition.toString(); } Modified: trunk/openutils-mgnlcriteria/src/main/java/net/sourceforge/openutils/mgnlcriteria/jcr/query/xpath/impl/MagnoliaCriteriaImpl.java =================================================================== --- trunk/openutils-mgnlcriteria/src/main/java/net/sourceforge/openutils/mgnlcriteria/jcr/query/xpath/impl/MagnoliaCriteriaImpl.java 2010-01-09 10:36:17 UTC (rev 1616) +++ trunk/openutils-mgnlcriteria/src/main/java/net/sourceforge/openutils/mgnlcriteria/jcr/query/xpath/impl/MagnoliaCriteriaImpl.java 2010-01-09 14:00:53 UTC (rev 1617) @@ -33,9 +33,7 @@ import javax.jcr.RepositoryException; import javax.jcr.query.InvalidQueryException; -import net.sourceforge.openutils.mgnlcriteria.jcr.query.JCRMagnoliaCriteriaQueryTranslator; import net.sourceforge.openutils.mgnlcriteria.jcr.query.JCRQueryException; -import net.sourceforge.openutils.mgnlcriteria.jcr.query.xpath.XPathSelect; /** @@ -63,17 +61,14 @@ public Collection< ? > list() throws JCRQueryException { if (queryManager == null) + { throw new IllegalStateException("QueryManager cannot be null"); + } log.debug("creating statement..."); long start = System.currentTimeMillis(); - JCRMagnoliaCriteriaQueryTranslator translator = new JCRMagnoliaCriteriaQueryTranslator(this); - XPathSelect statement = new XPathSelect(); - statement.setRoot(this.path); - statement.setPredicate(translator.getPredicate()); - statement.setOrderByClause(translator.getOrderBy()); - String stmt = statement.toStatementString(); + String stmt = toXpathExpression(); long stop = System.currentTimeMillis(); log.debug("statement created in {} ms", stop - start); @@ -101,7 +96,7 @@ if (Content.class.isAssignableFrom(classType)) { log.debug("returning a Collection holding objects of type {} ", Content.class.getName()); - retVal = retVal == null ? new ArrayList<Content>(): retVal; + retVal = retVal == null ? new ArrayList<Content>() : retVal; log.debug("got {} node(s) in {} ms", new Object[]{retVal.size(), stop - start }); return retVal; @@ -140,4 +135,5 @@ throw new JCRQueryException(e); } } + } \ No newline at end of file Modified: trunk/openutils-mgnlcriteria/src/main/java/net/sourceforge/openutils/mgnlcriteria/jcr/query/xpath/utils/XPathTextUtils.java =================================================================== --- trunk/openutils-mgnlcriteria/src/main/java/net/sourceforge/openutils/mgnlcriteria/jcr/query/xpath/utils/XPathTextUtils.java 2010-01-09 10:36:17 UTC (rev 1616) +++ trunk/openutils-mgnlcriteria/src/main/java/net/sourceforge/openutils/mgnlcriteria/jcr/query/xpath/utils/XPathTextUtils.java 2010-01-09 14:00:53 UTC (rev 1617) @@ -49,6 +49,10 @@ */ public static String escapeIllegalXpathSearchChars(String s) { + if (StringUtils.isEmpty(s)) + { + return s; + } StringBuffer sb = new StringBuffer(); sb.append(s.substring(0, (s.length() - 1))); char c = s.charAt(s.length() - 1); @@ -77,6 +81,10 @@ */ public static String stringToXPathLiteral(String str) { + if (StringUtils.isEmpty(str)) + { + return str; + } // Single quotes needed for jcr:contains() return str.replaceAll("'", "\""); } @@ -90,6 +98,11 @@ */ public static String stringToJCRSearchExp(String str) { + if (StringUtils.isEmpty(str)) + { + return str; + } + // Escape ' and \ everywhere, preceding them with \ except when \ // appears // in one of the combinations \" or \- This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <die...@us...> - 2010-05-12 15:01:32
|
Revision: 2412 http://openutils.svn.sourceforge.net/openutils/?rev=2412&view=rev Author: diego_schivo Date: 2010-05-12 15:01:24 +0000 (Wed, 12 May 2010) Log Message: ----------- CRIT-11 AbstractCriteriaImpl Modified Paths: -------------- trunk/openutils-mgnlcriteria/src/main/java/net/sourceforge/openutils/mgnlcriteria/jcr/query/Criteria.java trunk/openutils-mgnlcriteria/src/main/java/net/sourceforge/openutils/mgnlcriteria/jcr/query/xpath/impl/AbstractCriteriaImpl.java Modified: trunk/openutils-mgnlcriteria/src/main/java/net/sourceforge/openutils/mgnlcriteria/jcr/query/Criteria.java =================================================================== --- trunk/openutils-mgnlcriteria/src/main/java/net/sourceforge/openutils/mgnlcriteria/jcr/query/Criteria.java 2010-05-12 14:03:44 UTC (rev 2411) +++ trunk/openutils-mgnlcriteria/src/main/java/net/sourceforge/openutils/mgnlcriteria/jcr/query/Criteria.java 2010-05-12 15:01:24 UTC (rev 2412) @@ -155,13 +155,34 @@ @Deprecated Collection< ? > list() throws JCRQueryException; + /** + * + * @param path + * @return + */ Criteria setBasePath(String path); + /** + * + * @param itemsPerPage + * @param pageNumberStartingFromOne + * @return + */ Criteria setPaging(int itemsPerPage, int pageNumberStartingFromOne); - Criteria setSpellCheckString(String path); + /** + * + * @param spellCheckString + * @return + */ + Criteria setSpellCheckString(String spellCheckString); - Criteria setWorkspace(String path); + /** + * + * @param path + * @return + */ + Criteria setWorkspace(String workspace); /** * Returns the generated xpath expression Modified: trunk/openutils-mgnlcriteria/src/main/java/net/sourceforge/openutils/mgnlcriteria/jcr/query/xpath/impl/AbstractCriteriaImpl.java =================================================================== --- trunk/openutils-mgnlcriteria/src/main/java/net/sourceforge/openutils/mgnlcriteria/jcr/query/xpath/impl/AbstractCriteriaImpl.java 2010-05-12 14:03:44 UTC (rev 2411) +++ trunk/openutils-mgnlcriteria/src/main/java/net/sourceforge/openutils/mgnlcriteria/jcr/query/xpath/impl/AbstractCriteriaImpl.java 2010-05-12 15:01:24 UTC (rev 2412) @@ -82,62 +82,93 @@ this.hm = hm; } + /** + * {@inheritDoc} + */ public Collection<CriterionEntry> getCriterionEntries() { return Collections.unmodifiableCollection(criterionEntries); } + /** + * {@inheritDoc} + */ public Collection<OrderEntry> getOrderEntries() { return Collections.unmodifiableCollection(orderEntries); } - public Criteria add(Criteria criteriaInst, Criterion expression) + /** + * {@inheritDoc} + */ + public Criteria add(Criterion criterion) { - criterionEntries.add(new CriterionEntry(expression, criteriaInst)); + criterionEntries.add(new CriterionEntry(criterion, this)); return this; } - public Criteria add(Criterion expression) + /** + * {@inheritDoc} + */ + public Criteria addOrder(Order order) { - add(this, expression); + orderEntries.add(new OrderEntry(order, this)); return this; } - public Criteria addOrder(Order ordering) + /** + * {@inheritDoc} + */ + public Criteria setBasePath(String path) { - orderEntries.add(new OrderEntry(ordering, this)); + this.path = StringUtils.defaultIfEmpty(path, "//*"); return this; } - public Integer getMaxResults() + /** + * Returns the firstResult. + * @return the firstResult + */ + public int getFirstResult() { - return maxResults; + return offset; } - public Criteria setMaxResults(int maxResults) + /** + * {@inheritDoc} + */ + public Criteria setFirstResult(int firstResult) { - this.maxResults = maxResults; + this.offset = firstResult; return this; } - public Integer getFirstResult() + + /** + * Returns the maxResults. + * @return the maxResults + */ + public int getMaxResults() { - return offset; + return maxResults; } - public Criteria setFirstResult(int firstResult) + /** + * {@inheritDoc} + */ + public Criteria setMaxResults(int maxResults) { - this.offset = firstResult; + this.maxResults = maxResults; return this; } /** * {@inheritDoc} */ - public Criteria setBasePath(String path) + public Criteria setPaging(int itemsPerPage, int pageNumberStartingFromOne) { - this.path = StringUtils.defaultIfEmpty(path, "//*"); + this.maxResults = itemsPerPage; + this.offset = (Math.max(pageNumberStartingFromOne, 1) - 1) * maxResults; return this; } @@ -159,15 +190,8 @@ return this; } - public Criteria setPaging(int itemsPerPage, int pageNumberStartingFromOne) - { - this.maxResults = itemsPerPage; - this.offset = (Math.max(pageNumberStartingFromOne, 1) - 1) * maxResults; - return this; - } - /** - * @return + * {@inheritDoc} */ public String toXpathExpression() { @@ -185,7 +209,6 @@ */ public AdvancedResult execute() { - String language = javax.jcr.query.Query.XPATH; String stmt = toXpathExpression(); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <die...@us...> - 2010-05-13 07:17:20
|
Revision: 2436 http://openutils.svn.sourceforge.net/openutils/?rev=2436&view=rev Author: diego_schivo Date: 2010-05-13 07:17:14 +0000 (Thu, 13 May 2010) Log Message: ----------- CRIT-11 javadocs Modified Paths: -------------- trunk/openutils-mgnlcriteria/src/main/java/net/sourceforge/openutils/mgnlcriteria/jcr/query/ResultIterator.java trunk/openutils-mgnlcriteria/src/main/java/net/sourceforge/openutils/mgnlcriteria/jcr/query/TranslatableCriteria.java Modified: trunk/openutils-mgnlcriteria/src/main/java/net/sourceforge/openutils/mgnlcriteria/jcr/query/ResultIterator.java =================================================================== --- trunk/openutils-mgnlcriteria/src/main/java/net/sourceforge/openutils/mgnlcriteria/jcr/query/ResultIterator.java 2010-05-13 06:18:00 UTC (rev 2435) +++ trunk/openutils-mgnlcriteria/src/main/java/net/sourceforge/openutils/mgnlcriteria/jcr/query/ResultIterator.java 2010-05-13 07:17:14 UTC (rev 2436) @@ -27,6 +27,7 @@ /** + * Wraps a RowIterator, requiring subclasses to adapt each Row to a specific type. * @author fgiust * @version $Id$ */ @@ -94,6 +95,11 @@ return wrap(rowIterator.nextRow()); } + /** + * Transforms a Row instance, adapting it to a specific type. + * @param row + * @return a transformed version + */ protected abstract T wrap(Row row); } Modified: trunk/openutils-mgnlcriteria/src/main/java/net/sourceforge/openutils/mgnlcriteria/jcr/query/TranslatableCriteria.java =================================================================== --- trunk/openutils-mgnlcriteria/src/main/java/net/sourceforge/openutils/mgnlcriteria/jcr/query/TranslatableCriteria.java 2010-05-13 06:18:00 UTC (rev 2435) +++ trunk/openutils-mgnlcriteria/src/main/java/net/sourceforge/openutils/mgnlcriteria/jcr/query/TranslatableCriteria.java 2010-05-13 07:17:14 UTC (rev 2436) @@ -27,6 +27,7 @@ /** + * Exposes the Criterion and Order entries of a Criteria instance. * @author fgiust * @version $Id$ */ @@ -34,14 +35,14 @@ { /** - * - * @return + * Gets the Order entries of this Criteria instance. + * @return a collection of Order entries */ Collection<OrderEntry> getOrderEntries(); /** - * - * @return + * Gets the Order entries of this Criteria instance. + * @return a collection of Criterion entries */ Collection<CriterionEntry> getCriterionEntries(); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <die...@us...> - 2010-05-13 10:31:41
|
Revision: 2443 http://openutils.svn.sourceforge.net/openutils/?rev=2443&view=rev Author: diego_schivo Date: 2010-05-13 10:31:35 +0000 (Thu, 13 May 2010) Log Message: ----------- CRIT-11 javadocs Modified Paths: -------------- trunk/openutils-mgnlcriteria/src/main/java/net/sourceforge/openutils/mgnlcriteria/jcr/query/Criteria.java trunk/openutils-mgnlcriteria/src/main/java/net/sourceforge/openutils/mgnlcriteria/jcr/query/DirectJcrQuery.java Modified: trunk/openutils-mgnlcriteria/src/main/java/net/sourceforge/openutils/mgnlcriteria/jcr/query/Criteria.java =================================================================== --- trunk/openutils-mgnlcriteria/src/main/java/net/sourceforge/openutils/mgnlcriteria/jcr/query/Criteria.java 2010-05-13 10:29:41 UTC (rev 2442) +++ trunk/openutils-mgnlcriteria/src/main/java/net/sourceforge/openutils/mgnlcriteria/jcr/query/Criteria.java 2010-05-13 10:31:35 UTC (rev 2443) @@ -91,7 +91,6 @@ * This API was inspired by Hibernate's Criteria API. <br> * <br> * @see JCRCriteriaFactory#createCriteria() - * @see JCRCriteriaFactory#createDirectJcrQuery(info.magnolia.cms.core.HierarchyManager, String, String) * @see Restrictions * @see Order * @author Federico Grilli Modified: trunk/openutils-mgnlcriteria/src/main/java/net/sourceforge/openutils/mgnlcriteria/jcr/query/DirectJcrQuery.java =================================================================== --- trunk/openutils-mgnlcriteria/src/main/java/net/sourceforge/openutils/mgnlcriteria/jcr/query/DirectJcrQuery.java 2010-05-13 10:29:41 UTC (rev 2442) +++ trunk/openutils-mgnlcriteria/src/main/java/net/sourceforge/openutils/mgnlcriteria/jcr/query/DirectJcrQuery.java 2010-05-13 10:31:35 UTC (rev 2443) @@ -24,6 +24,7 @@ /** + * @see JCRCriteriaFactory#createDirectJcrQuery(info.magnolia.cms.core.HierarchyManager, String, String) * @author fgiust * @version $Id$ */ This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <fg...@us...> - 2010-08-29 15:31:15
|
Revision: 2927 http://openutils.svn.sourceforge.net/openutils/?rev=2927&view=rev Author: fgiust Date: 2010-08-29 15:31:09 +0000 (Sun, 29 Aug 2010) Log Message: ----------- javadocs Modified Paths: -------------- trunk/openutils-mgnlcriteria/src/main/java/net/sourceforge/openutils/mgnlcriteria/jcr/query/criterion/Criterion.java trunk/openutils-mgnlcriteria/src/main/java/net/sourceforge/openutils/mgnlcriteria/jcr/query/criterion/Junction.java trunk/openutils-mgnlcriteria/src/main/java/net/sourceforge/openutils/mgnlcriteria/jcr/query/xpath/XPathSelect.java Modified: trunk/openutils-mgnlcriteria/src/main/java/net/sourceforge/openutils/mgnlcriteria/jcr/query/criterion/Criterion.java =================================================================== --- trunk/openutils-mgnlcriteria/src/main/java/net/sourceforge/openutils/mgnlcriteria/jcr/query/criterion/Criterion.java 2010-08-29 15:26:31 UTC (rev 2926) +++ trunk/openutils-mgnlcriteria/src/main/java/net/sourceforge/openutils/mgnlcriteria/jcr/query/criterion/Criterion.java 2010-08-29 15:31:09 UTC (rev 2927) @@ -37,19 +37,39 @@ public interface Criterion extends Serializable { - + /** + * The jcr primary type "@jcr:primaryType". + */ String JCR_PRIMARYTYPE = "@jcr:primaryType"; + /** + * The xpath attribute prefix "@" + */ String ATTRIBUTE_SELECTOR = "@"; + /** + * The jcr prefix "jcr:". + */ String JCR_PREFIX = "jcr:"; + /** + * The jcr root path "/jcr:root". + */ String JCR_ROOT = "/jcr:root"; + /** + * Xpath for all elements "//*". + */ String ALL_ELEMENTS = "//*"; + /** + * XS datetime function "xs:dateTime" + */ String XS_DATETIME_FUNCTION = "xs:dateTime"; + /** + * nt:base item type. + */ String NT_BASE = "nt:base"; /** Modified: trunk/openutils-mgnlcriteria/src/main/java/net/sourceforge/openutils/mgnlcriteria/jcr/query/criterion/Junction.java =================================================================== --- trunk/openutils-mgnlcriteria/src/main/java/net/sourceforge/openutils/mgnlcriteria/jcr/query/criterion/Junction.java 2010-08-29 15:26:31 UTC (rev 2926) +++ trunk/openutils-mgnlcriteria/src/main/java/net/sourceforge/openutils/mgnlcriteria/jcr/query/criterion/Junction.java 2010-08-29 15:31:09 UTC (rev 2927) @@ -48,6 +48,11 @@ this.op = op; } + /** + * Adds a criterion to this Junction + * @param criterion Criterion to add + * @return Junction + */ public Junction add(Criterion criterion) { criteria.add(criterion); @@ -59,6 +64,9 @@ return op; } + /** + * {@inheritDoc} + */ public String toXPathString(Criteria crit) throws JCRQueryException { @@ -89,7 +97,7 @@ } /** - * @see java.lang.Object#toString() + * {@inheritDoc} */ @Override public String toString() Modified: trunk/openutils-mgnlcriteria/src/main/java/net/sourceforge/openutils/mgnlcriteria/jcr/query/xpath/XPathSelect.java =================================================================== --- trunk/openutils-mgnlcriteria/src/main/java/net/sourceforge/openutils/mgnlcriteria/jcr/query/xpath/XPathSelect.java 2010-08-29 15:26:31 UTC (rev 2926) +++ trunk/openutils-mgnlcriteria/src/main/java/net/sourceforge/openutils/mgnlcriteria/jcr/query/xpath/XPathSelect.java 2010-08-29 15:31:09 UTC (rev 2927) @@ -69,7 +69,7 @@ /** * Sets the selectClause. - * @param selectClause The selectClause to set + * @param root the root path for the jcr query */ public XPathSelect setRoot(String root) { This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |