Esempio n. 1
0
        public BuiltinTypeDefinition(QName name, Type implementationClass, Type nativeType, BuiltinTypeDefinition baseType)
        {
            this.name = name;
            this.implementationClass = implementationClass;
            this.nativeType          = nativeType;
            this.baseType            = baseType;

            //	Method m = null;
            try
            {
                //		m = implementationClass != null ? implementationClass.GetMethod("constructor", typeof(ResultSequence)) : null;
            }
            catch
            {
                throw;
            }
            //		this.constructorMethod = m;

//m = null;
            try
            {
                //			m = implementationClass != null ? implementationClass.GetMethod("constructor", nativeType) : null;
            }
            catch
            {
                throw;
            }
            //		this.constructorFromNativeMethod = m;
        }
 public BuiltinListTypeDefinition(string name, BuiltinTypeDefinition baseType, BuiltinAtomicTypeDefinition itemType) : base(name, null, typeof(ICollection), baseType)
 {
     this.itemType = itemType;
 }
Esempio n. 3
0
 public BuiltinTypeDefinition(string name, Type implementationClass, Type nativeType, BuiltinTypeDefinition baseType) : this(new QName(XS_NS, name), implementationClass, nativeType, baseType)
 {
 }
Esempio n. 4
0
 public BuiltinTypeDefinition(string name, BuiltinTypeDefinition baseType) : this(name, null, null, baseType)
 {
 }
 public BuiltinAtomicTypeDefinition(string name, Type implementationClass, Type nativeType, BuiltinTypeDefinition baseType) : base(name, implementationClass, nativeType, baseType)
 {
 }
Esempio n. 6
0
            //		{
            //			addType(XS_ANYTYPE);
            //			addType(XS_UNTYPED);
            //			addType(XS_ANYSIMPLETYPE);
            //			addType(XS_ANYATOMICTYPE);
            //
            //			addType(XS_UNTYPEDATOMIC);
            //
            //			addType(XS_DATETIME);
            //			addType(XS_DATE);
            //			addType(XS_TIME);
            //			addType(XS_DURATION);
            //			addType(XS_YEARMONTHDURATION);
            //			addType(XS_DAYTIMEDURATION);
            //			addType(XS_FLOAT);
            //			addType(XS_DOUBLE);
            //			addType(XS_DECIMAL);
            //			addType(XS_INTEGER);
            //			addType(XS_NONPOSITIVEINTEGER);
            //			addType(XS_NEGATIVEINTEGER);
            //			addType(XS_LONG);
            //			addType(XS_INT);
            //			addType(XS_SHORT);
            //			addType(XS_BYTE);
            //			addType(XS_NONNEGATIVEINTEGER);
            //			addType(XS_UNSIGNEDLONG);
            //			addType(XS_UNSIGNEDINT);
            //			addType(XS_UNSIGNEDSHORT);
            //			addType(XS_UNSIGNEDBYTE);
            //			addType(XS_POSITIVEINTEGER);
            //			addType(XS_GYEARMONTH);
            //			addType(XS_GYEAR);
            //			addType(XS_GMONTHDAY);
            //			addType(XS_GDAY);
            //			addType(XS_GMONTH);
            //			addType(XS_STRING);
            //			addType(XS_NORMALIZEDSTRING);
            //			addType(XS_TOKEN);
            //			addType(XS_LANGUAGE);
            //			addType(XS_NMTOKEN);
            //			addType(XS_NAME);
            //			addType(XS_NCNAME);
            //			addType(XS_ID);
            //			addType(XS_IDREF);
            //			addType(XS_ENTITY);
            //			addType(XS_BOOLEAN);
            //			addType(XS_BASE64BINARY);
            //			addType(XS_HEXBINARY);
            //			addType(XS_ANYURI);
            //			addType(XS_QNAME);
            //			addType(XS_NOTATION);
            //			addType(XS_IDREFS);
            //			addType(XS_NMTOKENS);
            //			addType(XS_ENTITIES);
            //		}

            private void addType(BuiltinTypeDefinition btd)
            {
                builtinTypes[btd.Name] = btd;
            }