public static Type getType(String name) { if (name == null) { throw new IllegalArgumentException("Invalid type name: null"); } for (Type type : values()) { if (name.equalsIgnoreCase(type.name)) { return type; } else if (type.isQualifiedType() || type.isComplexType()) { if (name.toUpperCase(Locale.ROOT).startsWith(type.name)) { return type; } } } throw new IllegalArgumentException("Unrecognized type name: " + name); }
public static Type getType(String name) { if (name == null) { throw new IllegalArgumentException("Invalid type name: null"); } for (Type type : values()) { if (name.equalsIgnoreCase(type.name)) { return type; } else if (type.isQualifiedType() || type.isComplexType()) { if (name.toUpperCase(Locale.ROOT).startsWith(type.name)) { return type; } } } throw new IllegalArgumentException("Unrecognized type name: " + name); }
public static Type getType(String name) { if (name == null) { throw new IllegalArgumentException("Invalid type name: null"); } for (Type type : values()) { if (name.equalsIgnoreCase(type.name)) { return type; } else if (type.isQualifiedType() || type.isComplexType()) { if (name.toUpperCase().startsWith(type.name)) { return type; } } } throw new IllegalArgumentException("Unrecognized type name: " + name); }
public static Type getType(String name) { if (name == null) { throw new IllegalArgumentException("Invalid type name: null"); } for (Type type : values()) { if (name.equalsIgnoreCase(type.name)) { return type; } else if (type.isQualifiedType() || type.isComplexType()) { if (name.toUpperCase().startsWith(type.name)) { return type; } } } throw new IllegalArgumentException("Unrecognized type name: " + name); }
public TypeDescriptor(String typeName) { this.type = Type.getType(typeName); if (this.type.isComplexType()) { this.typeName = typeName; } else if (this.type.isQualifiedType()) { PrimitiveTypeInfo pti = TypeInfoFactory.getPrimitiveTypeInfo(typeName); setTypeQualifiers(TypeQualifiers.fromTypeInfo(pti)); } }
public TypeDescriptor(String typeName) { this.type = Type.getType(typeName); if (this.type.isComplexType()) { this.typeName = typeName; } else if (this.type.isQualifiedType()) { PrimitiveTypeInfo pti = TypeInfoFactory.getPrimitiveTypeInfo(typeName); setTypeQualifiers(TypeQualifiers.fromTypeInfo(pti)); } }
public TypeDescriptor(String typeName) { this.type = Type.getType(typeName); if (this.type.isComplexType()) { this.typeName = typeName; } else if (this.type.isQualifiedType()) { PrimitiveTypeInfo pti = TypeInfoFactory.getPrimitiveTypeInfo(typeName); setTypeQualifiers(TypeQualifiers.fromTypeInfo(pti)); } }
public TypeDescriptor(String typeName) { this.type = Type.getType(typeName); if (this.type.isComplexType()) { this.typeName = typeName; } else if (this.type.isQualifiedType()) { PrimitiveTypeInfo pti = TypeInfoFactory.getPrimitiveTypeInfo(typeName); setTypeQualifiers(TypeQualifiers.fromTypeInfo(pti)); } }