当前位置: 首页>>代码示例>>C#>>正文


C# IElementDef类代码示例

本文整理汇总了C#中IElementDef的典型用法代码示例。如果您正苦于以下问题:C# IElementDef类的具体用法?C# IElementDef怎么用?C# IElementDef使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。


IElementDef类属于命名空间,在下文中一共展示了IElementDef类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: SifDataObjectXml

 /// <summary>  Constructs a SifDataObject with XML content</summary>
 /// <param name="version">The version of SIF to associate with this object</param>
 /// <param name="def">The ElementDef constant from the SifDtd class identifying
 /// the data object represented by the XML</param>
 /// <param name="xml">The XML content</param>
 public SifDataObjectXml( SifVersion version,
                          IElementDef def,
                          String xml )
     : base(version, def)
 {
     fXml = xml;
 }
开发者ID:rafidzal,项目名称:OpenADK-csharp,代码行数:12,代码来源:SIFDataObjectXML.cs

示例2: WriteElement

        public static void WriteElement(IScope scope, IWriter writer, object obj, IElementDef def, XName name)
        {
            if (name == null) name = def.Name;

            var attributes = from attr in def.Attributes
                             let value = attr.GetValue(obj)
                             where value != null && !attr.IsDefaultValue(value)
                             let stringValue = ToString(scope, value)
                             where !string.IsNullOrEmpty(stringValue)
                             select new { attr.Name, Value = stringValue };

            var elements = from elem in def.Elements
                           let value = elem.GetValue(obj)
                           where value != null && !elem.IsDefaultValue(value)
                           select new { elem.Name, Value = value, Definition = elem };

            // TODO do not write non-root empty elements

            writer.WriteStartElement(name);

            foreach (var attr in attributes)
            {
                writer.WriteAttributeString(attr.Name, attr.Value);
            }

            foreach (var elem in elements)
            {
                WriteValue(scope, writer, elem.Definition, elem.Name, elem.Value);
            }

            writer.WriteEndElement();
        }
开发者ID:sergeyt,项目名称:xserializer,代码行数:32,代码来源:Serializer.cs

示例3: AddField

 /// <summary>
 /// 
 /// </summary>
 /// <param name="def"></param>
 /// <param name="field"></param>
 public void AddField(IElementDef def, SQLField field)
 {
     if (fFields == null)
     {
         fFields = new Dictionary<Object, Object>();
     }
     fFields[def] = field;
 }
开发者ID:rafidzal,项目名称:OpenADK-csharp,代码行数:13,代码来源:SQLQueryFormatter.cs

示例4: XPathSurrogate

 public XPathSurrogate( IElementDef def,
                        String xpathMacro )
     : base(def)
 {
     String[] macroParts = xpathMacro.Split( '=' );
     fLegacyXpath = macroParts[0];
     fValueXpath = macroParts[1];
 }
开发者ID:rafidzal,项目名称:OpenADK-csharp,代码行数:8,代码来源:XPathSurrogate.cs

示例5: TimeStampSurrogate

 public TimeStampSurrogate( IElementDef def )
     : base(def)
 {
     if ( def == InfraDTD.SIF_HEADER_SIF_TIMESTAMP )
     {
         fDateElement = "SIF_Date";
         fTimeElement = "SIF_Time";
     }
 }
开发者ID:rafidzal,项目名称:OpenADK-csharp,代码行数:9,代码来源:TimeStampSurrogate.cs

示例6: ReadElement

 public static void ReadElement(IScope scope, IReader reader, IElementDef def, object obj)
 {
     foreach (var p in ReadProperties(scope, reader, obj, def))
     {
         var property = p.Key;
         if (!property.IsReadOnly)
             property.SetValue(obj, p.Value);
     }
 }
开发者ID:sergeyt,项目名称:xserializer,代码行数:9,代码来源:Deserializer.cs

示例7: MappingsContext

 /**
  * @param mappings
  * @param direction
  * @param version
  * @param elementType
  */
 private MappingsContext(
     Mappings mappings,
     MappingDirection direction,
     SifVersion version,
     IElementDef elementType)
 {
     fMappings = mappings;
     fDirection = direction;
     fSIFVersion = version;
     fElementDef = elementType;
 }
开发者ID:rafidzal,项目名称:OpenADK-csharp,代码行数:17,代码来源:MappingsContext.cs

示例8: ElementDefAlias

 /// <summary>
 /// Constructs an ElementDefAlias
 /// </summary>
 /// <param name="parent">The parent of this element</param>
 /// <param name="name">The name of the element</param>
 /// <param name="tag">The name of the element</param>
 /// <param name="className">The name of the class to create</param>
 /// <param name="localPackage">The name of the package where the corresponding
 /// DataObject class is defined, excluding the <c>OpenADK.Library</c> prefix</param>
 /// <param name="sequence">The zero-based ordering of this element within its parent
 /// or -1 if a top-level element</param>
 /// <param name="earliestVersion">The earliest version of SIF supported by this element</param>
 public ElementDefAlias(
     IElementDef parent,
     string name,
     string tag,
     string className,
     int sequence,
     string localPackage,
     SifVersion earliestVersion )
     : base(parent, name, tag, sequence, localPackage, sequence, earliestVersion, null)
 {
     fClassName = className;
 }
开发者ID:rafidzal,项目名称:OpenADK-csharp,代码行数:24,代码来源:ElementDefAlias.cs

