public static String getPatternID(String resourceURI) { if (!isPattern(resourceURI)) { return ""; } return resourceURI.substring( Constants.PATTERN_PREFIX_URL.length(), resourceURI.lastIndexOf("#" + Constants.PATTERN_RESOURCE_NAME)); }
public static String getPatternIDFromBaseURI(String baseURI) { return baseURI.substring(Constants.PATTERN_PREFIX_URL.length(), baseURI.length()); }