コード例 #1
0
 public static String getPatternID(String resourceURI) {
   if (!isPattern(resourceURI)) {
     return "";
   }
   return resourceURI.substring(
       Constants.PATTERN_PREFIX_URL.length(),
       resourceURI.lastIndexOf("#" + Constants.PATTERN_RESOURCE_NAME));
 }
コード例 #2
0
 public static String getPatternIDFromBaseURI(String baseURI) {
   return baseURI.substring(Constants.PATTERN_PREFIX_URL.length(), baseURI.length());
 }