@Override public String toString() { if (target.hasValue()) { return "ARC(" + new String(code) + ") --> " + target.getPattern().getRegex(); } else { return "ARC(" + new String(code) + ") --> null"; } }
/** * Public constructor. * @param template The template */ public PathPattern(final UriTemplate template) { super( PathPattern.postfixWithCapturingGroup(template.getPattern().getRegex()), PathPattern.indexCapturingGroup(template.getPattern().getGroupIndexes()) ); this.template = template; }
/** * Public ctor. * @param template The template * @param rightHandSide Right hand side of the template */ public PathPattern(final UriTemplate template, final String rightHandSide) { super( PathPattern.postfixWithCapturingGroup( template.getPattern().getRegex(), rightHandSide ), PathPattern.indexCapturingGroup(template.getPattern().getGroupIndexes()) ); this.template = template; }
@Override public String toString() { if (target.hasValue()) { return "ARC(" + new String(code) + ") --> " + target.getPattern().getRegex(); } else { return "ARC(" + new String(code) + ") --> null"; } }
@Override public String toString() { if (target.hasValue()) { return "ARC(" + new String(code) + ") --> " + target.getPattern().getRegex(); } else { return "ARC(" + new String(code) + ") --> null"; } }
/** * Public constructor. * @param template The template */ public PathPattern(final UriTemplate template) { super( PathPattern.postfixWithCapturingGroup(template.getPattern().getRegex()), PathPattern.indexCapturingGroup(template.getPattern().getGroupIndexes()) ); this.template = template; }
/** * Public constructor. * @param template The template */ public PathPattern(final UriTemplate template) { super( PathPattern.postfixWithCapturingGroup(template.getPattern().getRegex()), PathPattern.indexCapturingGroup(template.getPattern().getGroupIndexes()) ); this.template = template; }
/** * Public ctor. * @param template The template * @param rightHandSide Right hand side of the template */ public PathPattern(final UriTemplate template, final String rightHandSide) { super( PathPattern.postfixWithCapturingGroup( template.getPattern().getRegex(), rightHandSide ), PathPattern.indexCapturingGroup(template.getPattern().getGroupIndexes()) ); this.template = template; }
/** * Public ctor. * @param template The template * @param rightHandSide Right hand side of the template */ public PathPattern(final UriTemplate template, final String rightHandSide) { super( PathPattern.postfixWithCapturingGroup( template.getPattern().getRegex(), rightHandSide ), PathPattern.indexCapturingGroup(template.getPattern().getGroupIndexes()) ); this.template = template; }