@Test public void testInvalidNames() { final String[] illegalChars = { "=", "-", "(", ")", "*", "%", "^" }; for (String i : illegalChars) { try { GraphName.of("good" + i); fail("Bad name not caught: " + i); } catch (RuntimeException e) { } } final String[] illegalNames = { "/~private", "5foo" }; for (String i : illegalNames) { try { GraphName.of(i); fail("Bad name not caught" + i); } catch (RuntimeException e) { } } }
public static GraphName of(String name) { return new GraphName(canonicalize(name)); }
GraphName { public static GraphName of(String name) { return new GraphName(canonicalize(name)); } }
GraphName { public static GraphName of(String name) { return new GraphName(canonicalize(name)); } private  GraphName(String name); }
GraphName { public static GraphName of(String name) { return new GraphName(canonicalize(name)); } private  GraphName(String name); static GraphName newAnonymous(); static GraphName root(); static GraphName empty(); static GraphName of(String name); boolean isGlobal(); boolean isRoot(); boolean isEmpty(); boolean isPrivate(); boolean isRelative(); GraphName getParent(); GraphName getBasename(); GraphName toRelative(); GraphName toGlobal(); GraphName join(GraphName other); GraphName join(String other); @Override String toString(); @Override int hashCode(); @Override boolean equals(Object obj); }
GraphName { public static GraphName of(String name) { return new GraphName(canonicalize(name)); } private  GraphName(String name); static GraphName newAnonymous(); static GraphName root(); static GraphName empty(); static GraphName of(String name); boolean isGlobal(); boolean isRoot(); boolean isEmpty(); boolean isPrivate(); boolean isRelative(); GraphName getParent(); GraphName getBasename(); GraphName toRelative(); GraphName toGlobal(); GraphName join(GraphName other); GraphName join(String other); @Override String toString(); @Override int hashCode(); @Override boolean equals(Object obj);  }