Ejemplo n.º 1
0
        internal virtual bool PropertyIsWritable(string propertyName)
        {
            AttributeConverterEntry converterEntry = this.GetConverterEntry(propertyName);

            if (converterEntry == null)
            {
                if (this._sessionInfo == null)
                {
                    return(true);
                }
                else
                {
                    this.InitSchemaUtil(this._sessionInfo);
                    return(this._schemaUtil.AttributeIsWritable(propertyName));
                }
            }
            else
            {
                TypeAdapterAccess adapterAccessLevel = converterEntry.AdapterAccessLevel;
                if (adapterAccessLevel == TypeAdapterAccess.Write)
                {
                    return(true);
                }
                else
                {
                    return(adapterAccessLevel == TypeAdapterAccess.ReadWrite);
                }
            }
        }
Ejemplo n.º 2
0
        internal virtual bool PropertyIsReadable(string propertyName)
        {
            AttributeConverterEntry converterEntry = this.GetConverterEntry(propertyName);

            if (converterEntry == null)
            {
                return(true);
            }
            else
            {
                TypeAdapterAccess adapterAccessLevel = converterEntry.AdapterAccessLevel;
                if (adapterAccessLevel == TypeAdapterAccess.Read)
                {
                    return(true);
                }
                else
                {
                    return(adapterAccessLevel == TypeAdapterAccess.ReadWrite);
                }
            }
        }
Ejemplo n.º 3
0
        internal virtual bool PropertyIsSingleValue(string propertyName)
        {
            AttributeConverterEntry converterEntry = this.GetConverterEntry(propertyName);

            if (converterEntry == null)
            {
                if (this._sessionInfo == null)
                {
                    return(false);
                }
                else
                {
                    this.InitSchemaUtil(this._sessionInfo);
                    return(this._schemaUtil.AttributeIsSingleValue(propertyName));
                }
            }
            else
            {
                return(converterEntry.IsSingleValue);
            }
        }
Ejemplo n.º 4
0
        internal virtual Type GetPropertyType(string propertyName)
        {
            AttributeConverterEntry converterEntry = this.GetConverterEntry(propertyName);

            if (converterEntry == null)
            {
                if (this._sessionInfo == null)
                {
                    return(typeof(object));
                }
                else
                {
                    this.InitSchemaUtil(this._sessionInfo);
                    return(this._schemaUtil.GetAttributeDotNetType(propertyName, typeof(object)));
                }
            }
            else
            {
                return(converterEntry.AttributeType);
            }
        }