示例9: profileStart

        /// <summary>
        /// Start recording metric data 
        /// </summary>
        /// <param name="oid"></param>
        /// <param name="objType"></param>
        /// <param name="msgId"></param>
        public static void profileStart(String oid, IElementDef objType, String msgId)
        {
            ProfilerUtils.
             Adk.Log.Debug("SIFProfilerClient instance name: " + fProfName);
             ProfilerUtils.setProfilerSessionId(sessionId);
             ADK.getLog().debug("SIFProfilerClient session ID: " + fSessionId);

             OpenADK.sifprofiler.SIFProfilerClient c = com.OpenADK.sifprofiler.SIFProfilerClient.getInstance(fProfName);
             if (c != null)
             {
            short objTypeCode = c.getObjectTypeCode(objType);
            c.metricStart(oid + "." + objTypeCode, msgId, objTypeCode);
             }
        }
开发者ID:rafidzal,项目名称:OpenADK-csharp,代码行数:20,代码来源:ProfilerUtils.cs

示例10: DefineAttribute

        /// <summary>
        /// Define an attribute of a SIF Data Object.
        /// </summary>
        /// <param name="parent">The IElementDef constant identifying the parent data object</param>
        /// <param name="name">The tag name of the attribute</param>
        /// <param name="sequence">The zero-based sequence number of the attribute</param>
        /// <param name="earliestVersion">The earliest version of the specification this attribute should
        /// be recognized in</param>
        /// <returns>An IElementDef instance encapsulating metadata for this attribute</returns>
        public IElementDef DefineAttribute( IElementDef parent,
                                            String name,
                                            int sequence,
                                            SifVersion earliestVersion )
        {
            if ( parent == null ) {
                throw new ArgumentException( "Parent cannot be null" );
            }

            IElementDef ed =
                new ElementDefImpl
                    ( parent, name, null, sequence, "custom", ElementDefImpl.FD_ATTRIBUTE,
                      earliestVersion, SifVersion.LATEST );
            SifDtd.sElementDefs.Add( parent.Name + "_" + name, ed );
            return ed;
        }
开发者ID:pgodwin,项目名称:OpenADK-csharp,代码行数:25,代码来源:AdkMetadata.cs

示例11: addChild

 /// <summary>
 /// Adds a child to this ElementDef
 /// </summary>
 /// <param name="child"></param>
 protected internal void addChild(IElementDef child)
 {
     // ElementDefAlias has to add itself to a parent later because
     // it's Name property returns null in the constructor
     if (child.Name == null)
     {
         return;
     }
     if (fChildren == null)
     {
         fChildren = new Dictionary<String, IElementDef>();
     }
     fChildren[child.Name] = child;
 }
开发者ID:rafidzal,项目名称:OpenADK-csharp,代码行数:18,代码来源:ElementDefImpl.cs

示例12: ElementDefImpl

        /// <summary>
        /// The real constructor
        /// </summary>
        /// <param name="parent"></param>
        /// <param name="name"></param>
        /// <param name="tag"></param>
        /// <param name="sequence"></param>
        /// <param name="localPackage"></param>
        /// <param name="variant"></param>
        /// <param name="flags"></param>
        /// <param name="earliestVersion"></param>
        /// <param name="latestVersion"></param>
        /// <param name="typeConverter"></param>
        public ElementDefImpl(IElementDef parent,
                              string name,
                              string tag,
                              int sequence,
                              string localPackage,
                              string variant,
                              int flags,
                              SifVersion earliestVersion,
                              SifVersion latestVersion,
                              TypeConverter typeConverter)
        {
            fName = name;

            if ((flags & FD_ATTRIBUTE) != 0)
            {
                // If this is an attribute, it is also a simple field
                flags |= FD_FIELD;
            }

            fFlags = flags;
            fPackage = localPackage;

            fVariant = variant;
            fParent = (ElementDefImpl) parent;
            fTypeConverter = typeConverter;

            DefineVersionInfo(earliestVersion, tag == null ? name : tag, sequence, flags);
            fLatestVersion = latestVersion;

            if (fParent != null)
            {
                fParent.addChild(this);
            }
        }
开发者ID:rafidzal,项目名称:OpenADK-csharp,代码行数:47,代码来源:ElementDefImpl.cs

示例13: SurrogateVersionInfo

 public SurrogateVersionInfo(string renderAs, string surrogateString, IElementDef def)
     : base(renderAs)
 {
     fInitializer = surrogateString;
     fDef = def;
 }
开发者ID:rafidzal,项目名称:OpenADK-csharp,代码行数:6,代码来源:ElementDefImpl.cs

