Esempio n. 1
0
 private boolean hasGlob() {
   boolean is = false;
   if (segment != null) {
     for (Segment.Value value : segment.getValues()) {
       if (Segment.GLOB == value.getType()) {
         is = true;
       }
     }
   }
   return is;
 }
Esempio n. 2
0
 private void extractSegmentParams(
     Segment extractSegment, Segment inputSegment, MatchParams params) {
   if (extractSegment != null && inputSegment != null) {
     String paramName = extractSegment.getParamName();
     if (paramName.length() > 0) {
       for (Segment.Value value : inputSegment.getValues()) {
         params.insertValue(paramName, value.getEffectivePattern());
       }
     }
   }
 }
Esempio n. 3
0
 private int getType() {
   int type = Segment.UNKNOWN;
   if (segment != null) {
     for (Segment.Value value : segment.getValues()) {
       int vType = value.getType();
       type = type < vType ? type : vType;
       if (type == Segment.STATIC) {
         break;
       }
     }
   }
   return type;
 }