JavaId extends ConstructId { public static Type typeFromString(String _t) { if ("PACK".equalsIgnoreCase(_t)) return Type.PACKAGE; else if ("CLAS".equalsIgnoreCase(_t)) return Type.CLASS; else if ("ENUM".toString().equalsIgnoreCase(_t)) return Type.ENUM; else if ("INTF".toString().equalsIgnoreCase(_t)) return Type.INTERFACE; else if ("NCLA".toString().equalsIgnoreCase(_t)) return Type.NESTED_CLASS; else if ("CONS".toString().equalsIgnoreCase(_t)) return Type.CONSTRUCTOR; else if ("METH".toString().equalsIgnoreCase(_t)) return Type.METHOD; else if ("INIT".toString().equalsIgnoreCase(_t)) return Type.CLASSINIT; else throw new IllegalArgumentException("Unknown type [" + _t + "]"); } protected  JavaId(Type _t); Type getType(); String toString(); Set<String> getAnnotations(); void addAnnotation(String _a); boolean hasAnnotation(String _a); abstract JavaPackageId getJavaPackageId(); abstract ConstructId getDefinitionContext(); ConstructType getSharedType(); final String toJSON(); @Override JsonObject toGSON(); @Override final int hashCode(); @Override final boolean equals(Object obj); static String typeToString(Type _t); static Type typeFromString(String _t); static org.eclipse.steady.shared.enums.ConstructType toSharedType(JavaId.Type _core_type); static org.eclipse.steady.ConstructId toCoreType(
      org.eclipse.steady.shared.json.model.ConstructId _cid); static Set<org.eclipse.steady.ConstructId> toCoreType(
      Collection<org.eclipse.steady.shared.json.model.ConstructId> _cids); static JavaClassId getClassId(@NotNull Class _c); static JavaEnumId parseEnumQName(@NotNull String _s); static JavaClassId parseClassQName(@NotNull String _s); static JavaMethodId parseMethodQName(String _s); static JavaMethodId parseMethodQName(JavaId.Type _ctx_type, String _s); static JavaConstructorId parseConstructorQName(String _s); static JavaConstructorId parseConstructorQName(
      JavaId.Type _ctx_type, String _s, String _param_to_skip); static JavaClassInit parseClassInitQName(String _s); static String removePackageContext(String _qname); static Set<ConstructId> filter(Set<ConstructId> _set, String[] _filter); static Set<ConstructId> filter(Set<ConstructId> _set, String _filter); static Set<ConstructId> filter(Set<ConstructId> _set, JavaId.Type[] _filter); static Set<ConstructId> filterWithContext(Set<ConstructId> _set, JavaId _context); URL getJarUrl(); static final URL getJarUrl(URL _url); JavaId getCompilationUnit(); static JavaId getCompilationUnit(JavaId _jid); static JavaId getJavaId(String _type, String _qname);  }
@Test public void typeFromStringInputNotNullOutputIllegalArgumentException() { final String _t = ""; thrown.expect(IllegalArgumentException.class); JavaId.typeFromString(_t); }
@Test public void typeFromStringInputNotNullOutputNotNull() { final String _t = "ENUM"; final JavaId.Type retval = JavaId.typeFromString(_t); assertEquals(JavaId.Type.ENUM, retval); }
@Test public void typeFromStringInputNotNullOutputNotNull2() { final String _t = "pACK"; final JavaId.Type retval = JavaId.typeFromString(_t); assertEquals(JavaId.Type.PACKAGE, retval); }
@Test public void typeFromStringInputNotNullOutputNotNull3() { final String _t = "iNIT"; final JavaId.Type retval = JavaId.typeFromString(_t); assertEquals(JavaId.Type.CLASSINIT, retval); }
@Test public void typeFromStringInputNotNullOutputNotNull4() { final String _t = "CLAS"; final JavaId.Type retval = JavaId.typeFromString(_t); assertEquals(JavaId.Type.CLASS, retval); }
@Test public void typeFromStringInputNotNullOutputNotNull5() { final String _t = "InTF"; final JavaId.Type retval = JavaId.typeFromString(_t); assertEquals(JavaId.Type.INTERFACE, retval); }
@Test public void typeFromStringInputNotNullOutputNotNull6() { final String _t = "CoNs"; final JavaId.Type retval = JavaId.typeFromString(_t); assertEquals(JavaId.Type.CONSTRUCTOR, retval); }
@Test public void typeFromStringInputNotNullOutputNotNull7() { final String _t = "NCla"; final JavaId.Type retval = JavaId.typeFromString(_t); assertEquals(JavaId.Type.NESTED_CLASS, retval); }
@Test public void typeFromStringInputNotNullOutputNotNull8() { final String _t = "MEtH"; final JavaId.Type retval = JavaId.typeFromString(_t); assertEquals(JavaId.Type.METHOD, retval); }