/// <summary> /// Get an XdmAtomicType object representing a built-in atomic type with a given name /// </summary> /// <param name="name">The name of the required built-in atomic type</param> /// <returns>An XdmAtomicType object representing the built-in atomic type with the supplied name. /// Returns null if there is no built-in atomic type with this name. /// It is undefined whether two requests for the same built-in type will return the same object.</returns> public static XdmAtomicType BuiltInAtomicType(QName name) { int fingerprint = JStandardNames.getFingerprint(name.Uri, name.LocalName); if (fingerprint == -1) { return(null); } JAtomicType jat = (JAtomicType)JBuiltInType.getSchemaType(fingerprint); if (jat == null) { return(null); } return(new XdmAtomicType((JAtomicType)JBuiltInType.getSchemaType(fingerprint))); }
internal XdmAtomicType(JAtomicType type) { this.type = type; }