public override RelaxngDatatype GetDatatype (string name, string ns, RelaxngParamList parameters) {
			// TODO: parameter support (write schema and get type)

			RelaxngDatatypeProvider p = table [ns] as RelaxngDatatypeProvider;
			if (p == null)
				return null;
			return p.GetDatatype (name, ns, parameters);
		}
		public override RelaxngDatatype GetDatatype(string name, string ns, RelaxngParamList parameters)
		{
			switch (name)
			{
			case "mytype":
			    return new MyType();
			}
			return null;
		}
示例#3
0
        public override RelaxngDatatype GetDatatype(string name, string ns, RelaxngParamList parameters)
        {
            // TODO: parameter support (write schema and get type)

            RelaxngDatatypeProvider p = table [ns] as RelaxngDatatypeProvider;

            if (p == null)
            {
                return(null);
            }
            return(p.GetDatatype(name, ns, parameters));
        }
		public override RelaxngDatatype GetDatatype (string name, string ns, RelaxngParamList parameters)
		{
			if (ns != String.Empty)
				throw new RelaxngException ("Not supported data type URI");
			if (parameters != null && parameters.Count > 0)
				throw new RelaxngException ("Parameter is not allowed for this datatype: " + name);

			switch (name) {
			case "string":
				return stringType;
			case "token":
				return tokenType;
			}
			return null;
		}
        public override RelaxngDatatype GetDatatype(string name, string ns, RelaxngParamList parameters)
        {
            if (ns != String.Empty)
            {
                throw new RelaxngException("Not supported data type URI");
            }
            if (parameters != null && parameters.Count > 0)
            {
                throw new RelaxngException("Parameter is not allowed for this datatype: " + name);
            }

            switch (name)
            {
            case "string":
                return(stringType);

            case "token":
                return(tokenType);
            }
            return(null);
        }
 public abstract RelaxngDatatype GetDatatype(string name, string ns, RelaxngParamList parameters);
		public abstract RelaxngDatatype GetDatatype (string name, string ns, RelaxngParamList parameters);