private boolean hasGlob() { boolean is = false; if (segment != null) { for (Segment.Value value : segment.getValues()) { if (Segment.GLOB == value.getType()) { is = true; } } } return is; }
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()); } } } }
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; }