@Test public void typeFromStringInputNotNullOutputNotNull2() { final String _t = "pACK"; final JavaId.Type retval = JavaId.typeFromString(_t); assertEquals(JavaId.Type.PACKAGE, retval); }
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 + "]"); }
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 + "]"); } }
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); }
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); }
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);  }