FDO .NET API Reference Feature Data Objects

mgXmlElementMapping.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\Commands\Schema\mgPhysicalElementMapping.h"
00022 
00023 class FdoXmlElementMapping;
00024 
00025 BEGIN_NAMESPACE_OSGEO_FDO_XML
00026 public __gc class XmlClassMapping;
00027 
00028 /// \ingroup (OSGeoFDOXml)
00029 /// \brief
00030 /// XmlElementMapping describes GML to FDO mappings for a particular GML Schema
00031 /// element. Only mappings that cannot be represented in FDO are described.
00032 public __gc class XmlElementMapping : public NAMESPACE_OSGEO_FDO_COMMANDS_SCHEMA::PhysicalElementMapping
00033 {
00034 public:
00035     /// \brief
00036     /// Constructs an object describing the GML-FDO mappings for a GML element
00037     /// 
00038     /// \param name 
00039     /// Input element name
00040     /// 
00041     XmlElementMapping(System::String* name);
00042 
00043     /// \brief
00044     /// Sets the class mapping for this element. The class mapping provides
00045     /// information about the FDO Class for this element's type.
00046     /// 
00047     /// \param classMapping 
00048     /// Input the class mapping
00049     /// 
00050     __property System::Void set_ClassMapping(NAMESPACE_OSGEO_FDO_XML::XmlClassMapping* classMapping);
00051 
00052     /// \brief
00053     /// Gets the class mapping for this element. The class mapping provides
00054     /// information about the FDO Class for this element's type.
00055     /// 
00056     /// \return
00057     /// Returns NAMESPACE_OSGEO_FDO_XML::XmlClassMapping.
00058     /// 
00059     __property NAMESPACE_OSGEO_FDO_XML::XmlClassMapping* get_ClassMapping();
00060 
00061     /// \brief
00062     /// Sets the element class name to a dangling reference. This function can be
00063     /// used to reference a class that has no NAMESPACE_OSGEO_FDO_XML::XmlClassMapping object.
00064     /// 
00065     /// \param className 
00066     /// Input name of the FDO class corresponding to the 
00067     /// element's type.
00068     /// 
00069     __property System::Void set_ClassName(System::String* className);
00070 
00071     /// \brief
00072     /// Gets the FDO Class name.
00073     /// 
00074     /// \return
00075     /// Returns System::String.
00076     /// 
00077     __property System::String* get_ClassName();
00078 
00079     /// \brief
00080     /// Sets the schema name for a dangling reference to an element's class. 
00081     /// 
00082     /// \param schemaName 
00083     /// Input name of the Feature Schema containing the FDO class. If
00084     /// L"" then it defaults to the schema containing this element.
00085     /// 
00086     __property System::Void set_SchemaName(System::String* schemaName);
00087 
00088     /// \brief
00089     /// Gets the Schema Name for the FDO Class.
00090     /// 
00091     /// \return
00092     /// Returns System::String.
00093     /// 
00094     __property System::String* get_SchemaName();
00095 
00096     /// \brief
00097     /// Sets the namespace URI for this element. 
00098     /// 
00099     /// \param value 
00100     /// Input a URI. Defaults to the targetNamespace
00101     /// for the schema containing this element.
00102     /// 
00103     __property System::Void set_GmlUri(System::String* value);
00104 
00105     /// \brief
00106     /// Gets the URI for the referenced element. 
00107     /// 
00108     /// \return
00109     /// Returns System::String.
00110     /// 
00111     __property System::String* get_GmlUri();
00112 
00113     /// \brief
00114     /// Sets the local name for this element. 
00115     /// 
00116     /// \param value 
00117     /// Input the local name (unprefixed name) of this
00118     /// element. Defaults to the element name.
00119     /// 
00120     __property System::Void set_GmlLocalName(System::String* value);
00121 
00122     /// \brief
00123     /// Gets the URI for the referenced element. 
00124     /// 
00125     /// \return
00126     /// Returns System::String. L"" if this element does not reference
00127     /// another element.
00128     /// 
00129     __property System::String* get_GmlLocalName();
00130 
00131 public private:
00132     XmlElementMapping(System::IntPtr unmanaged, System::Boolean autoDelete) : NAMESPACE_OSGEO_FDO_COMMANDS_SCHEMA::PhysicalElementMapping(unmanaged, autoDelete)
00133     {
00134         
00135     }
00136 
00137     inline FdoXmlElementMapping* GetImpObj();
00138 };
00139 
00140 END_NAMESPACE_OSGEO_FDO_XML
00141 
00142 

Comments or suggestions? Send us feedback.