示例14: Load

        // Field elements of TTTEACHERREFID (0 fields)
        public override void Load()
        {
            //  Objects defined by this SDO Library...

            CONTACTPERSONAL = new ElementDefImpl( null, "ContactPersonal", null, 0, SifDtd.SCHOOL, "uk", (ElementDefImpl.FD_OBJECT), SifVersion.SIF20, SifVersion.SIF26 );
            HEADTEACHERINFO = new ElementDefImpl( null, "HeadTeacherInfo", null, 0, SifDtd.SCHOOL, "uk", 0, SifVersion.SIF20, SifVersion.SIF26 );
            LAINFO = new ElementDefImpl( null, "LAInfo", null, 0, SifDtd.SCHOOL, "uk", (ElementDefImpl.FD_OBJECT), SifVersion.SIF20, SifVersion.SIF26 );
            LESSON = new ElementDefImpl( null, "Lesson", null, 0, SifDtd.SCHOOL, "uk", (ElementDefImpl.FD_OBJECT), SifVersion.SIF23, SifVersion.SIF26 );
            PERSONPICTURE = new ElementDefImpl( null, "PersonPicture", null, 0, SifDtd.SCHOOL, "uk", (ElementDefImpl.FD_OBJECT), SifVersion.SIF20, SifVersion.SIF26 );
            PICTURESOURCE = new ElementDefImpl( null, "PictureSource", null, 0, SifDtd.SCHOOL, "uk", 0, SifVersion.SIF20, SifVersion.SIF26, SifTypeConverters.STRING );
            SCHEDULEINFO = new ElementDefImpl( null, "ScheduleInfo", null, 0, SifDtd.SCHOOL, "uk", 0, SifVersion.SIF20, SifVersion.SIF26 );
            SCHEDULEINFOLIST = new ElementDefImpl( null, "ScheduleInfoList", null, 0, SifDtd.SCHOOL, "uk", 0, SifVersion.SIF20, SifVersion.SIF26 );
            SCHOOLGROUP = new ElementDefImpl( null, "SchoolGroup", null, 0, SifDtd.SCHOOL, "uk", (ElementDefImpl.FD_OBJECT), SifVersion.SIF20, SifVersion.SIF26 );
            SCHOOLGROUPTYPE = new ElementDefImpl( null, "SchoolGroupType", null, 0, SifDtd.SCHOOL, "uk", (ElementDefImpl.FD_OBJECT), SifVersion.SIF20, SifVersion.SIF26 );
            SCHOOLINFO = new ElementDefImpl( null, "SchoolInfo", null, 0, SifDtd.SCHOOL, "uk", (ElementDefImpl.FD_OBJECT), SifVersion.SIF20, SifVersion.SIF26 );
            TEACHER = new ElementDefImpl( null, "Teacher", null, 0, SifDtd.SCHOOL, "uk", 0, SifVersion.SIF20, SifVersion.SIF26 );
            TEACHERIDLIST = new ElementDefImpl( null, "TeacherIDList", null, 0, SifDtd.SCHOOL, "uk", 0, SifVersion.SIF23, SifVersion.SIF26 );
            TEACHERLIST = new ElementDefImpl( null, "TeacherList", null, 0, SifDtd.SCHOOL, "uk", 0, SifVersion.SIF20, SifVersion.SIF26 );
            TERMINFO = new ElementDefImpl( null, "TermInfo", null, 0, SifDtd.SCHOOL, "uk", (ElementDefImpl.FD_OBJECT), SifVersion.SIF20, SifVersion.SIF26 );
            TTTEACHERREFID = new ElementDefImpl( null, "TTTeacherRefId", null, 0, SifDtd.SCHOOL, "uk", 0, SifVersion.SIF23, SifVersion.SIF26, SifTypeConverters.STRING );

            // <ContactPersonal> fields (2 entries)
            SchoolDTD.CONTACTPERSONAL_REFID = new ElementDefImpl( CONTACTPERSONAL, "RefId", null, 1, SifDtd.SCHOOL, "uk", (ElementDefImpl.FD_ATTRIBUTE), SifVersion.SIF20, SifVersion.SIF26, SifTypeConverters.STRING );
            SchoolDTD.CONTACTPERSONAL_PERSONALINFORMATION = new ElementDefImpl( CONTACTPERSONAL, "PersonalInformation", null, 2, SifDtd.COMMON, "uk", 0, SifVersion.SIF20, SifVersion.SIF26 );
            CONTACTPERSONAL_SIF_EXTENDEDELEMENTS = new ElementDefImpl( CONTACTPERSONAL, "SIF_ExtendedElements", null, 127, SifDtd.GLOBAL, null, (0), SifVersion.SIF15r1, SifVersion.SIF26 );
            CONTACTPERSONAL_SIF_METADATA = new ElementDefImpl( CONTACTPERSONAL, "SIF_Metadata", null, 128, SifDtd.DATAMODEL, "uk", (0), SifVersion.SIF20, SifVersion.SIF26 );

            // <HeadTeacherInfo> fields (2 entries)
            SchoolDTD.HEADTEACHERINFO_CONTACTNAME = new ElementDefImpl( HEADTEACHERINFO, "ContactName", null, 1, SifDtd.SCHOOL, "uk", (ElementDefImpl.FD_FIELD), SifVersion.SIF20, SifVersion.SIF26, SifTypeConverters.STRING );
            SchoolDTD.HEADTEACHERINFO_CONTACTTITLE = new ElementDefImpl( HEADTEACHERINFO, "ContactTitle", null, 2, SifDtd.SCHOOL, "uk", (ElementDefImpl.FD_FIELD), SifVersion.SIF20, SifVersion.SIF26, SifTypeConverters.STRING );

            // <LAInfo> fields (10 entries)
            SchoolDTD.LAINFO_REFID = new ElementDefImpl( LAINFO, "RefId", null, 1, SifDtd.SCHOOL, "uk", (ElementDefImpl.FD_ATTRIBUTE), SifVersion.SIF20, SifVersion.SIF26, SifTypeConverters.STRING );
            SchoolDTD.LAINFO_LAID = new ElementDefImpl( LAINFO, "LAId", null, 2, SifDtd.SCHOOL, "uk", (ElementDefImpl.FD_FIELD), SifVersion.SIF20, SifVersion.SIF26, SifTypeConverters.STRING );
            SchoolDTD.LAINFO_LANAME = new ElementDefImpl( LAINFO, "LAName", null, 3, SifDtd.SCHOOL, "uk", (ElementDefImpl.FD_FIELD), SifVersion.SIF20, SifVersion.SIF26, SifTypeConverters.STRING );
            SchoolDTD.LAINFO_LAFULLNAME = new ElementDefImpl( LAINFO, "LAFullName", null, 4, SifDtd.SCHOOL, "uk", (ElementDefImpl.FD_FIELD), SifVersion.SIF20, SifVersion.SIF26, SifTypeConverters.STRING );
            SchoolDTD.LAINFO_LAURL = new ElementDefImpl( LAINFO, "LAURL", null, 5, SifDtd.SCHOOL, "uk", (ElementDefImpl.FD_FIELD), SifVersion.SIF20, SifVersion.SIF26, SifTypeConverters.STRING );
            SchoolDTD.LAINFO_LAADDRESS = new ElementDefAlias( LAINFO, "LAAddress", null, "Address", 6, SifDtd.COMMON, "uk", 0, SifVersion.SIF20, SifVersion.SIF26 );
            SchoolDTD.LAINFO_ADDRESSLIST = new ElementDefImpl( LAINFO, "AddressList", null, 7, SifDtd.COMMON, "uk", 0, SifVersion.SIF20, SifVersion.SIF26 );
            SchoolDTD.LAINFO_LAPHONENUMBER = new ElementDefAlias( LAINFO, "LAPhoneNumber", null, "PhoneNumber", 8, SifDtd.COMMON, "uk", 0, SifVersion.SIF20, SifVersion.SIF26 );
            SchoolDTD.LAINFO_PHONENUMBERLIST = new ElementDefImpl( LAINFO, "PhoneNumberList", null, 9, SifDtd.COMMON, "uk", 0, SifVersion.SIF20, SifVersion.SIF26 );
            SchoolDTD.LAINFO_LACONTACTLIST = new ElementDefAlias( LAINFO, "LAContactList", null, "ContactList", 10, SifDtd.COMMON, "uk", 0, SifVersion.SIF20, SifVersion.SIF26 );
            LAINFO_SIF_EXTENDEDELEMENTS = new ElementDefImpl( LAINFO, "SIF_ExtendedElements", null, 127, SifDtd.GLOBAL, null, (0), SifVersion.SIF15r1, SifVersion.SIF26 );
            LAINFO_SIF_METADATA = new ElementDefImpl( LAINFO, "SIF_Metadata", null, 128, SifDtd.DATAMODEL, "uk", (0), SifVersion.SIF20, SifVersion.SIF26 );

            // <Lesson> fields (9 entries)
            SchoolDTD.LESSON_REFID = new ElementDefImpl( LESSON, "RefId", null, 1, SifDtd.SCHOOL, "uk", (ElementDefImpl.FD_ATTRIBUTE), SifVersion.SIF23, SifVersion.SIF26, SifTypeConverters.STRING );
            SchoolDTD.LESSON_TTDAYID = new ElementDefImpl( LESSON, "TTDayId", null, 2, SifDtd.SCHOOL, "uk", (ElementDefImpl.FD_FIELD), SifVersion.SIF23, SifVersion.SIF26, SifTypeConverters.STRING );
            SchoolDTD.LESSON_PERIODINDEX = new ElementDefImpl( LESSON, "PeriodIndex", null, 3, SifDtd.SCHOOL, "uk", (ElementDefImpl.FD_FIELD), SifVersion.SIF23, SifVersion.SIF26, SifTypeConverters.INT );
            SchoolDTD.LESSON_TYPE = new ElementDefImpl( LESSON, "Type", null, 4, SifDtd.SCHOOL, "uk", (ElementDefImpl.FD_FIELD), SifVersion.SIF23, SifVersion.SIF26, SifTypeConverters.STRING );
            SchoolDTD.LESSON_LENGTH = new ElementDefImpl( LESSON, "Length", null, 5, SifDtd.SCHOOL, "uk", (ElementDefImpl.FD_FIELD), SifVersion.SIF23, SifVersion.SIF26, SifTypeConverters.INT );
            SchoolDTD.LESSON_TEACHINGGROUPREFID = new ElementDefImpl( LESSON, "TeachingGroupRefId", null, 6, SifDtd.SCHOOL, "uk", (ElementDefImpl.FD_FIELD), SifVersion.SIF23, SifVersion.SIF26, SifTypeConverters.STRING );
            SchoolDTD.LESSON_NTCODEREF = new ElementDefImpl( LESSON, "NTCodeRef", null, 7, SifDtd.SCHOOL, "uk", (ElementDefImpl.FD_FIELD), SifVersion.SIF23, SifVersion.SIF26, SifTypeConverters.STRING );
            SchoolDTD.LESSON_TEACHERLIST = new ElementDefAlias( LESSON, "TeacherList", null, "TeacherIDList", 8, SifDtd.SCHOOL, "uk", 0, SifVersion.SIF23, SifVersion.SIF26 );
            SchoolDTD.LESSON_TTROOMREFID = new ElementDefImpl( LESSON, "TTRoomRefId", null, 9, SifDtd.SCHOOL, "uk", (ElementDefImpl.FD_FIELD), SifVersion.SIF23, SifVersion.SIF26, SifTypeConverters.STRING );
            LESSON_SIF_EXTENDEDELEMENTS = new ElementDefImpl( LESSON, "SIF_ExtendedElements", null, 127, SifDtd.GLOBAL, null, (0), SifVersion.SIF15r1, SifVersion.SIF26 );
            LESSON_SIF_METADATA = new ElementDefImpl( LESSON, "SIF_Metadata", null, 128, SifDtd.DATAMODEL, "uk", (0), SifVersion.SIF20, SifVersion.SIF26 );

            // <PersonPicture> fields (5 entries)
            SchoolDTD.PERSONPICTURE_PERSONREFID = new ElementDefImpl( PERSONPICTURE, "PersonRefId", null, 1, SifDtd.SCHOOL, "uk", (ElementDefImpl.FD_ATTRIBUTE), SifVersion.SIF20, SifVersion.SIF26, SifTypeConverters.STRING );
            SchoolDTD.PERSONPICTURE_SIF_REFOBJECTLIST = new ElementDefImpl( PERSONPICTURE, "SIF_RefObjectList", null, 2, SifDtd.COMMON, "uk", 0, SifVersion.SIF20, SifVersion.SIF26 );
            SchoolDTD.PERSONPICTURE_SCHOOLYEAR = new ElementDefImpl( PERSONPICTURE, "SchoolYear", null, 3, SifDtd.SCHOOL, "uk", (ElementDefImpl.FD_FIELD), SifVersion.SIF20, SifVersion.SIF26, SifTypeConverters.INT );
            SchoolDTD.PERSONPICTURE_PICTURESOURCE = new ElementDefImpl( PERSONPICTURE, "PictureSource", null, 4, SifDtd.SCHOOL, "uk", 0, SifVersion.SIF20, SifVersion.SIF26, SifTypeConverters.STRING );
            SchoolDTD.PERSONPICTURE_OKTOPUBLISH = new ElementDefImpl( PERSONPICTURE, "OKToPublish", null, 5, SifDtd.SCHOOL, "uk", (ElementDefImpl.FD_FIELD), SifVersion.SIF20, SifVersion.SIF26, SifTypeConverters.STRING );
            PERSONPICTURE_SIF_EXTENDEDELEMENTS = new ElementDefImpl( PERSONPICTURE, "SIF_ExtendedElements", null, 127, SifDtd.GLOBAL, null, (0), SifVersion.SIF15r1, SifVersion.SIF26 );
            PERSONPICTURE_SIF_METADATA = new ElementDefImpl( PERSONPICTURE, "SIF_Metadata", null, 128, SifDtd.DATAMODEL, "uk", (0), SifVersion.SIF20, SifVersion.SIF26 );

            // <PictureSource> fields (1 entries)
            SchoolDTD.PICTURESOURCE_TYPE = new ElementDefImpl( PICTURESOURCE, "Type", null, 1, SifDtd.SCHOOL, "uk", (ElementDefImpl.FD_ATTRIBUTE), SifVersion.SIF20, SifVersion.SIF26, SifTypeConverters.STRING );

            // <ScheduleInfo> fields (1 entries)
            SchoolDTD.SCHEDULEINFO_TEACHERLIST = new ElementDefImpl( SCHEDULEINFO, "TeacherList", null, 1, SifDtd.SCHOOL, "uk", 0, SifVersion.SIF20, SifVersion.SIF26 );

            // <ScheduleInfoList> fields (1 entries)
            SchoolDTD.SCHEDULEINFOLIST_SCHEDULEINFO = new ElementDefImpl( SCHEDULEINFOLIST, "ScheduleInfo", null, 1, SifDtd.SCHOOL, "uk", (ElementDefImpl.FD_REPEATABLE), SifVersion.SIF20, SifVersion.SIF26 );

            // <SchoolGroup> fields (8 entries)
            SchoolDTD.SCHOOLGROUP_REFID = new ElementDefImpl( SCHOOLGROUP, "RefId", null, 1, SifDtd.SCHOOL, "uk", (ElementDefImpl.FD_ATTRIBUTE), SifVersion.SIF20, SifVersion.SIF26, SifTypeConverters.STRING );
            SchoolDTD.SCHOOLGROUP_SCHOOLGROUPTYPEREFID = new ElementDefImpl( SCHOOLGROUP, "SchoolGroupTypeRefId", null, 2, SifDtd.SCHOOL, "uk", (ElementDefImpl.FD_ATTRIBUTE), SifVersion.SIF20, SifVersion.SIF26, SifTypeConverters.STRING );
            SchoolDTD.SCHOOLGROUP_SCHOOLYEAR = new ElementDefImpl( SCHOOLGROUP, "SchoolYear", null, 3, SifDtd.SCHOOL, "uk", (ElementDefImpl.FD_ATTRIBUTE), SifVersion.SIF20, SifVersion.SIF26, SifTypeConverters.INT );
            SchoolDTD.SCHOOLGROUP_LOCALID = new ElementDefImpl( SCHOOLGROUP, "LocalId", null, 4, SifDtd.SCHOOL, "uk", (ElementDefImpl.FD_FIELD), SifVersion.SIF20, SifVersion.SIF26, SifTypeConverters.STRING );
            SchoolDTD.SCHOOLGROUP_GROUPNAME = new ElementDefImpl( SCHOOLGROUP, "GroupName", null, 5, SifDtd.SCHOOL, "uk", (ElementDefImpl.FD_FIELD), SifVersion.SIF20, SifVersion.SIF26, SifTypeConverters.STRING );
            SchoolDTD.SCHOOLGROUP_DESCRIPTION = new ElementDefImpl( SCHOOLGROUP, "Description", null, 6, SifDtd.SCHOOL, "uk", (ElementDefImpl.FD_FIELD), SifVersion.SIF20, SifVersion.SIF26, SifTypeConverters.STRING );
            SchoolDTD.SCHOOLGROUP_PARENTSCHOOLGROUPREFID = new ElementDefImpl( SCHOOLGROUP, "ParentSchoolGroupRefId", null, 7, SifDtd.SCHOOL, "uk", (ElementDefImpl.FD_FIELD), SifVersion.SIF20, SifVersion.SIF26, SifTypeConverters.STRING );
            SchoolDTD.SCHOOLGROUP_SCHEDULEINFOLIST = new ElementDefImpl( SCHOOLGROUP, "ScheduleInfoList", null, 8, SifDtd.SCHOOL, "uk", 0, SifVersion.SIF20, SifVersion.SIF26 );
            SCHOOLGROUP_SIF_EXTENDEDELEMENTS = new ElementDefImpl( SCHOOLGROUP, "SIF_ExtendedElements", null, 127, SifDtd.GLOBAL, null, (0), SifVersion.SIF15r1, SifVersion.SIF26 );
            SCHOOLGROUP_SIF_METADATA = new ElementDefImpl( SCHOOLGROUP, "SIF_Metadata", null, 128, SifDtd.DATAMODEL, "uk", (0), SifVersion.SIF20, SifVersion.SIF26 );

            // <SchoolGroupType> fields (8 entries)
            SchoolDTD.SCHOOLGROUPTYPE_REFID = new ElementDefImpl( SCHOOLGROUPTYPE, "RefId", null, 1, SifDtd.SCHOOL, "uk", (ElementDefImpl.FD_ATTRIBUTE), SifVersion.SIF20, SifVersion.SIF26, SifTypeConverters.STRING );
            SchoolDTD.SCHOOLGROUPTYPE_SCHOOLINFOREFID = new ElementDefImpl( SCHOOLGROUPTYPE, "SchoolInfoRefId", null, 2, SifDtd.SCHOOL, "uk", (ElementDefImpl.FD_ATTRIBUTE), SifVersion.SIF20, SifVersion.SIF26, SifTypeConverters.STRING );
            SchoolDTD.SCHOOLGROUPTYPE_SCHOOLYEAR = new ElementDefImpl( SCHOOLGROUPTYPE, "SchoolYear", null, 3, SifDtd.SCHOOL, "uk", (ElementDefImpl.FD_ATTRIBUTE), SifVersion.SIF20, SifVersion.SIF26, SifTypeConverters.INT );
            SchoolDTD.SCHOOLGROUPTYPE_GROUPTYPE = new ElementDefImpl( SCHOOLGROUPTYPE, "GroupType", null, 4, SifDtd.SCHOOL, "uk", (ElementDefImpl.FD_ATTRIBUTE), SifVersion.SIF20, SifVersion.SIF26, SifTypeConverters.STRING );
            SchoolDTD.SCHOOLGROUPTYPE_CODE = new ElementDefImpl( SCHOOLGROUPTYPE, "Code", null, 5, SifDtd.SCHOOL, "uk", (ElementDefImpl.FD_FIELD), SifVersion.SIF20, SifVersion.SIF26, SifTypeConverters.STRING );
            SchoolDTD.SCHOOLGROUPTYPE_TITLE = new ElementDefImpl( SCHOOLGROUPTYPE, "Title", null, 6, SifDtd.SCHOOL, "uk", (ElementDefImpl.FD_FIELD), SifVersion.SIF20, SifVersion.SIF26, SifTypeConverters.STRING );
            SchoolDTD.SCHOOLGROUPTYPE_DESCRIPTION = new ElementDefImpl( SCHOOLGROUPTYPE, "Description", null, 7, SifDtd.SCHOOL, "uk", (ElementDefImpl.FD_FIELD), SifVersion.SIF20, SifVersion.SIF26, SifTypeConverters.STRING );
            SchoolDTD.SCHOOLGROUPTYPE_SUBJECTAREALIST = new ElementDefImpl( SCHOOLGROUPTYPE, "SubjectAreaList", null, 8, SifDtd.COMMON, "uk", 0, SifVersion.SIF20, SifVersion.SIF26 );
            SCHOOLGROUPTYPE_SIF_EXTENDEDELEMENTS = new ElementDefImpl( SCHOOLGROUPTYPE, "SIF_ExtendedElements", null, 127, SifDtd.GLOBAL, null, (0), SifVersion.SIF15r1, SifVersion.SIF26 );
            SCHOOLGROUPTYPE_SIF_METADATA = new ElementDefImpl( SCHOOLGROUPTYPE, "SIF_Metadata", null, 128, SifDtd.DATAMODEL, "uk", (0), SifVersion.SIF20, SifVersion.SIF26 );
//.........这里部分代码省略.........
开发者ID:rafidzal,项目名称:OpenADK-csharp,代码行数:101,代码来源:SchoolDTD.cs

示例15: Load

        public override void Load()
        {
            //  Objects defined by this SDO Library...

            DIETARYPREFERENCE = new ElementDefImpl( null, "DietaryPreference", null, 0, SifDtd.CATERING, "uk", 0, SifVersion.SIF23, SifVersion.SIF25 );
            DIETARYPREFERENCELIST = new ElementDefImpl( null, "DietaryPreferenceList", null, 0, SifDtd.CATERING, "uk", 0, SifVersion.SIF23, SifVersion.SIF25 );
            MEAL = new ElementDefImpl( null, "Meal", null, 0, SifDtd.CATERING, "uk", 0, SifVersion.SIF23, SifVersion.SIF25 );
            MEALS = new ElementDefImpl( null, "Meals", null, 0, SifDtd.CATERING, "uk", 0, SifVersion.SIF23, SifVersion.SIF25 );
            PERSONDIETARYPREFERENCE = new ElementDefImpl( null, "PersonDietaryPreference", null, 0, SifDtd.CATERING, "uk", (ElementDefImpl.FD_OBJECT), SifVersion.SIF23, SifVersion.SIF25 );
            SCHOOLMEALSTATUS = new ElementDefImpl( null, "SchoolMealStatus", null, 0, SifDtd.CATERING, "uk", (ElementDefImpl.FD_OBJECT), SifVersion.SIF23, SifVersion.SIF25 );
            SCHOOLMEALSTATUSTIER = new ElementDefImpl( null, "SchoolMealStatusTier", null, 0, SifDtd.CATERING, "uk", 0, SifVersion.SIF23, SifVersion.SIF25, SifTypeConverters.STRING );
            WEEKLYMEALPATTERN = new ElementDefImpl( null, "WeeklyMealPattern", null, 0, SifDtd.CATERING, "uk", 0, SifVersion.SIF23, SifVersion.SIF25 );
            WEEKLYMEALPATTERNLIST = new ElementDefImpl( null, "WeeklyMealPatternList", null, 0, SifDtd.CATERING, "uk", 0, SifVersion.SIF23, SifVersion.SIF25 );

            // <DietaryPreference> fields (4 entries)
            CateringDTD.DIETARYPREFERENCE_PREFERENCETYPE = new ElementDefImpl( DIETARYPREFERENCE, "PreferenceType", null, 1, SifDtd.CATERING, "uk", (ElementDefImpl.FD_FIELD), SifVersion.SIF23, SifVersion.SIF25, SifTypeConverters.STRING );
            CateringDTD.DIETARYPREFERENCE_MEALCOMPONENT = new ElementDefImpl( DIETARYPREFERENCE, "MealComponent", null, 2, SifDtd.CATERING, "uk", (ElementDefImpl.FD_FIELD), SifVersion.SIF23, SifVersion.SIF25, SifTypeConverters.STRING );
            CateringDTD.DIETARYPREFERENCE_NOTE = new ElementDefImpl( DIETARYPREFERENCE, "Note", null, 3, SifDtd.CATERING, "uk", (ElementDefImpl.FD_FIELD), SifVersion.SIF23, SifVersion.SIF25, SifTypeConverters.STRING );
            CateringDTD.DIETARYPREFERENCE_MEALEFFECT = new ElementDefImpl( DIETARYPREFERENCE, "MealEffect", null, 4, SifDtd.CATERING, "uk", (ElementDefImpl.FD_FIELD), SifVersion.SIF23, SifVersion.SIF25, SifTypeConverters.STRING );

            // <DietaryPreferenceList> fields (1 entries)
            CateringDTD.DIETARYPREFERENCELIST_DIETARYPREFERENCE = new ElementDefImpl( DIETARYPREFERENCELIST, "DietaryPreference", null, 1, SifDtd.CATERING, "uk", (ElementDefImpl.FD_REPEATABLE), SifVersion.SIF23, SifVersion.SIF25 );

            // <Meal> fields (3 entries)
            CateringDTD.MEAL_DAY = new ElementDefImpl( MEAL, "Day", null, 1, SifDtd.CATERING, "uk", (ElementDefImpl.FD_FIELD), SifVersion.SIF23, SifVersion.SIF25, SifTypeConverters.STRING );
            CateringDTD.MEAL_MEALTIME = new ElementDefImpl( MEAL, "MealTime", null, 2, SifDtd.CATERING, "uk", (ElementDefImpl.FD_FIELD), SifVersion.SIF23, SifVersion.SIF25, SifTypeConverters.STRING );
            CateringDTD.MEAL_MEALTYPE = new ElementDefImpl( MEAL, "MealType", null, 3, SifDtd.CATERING, "uk", (ElementDefImpl.FD_FIELD), SifVersion.SIF23, SifVersion.SIF25, SifTypeConverters.STRING );

            // <Meals> fields (1 entries)
            CateringDTD.MEALS_MEAL = new ElementDefImpl( MEALS, "Meal", null, 1, SifDtd.CATERING, "uk", (ElementDefImpl.FD_REPEATABLE), SifVersion.SIF23, SifVersion.SIF25 );

            // <PersonDietaryPreference> fields (4 entries)
            CateringDTD.PERSONDIETARYPREFERENCE_REFID = new ElementDefImpl( PERSONDIETARYPREFERENCE, "RefId", null, 1, SifDtd.CATERING, "uk", (ElementDefImpl.FD_ATTRIBUTE), SifVersion.SIF23, SifVersion.SIF25, SifTypeConverters.STRING );
            CateringDTD.PERSONDIETARYPREFERENCE_PERSONREFID = new ElementDefImpl( PERSONDIETARYPREFERENCE, "PersonRefId", null, 2, SifDtd.CATERING, "uk", (ElementDefImpl.FD_FIELD), SifVersion.SIF23, SifVersion.SIF25, SifTypeConverters.STRING );
            CateringDTD.PERSONDIETARYPREFERENCE_WEEKLYMEALPATTERNLIST = new ElementDefImpl( PERSONDIETARYPREFERENCE, "WeeklyMealPatternList", null, 3, SifDtd.CATERING, "uk", 0, SifVersion.SIF23, SifVersion.SIF25 );
            CateringDTD.PERSONDIETARYPREFERENCE_DIETARYPREFERENCELIST = new ElementDefImpl( PERSONDIETARYPREFERENCE, "DietaryPreferenceList", null, 4, SifDtd.CATERING, "uk", 0, SifVersion.SIF23, SifVersion.SIF25 );
            PERSONDIETARYPREFERENCE_SIF_EXTENDEDELEMENTS = new ElementDefImpl( PERSONDIETARYPREFERENCE, "SIF_ExtendedElements", null, 127, SifDtd.GLOBAL, null, (0), SifVersion.SIF15r1, SifVersion.SIF25 );
            PERSONDIETARYPREFERENCE_SIF_METADATA = new ElementDefImpl( PERSONDIETARYPREFERENCE, "SIF_Metadata", null, 128, SifDtd.DATAMODEL, "uk", (0), SifVersion.SIF20, SifVersion.SIF25 );

            // <SchoolMealStatus> fields (5 entries)
            CateringDTD.SCHOOLMEALSTATUS_REFID = new ElementDefImpl( SCHOOLMEALSTATUS, "RefId", null, 1, SifDtd.CATERING, "uk", (ElementDefImpl.FD_ATTRIBUTE), SifVersion.SIF23, SifVersion.SIF25, SifTypeConverters.STRING );
            CateringDTD.SCHOOLMEALSTATUS_SCHOOLINFOREFID = new ElementDefImpl( SCHOOLMEALSTATUS, "SchoolInfoRefId", null, 2, SifDtd.CATERING, "uk", (ElementDefImpl.FD_FIELD), SifVersion.SIF23, SifVersion.SIF25, SifTypeConverters.STRING );
            CateringDTD.SCHOOLMEALSTATUS_SCHOOLMEALSTATUSDATE = new ElementDefImpl( SCHOOLMEALSTATUS, "SchoolMealStatusDate", null, 3, SifDtd.CATERING, "uk", (ElementDefImpl.FD_FIELD), SifVersion.SIF23, SifVersion.SIF25, SifTypeConverters.DATE );
            CateringDTD.SCHOOLMEALSTATUS_SCHOOLMEALSTATUSDATESESSION = new ElementDefImpl( SCHOOLMEALSTATUS, "SchoolMealStatusDateSession", null, 4, SifDtd.CATERING, "uk", (ElementDefImpl.FD_FIELD), SifVersion.SIF23, SifVersion.SIF25, SifTypeConverters.STRING );
            CateringDTD.SCHOOLMEALSTATUS_SCHOOLMEALSTATUSTIER = new ElementDefImpl( SCHOOLMEALSTATUS, "SchoolMealStatusTier", null, 5, SifDtd.CATERING, "uk", 0, SifVersion.SIF23, SifVersion.SIF25, SifTypeConverters.STRING );
            SCHOOLMEALSTATUS_SIF_EXTENDEDELEMENTS = new ElementDefImpl( SCHOOLMEALSTATUS, "SIF_ExtendedElements", null, 127, SifDtd.GLOBAL, null, (0), SifVersion.SIF15r1, SifVersion.SIF25 );
            SCHOOLMEALSTATUS_SIF_METADATA = new ElementDefImpl( SCHOOLMEALSTATUS, "SIF_Metadata", null, 128, SifDtd.DATAMODEL, "uk", (0), SifVersion.SIF20, SifVersion.SIF25 );

            // <SchoolMealStatusTier> fields (0 entries)

            // <WeeklyMealPattern> fields (4 entries)
            CateringDTD.WEEKLYMEALPATTERN_STARTDATE = new ElementDefImpl( WEEKLYMEALPATTERN, "StartDate", null, 1, SifDtd.CATERING, "uk", (ElementDefImpl.FD_FIELD), SifVersion.SIF23, SifVersion.SIF25, SifTypeConverters.DATE );
            CateringDTD.WEEKLYMEALPATTERN_ENDDATE = new ElementDefImpl( WEEKLYMEALPATTERN, "EndDate", null, 2, SifDtd.CATERING, "uk", (ElementDefImpl.FD_FIELD), SifVersion.SIF23, SifVersion.SIF25, SifTypeConverters.DATE );
            CateringDTD.WEEKLYMEALPATTERN_NOTE = new ElementDefImpl( WEEKLYMEALPATTERN, "Note", null, 3, SifDtd.CATERING, "uk", (ElementDefImpl.FD_FIELD), SifVersion.SIF23, SifVersion.SIF25, SifTypeConverters.STRING );
            CateringDTD.WEEKLYMEALPATTERN_MEALS = new ElementDefImpl( WEEKLYMEALPATTERN, "Meals", null, 4, SifDtd.CATERING, "uk", 0, SifVersion.SIF23, SifVersion.SIF25 );

            // <WeeklyMealPatternList> fields (1 entries)
            CateringDTD.WEEKLYMEALPATTERNLIST_WEEKLYMEALPATTERN = new ElementDefImpl( WEEKLYMEALPATTERNLIST, "WeeklyMealPattern", null, 1, SifDtd.CATERING, "uk", (ElementDefImpl.FD_REPEATABLE), SifVersion.SIF23, SifVersion.SIF25 );
        }
开发者ID:pgodwin,项目名称:OpenADK-csharp,代码行数:59,代码来源:CateringDTD.cs


注:本文中的IElementDef类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。