/** * Get the SimpleType object for a built-in simple type (atomic type or list type) * * @param namespace the namespace URI of the type * @param localName the local name of the type * @return the SimpleType, or null if not found */ /*@Nullable*/ public static SimpleType getBuiltInSimpleType(String namespace, String localName) { SchemaType t = BuiltInType.getSchemaType( StandardNames.getFingerprint(namespace, localName)); if (t instanceof SimpleType && ((SimpleType) t).isBuiltInType()) { return (SimpleType) t; } else { return null; } }
/** * Get the SimpleType object for a built-in simple type (atomic type or list type) * * @param namespace the namespace URI of the type * @param localName the local name of the type * @return the SimpleType, or null if not found */ /*@Nullable*/ public static SimpleType getBuiltInSimpleType(String namespace, String localName) { SchemaType t = BuiltInType.getSchemaType( StandardNames.getFingerprint(namespace, localName)); if (t instanceof SimpleType && ((SimpleType) t).isBuiltInType()) { return (SimpleType) t; } else { return null; } }