예제 #1
0
 /**
  * Creates a new URI string within the default domain.
  *
  * @param name The name of the resource in the default domain.
  * @return The complete name for the resource.
  */
 public String newName(String name) {
   if (base == null) return NSUtils.getDefaultDomain() + ":" + name;
   return base + name;
 }
예제 #2
0
 /**
  * Retrieves the base namespace.
  *
  * @return The namespace of the base.
  */
 public String getBase() {
   return base != null ? base : NSUtils.getDefaultDomain();
 }