X-Git-Url: http://lists.indexdata.dk/cgi-bin?a=blobdiff_plain;f=src%2Fmain%2Fjava%2Fcom%2Findexdata%2Fmkjsf%2Fpazpar2%2Fcommands%2FLimitParameter.java;h=0b989565c9d85b6b193e4fc2771d1c383087ca7d;hb=6c92dd9a72ae1fa27dd061c1897531879b8c0ba6;hp=b86c27f8e8a3089ee273719ae7ee0b0b6ae65ee2;hpb=31a027596723261b413d69c74428b176def3627f;p=mkjsf-moved-to-github.git diff --git a/src/main/java/com/indexdata/mkjsf/pazpar2/commands/LimitParameter.java b/src/main/java/com/indexdata/mkjsf/pazpar2/commands/LimitParameter.java index b86c27f..0b98956 100644 --- a/src/main/java/com/indexdata/mkjsf/pazpar2/commands/LimitParameter.java +++ b/src/main/java/com/indexdata/mkjsf/pazpar2/commands/LimitParameter.java @@ -2,6 +2,14 @@ package com.indexdata.mkjsf.pazpar2.commands; import org.apache.log4j.Logger; +/** + * Represents a limit parameter as it applies to the Pazpar2 search command + * + *
A limit parameter consists of one or more expressions separated by commas.
+ * + * @author Niels Erik + * + */ public class LimitParameter extends CommandParameter { private static final long serialVersionUID = -1410691265213389826L; @@ -29,7 +37,7 @@ public class LimitParameter extends CommandParameter { return completeValue.toString(); } - public String pz2escape (String expressionString) { + private String pz2escape (String expressionString) { String escaped = expressionString.replaceAll("\\\\","\\\\\\\\"); escaped = escaped.replaceAll(",","\\\\,"); escaped = escaped.replaceAll("\\|", "\\\\|");