Exemplo n.º 1
0
 static Namespace create(String prefix, String uri) {
   if (prefix == null)
     throw new IllegalArgumentException("Empty string represents default namespace prefix");
   if (uri == null) throw new IllegalArgumentException("Namespace may not lack a URI");
   Namespace rv = new Namespace();
   rv.prefix = prefix;
   rv.uri = uri;
   return rv;
 }
Exemplo n.º 2
0
 static Namespace create(String uri) {
   Namespace rv = new Namespace();
   rv.uri = uri;
   return rv;
 }