示例#1
0
        /// <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)));
        }
示例#2
0
 internal XdmAtomicType(JAtomicType type)
 {
     this.type = type;
 }
示例#3
0
文件: Types.cs 项目: nuxleus/saxonica
 internal XdmAtomicType(JAtomicType type)
 {
     this.type = type;
 }