FDO .NET API Reference Feature Data Objects

mgPropertyValueConstraintRange.h

Go to the documentation of this file.
00001 /*
00002 * Copyright (C) 2004-2006  Autodesk, Inc.
00003 * 
00004 * This library is free software; you can redistribute it and/or
00005 * modify it under the terms of version 2.1 of the GNU Lesser
00006 * General Public License as published by the Free Software Foundation.
00007 * 
00008 * This library is distributed in the hope that it will be useful,
00009 * but WITHOUT ANY WARRANTY; without even the implied warranty of
00010 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00011 * Lesser General Public License for more details.
00012 * 
00013 * You should have received a copy of the GNU Lesser General Public
00014 * License along with this library; if not, write to the Free Software
00015 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
00016 *
00017 */
00018 
00019 #pragma once
00020 
00021 #include "FDO\Schema\mgPropertyValueConstraintType.h"
00022 
00023 class FdoPropertyValueConstraintRange;
00024 
00025 BEGIN_NAMESPACE_OSGEO_FDO_EXPRESSION
00026 public __gc class DataValue;
00027 END_NAMESPACE_OSGEO_FDO_EXPRESSION
00028 
00029 BEGIN_NAMESPACE_OSGEO_FDO_SCHEMA
00030 
00031 /// \ingroup (OSGeoFDOSchema)
00032 /// \brief
00033 /// PropertyValueConstraintRange is used to specify minimum and / or maximum allowed values for a particular property. 
00034 /// It can be used for all data property types except for Boolean, BLOB, or CLOB.
00035 /// One or the other or both of MinValue and MaxValue must be specified. If both are specified, then MaxValue must be greater 
00036 /// than or equal to MinValue and if either MinInclusive or MaxInclusive are false, then MaxValue must be greater than MinValue. 
00037 /// MinValue and MaxValue if specified must be valid values for the property type. E.g. if the property is decimal(4,0), 
00038 /// then the maximum possible MaxValue is 9999.
00039 /// If the data property definition includes a non-null default value, then this constraint is applied to that value as well.
00040 /// If the data property definition allows nulls, a null value is considered as being valid regardless of the range constraint.
00041 public __gc class PropertyValueConstraintRange : public NAMESPACE_OSGEO_FDO_SCHEMA::PropertyValueConstraint
00042 {
00043 public private:
00044     PropertyValueConstraintRange(System::IntPtr unmanaged, System::Boolean autoDelete);
00045 
00046     inline FdoPropertyValueConstraintRange* GetImpObj();
00047 
00048 public:    
00049     /// \brief
00050     /// Constructs an empty instance of an PropertyValueConstraintRange.
00051     /// 
00052     /// \return
00053     /// Returns an PropertyValueConstraintRange
00054     /// 
00055     PropertyValueConstraintRange();
00056 
00057     /// \brief
00058     /// Constructs and populates an instance of an PropertyValueConstraintRange.
00059     /// 
00060     /// \param minValue 
00061     /// Minimum allowed value
00062     /// \param maxValue 
00063     /// Maximum allowed value
00064     /// 
00065     /// \return
00066     /// Returns an PropertyValueConstraintRange
00067     /// 
00068     PropertyValueConstraintRange(NAMESPACE_OSGEO_FDO_EXPRESSION::DataValue* minValue, NAMESPACE_OSGEO_FDO_EXPRESSION::DataValue* maxValue );
00069     
00070     /// \brief
00071     /// Get the minimum allowed value. The type of this is the same as the type of the property. 
00072     /// E.g. if the property is int32, then this value is int32.
00073     /// 
00074     /// \return
00075     /// Returns the minimum value
00076     /// 
00077     __property NAMESPACE_OSGEO_FDO_EXPRESSION::DataValue* get_MinValue();
00078 
00079     /// \brief
00080     /// Set the minimum allowed value.
00081     /// 
00082     /// \param value 
00083     /// Minimum allowed value
00084     /// 
00085     /// \return
00086     /// Returns nothing
00087     /// 
00088     __property System::Void set_MinValue(NAMESPACE_OSGEO_FDO_EXPRESSION::DataValue* value);
00089 
00090     /// \brief
00091     /// Returns a bool to indicate if the minimum value is inclusive or exclusive. This is the difference between ?=?and ?? 
00092     /// This is a boolean type where true means inclusive.
00093     /// 
00094     /// \return
00095     /// Returns true if the value is inclusive. false otherwise
00096     /// 
00097     __property System::Boolean get_MinInclusive();
00098 
00099     /// \brief
00100     /// Set the minimum value to inclusive or exclusive. This is the difference between ?=? and ?? 
00101     /// 
00102     /// \param value 
00103     /// This is a boolean type where true means inclusive.
00104     /// 
00105     /// \return
00106     /// Returns nothing
00107     /// 
00108     __property System::Void set_MinInclusive(System::Boolean value);
00109 
00110     /// \brief
00111     /// Get the maximum allowed value. The type of this is the same as the type of the property. 
00112     /// E.g. if the property is int32, then this value is int32.
00113     /// 
00114     /// \return
00115     /// Returns the maximum value
00116     /// 
00117     __property NAMESPACE_OSGEO_FDO_EXPRESSION::DataValue* get_MaxValue();
00118 
00119     /// \brief
00120     /// Set the maximum allowed value.
00121     /// 
00122     /// \param value 
00123     /// Maximum allowed value
00124     /// 
00125     /// \return
00126     /// Returns nothing
00127     /// 
00128     __property System::Void set_MaxValue(NAMESPACE_OSGEO_FDO_EXPRESSION::DataValue* value);
00129 
00130     /// \brief
00131     /// Returns a bool to indicate if the maximum value is inclusive or exclusive. This is the difference between ?=?and ?? 
00132     /// This is a boolean type where true means inclusive.
00133     /// 
00134     /// \return
00135     /// Returns true if the value is inclusive. false otherwise
00136     /// 
00137     __property System::Boolean get_MaxInclusive();
00138 
00139     /// \brief
00140     /// Returns a bool to indicate if the maximum value is inclusive or exclusive. This is the difference between ?=?and ?? 
00141     /// This is a boolean type where true means inclusive.
00142     /// 
00143     /// \return
00144     /// Returns true if the value is inclusive. false otherwise
00145     /// 
00146     __property System::Void set_MaxInclusive(System::Boolean value);
00147 
00148 };
00149 
00150 END_NAMESPACE_OSGEO_FDO_SCHEMA
00151 
00152 

Comments or suggestions? Send us feedback.