Example #1
0
 /// <summary>
 /// Constructor that accepts values for all mandatory fields
 /// </summary>
 ///<param name="type">Code that defines the location of the address.  Note:  A subset of specific valid values for each instance in a data object may be listed in that object.</param>
 ///<param name="street">The street part of the address</param>
 ///<param name="city">The city part of the address.</param>
 ///<param name="stateProvince">The state or province code.</param>
 ///<param name="country">The country code.</param>
 ///<param name="postalCode">The ZIP/postal code.</param>
 ///
 public Address( AddressType type, Street street, string city, StatePrCode stateProvince, CountryCode country, string postalCode )
     : base(CommonDTD.ADDRESS)
 {
     this.SetType( type );
     this.Street = street;
     this.City = city;
     this.SetStateProvince( stateProvince );
     this.SetCountry( country );
     this.PostalCode = postalCode;
 }
 ///<summary>Sets the value of the <c>&lt;StandardSettingBody&gt;</c> element.</summary>
 /// <param name="Country">The country of the standard setting body.</param>
 ///<remarks>
 /// <para>This form of <c>setStandardSettingBody</c> is provided as a convenience method
 /// that is functionally equivalent to the <c>StandardSettingBody</c></para>
 /// <para>Version: 2.6</para>
 /// <para>Since: 2.2</para>
 /// </remarks>
 public void SetStandardSettingBody( CountryCode Country )
 {
     RemoveChild( InstrDTD.LEARNINGSTANDARDITEM_STANDARDSETTINGBODY);
     AddChild( InstrDTD.LEARNINGSTANDARDITEM_STANDARDSETTINGBODY, new StandardSettingBody( Country ) );
 }
 /// <summary>
 /// Constructor that accepts values for all mandatory fields
 /// </summary>
 ///<param name="value">Gets or sets the content value of the &amp;lt;CountryOfResidency&amp;gt; element</param>
 ///
 public CountryOfResidency( CountryCode value )
     : base(CommonDTD.COUNTRYOFRESIDENCY)
 {
     this.SetValue( value );
 }
 /// <summary>
 /// Sets the value of the <c>&lt;Value&gt;</c> element.
 /// </summary>
 /// <param name="val">A CountryCode object</param>
 /// <remarks>
 /// <para>The SIF specification defines the meaning of this of the content as: "Gets or sets the content value of the &amp;lt;CountryOfResidency&amp;gt; element"</para>
 /// <para>Version: 1.1</para>
 /// <para>Since: 1.1</para>
 /// </remarks>
 public void SetValue( CountryCode val )
 {
     SetField( CommonDTD.COUNTRYOFRESIDENCY, val );
 }
Example #5
0
 /// <summary>
 /// Sets the value of the <c>&lt;Value&gt;</c> element.
 /// </summary>
 /// <param name="val">A CountryCode object</param>
 /// <remarks>
 /// <para>The SIF specification defines the meaning of this of the content as: "Gets or sets the content value of the &amp;lt;Country&amp;gt; element"</para>
 /// <para>Version: 2.6</para>
 /// <para>Since: 1.1</para>
 /// </remarks>
 public void SetValue(CountryCode val)
 {
     SetField(CommonDTD.COUNTRY, val);
 }
Example #6
0
 ///<summary>Adds the value of the <c>&lt;Address&gt;</c> element.</summary>
 /// <param name="Type">Code that defines the location of the address.  Note:  A subset of specific valid values for each instance in a data object may be listed in that object.</param>
 /// <param name="Street">The street part of the address</param>
 /// <param name="City">The city part of the address.</param>
 /// <param name="StateProvince">The state or province code.</param>
 /// <param name="Country">The country code.</param>
 /// <param name="PostalCode">The ZIP/postal code.</param>
 ///<remarks>
 /// <para>This form of <c>setAddress</c> is provided as a convenience method
 /// that is functionally equivalent to the method <c>AddAddress</c></para>
 /// <para>Version: 2.5</para>
 /// <para>Since: 1.5r1</para>
 /// </remarks>
 public void AddAddress( AddressType Type, Street Street, string City, StatePrCode StateProvince, CountryCode Country, string PostalCode )
 {
     AddChild( ReportingDTD.STUDENTLOCATOR_ADDRESS, new Address( Type, Street, City, StateProvince, Country, PostalCode ) );
 }
Example #7
0
 ///<summary>Sets the value of the <c>&lt;Address&gt;</c> element.</summary>
 /// <param name="Type">Code that defines the location of the address.  Note:  A subset of specific valid values for each instance in a data object may be listed in that object.</param>
 /// <param name="Street">The street part of the address</param>
 /// <param name="City">The city part of the address.</param>
 /// <param name="StateProvince">The state or province code.</param>
 /// <param name="Country">The country code.</param>
 /// <param name="PostalCode">The ZIP/postal code.</param>
 ///<remarks>
 /// <para>This form of <c>setAddress</c> is provided as a convenience method
 /// that is functionally equivalent to the <c>Address</c></para>
 /// <para>Version: 2.6</para>
 /// <para>Since: 1.5r1</para>
 /// </remarks>
 public void SetAddress( AddressType Type, Street Street, string City, StatePrCode StateProvince, CountryCode Country, string PostalCode )
 {
     RemoveChild( InstrDTD.SOURCEAUTHOR_ADDRESS);
     AddChild( InstrDTD.SOURCEAUTHOR_ADDRESS, new Address( Type, Street, City, StateProvince, Country, PostalCode ) );
 }
Example #8
0
 /// <summary>
 /// Constructor that accepts values for all mandatory fields
 /// </summary>
 ///<param name="value">Gets or sets the content value of the &amp;lt;Country&amp;gt; element</param>
 ///
 public Country( CountryCode value )
     : base(CommonDTD.COUNTRY)
 {
     this.SetValue( value );
 }
 ///<summary>Sets the value of the <c>&lt;Address&gt;</c> element.</summary>
 /// <param name="Type">Code that defines the location of the address.  Note:  A subset of specific valid values for each instance in a data object may be listed in that object.</param>
 /// <param name="Street">The street part of the address</param>
 /// <param name="City">The city part of the address.</param>
 /// <param name="StateProvince">The state or province code.</param>
 /// <param name="Country">The country code.</param>
 /// <param name="PostalCode">The ZIP/postal code.</param>
 ///<remarks>
 /// <para>This form of <c>setAddress</c> is provided as a convenience method
 /// that is functionally equivalent to the <c>Address</c></para>
 /// <para>Version: 2.6</para>
 /// <para>Since: 1.5r1</para>
 /// </remarks>
 public void SetAddress( AddressType Type, Street Street, string City, StatePrCode StateProvince, CountryCode Country, string PostalCode )
 {
     RemoveChild( ReportingDTD.REPORTSUBMITTERINFO_ADDRESS);
     AddChild( ReportingDTD.REPORTSUBMITTERINFO_ADDRESS, new Address( Type, Street, City, StateProvince, Country, PostalCode ) );
 }
 ///<summary>Sets the value of the <c>&lt;Address&gt;</c> element.</summary>
 /// <param name="Type">Code that defines the location of the address.  Note:  A subset of specific valid values for each instance in a data object may be listed in that object.</param>
 /// <param name="Street">The street part of the address</param>
 /// <param name="City">The city part of the address.</param>
 /// <param name="StateProvince">The state or province code.</param>
 /// <param name="Country">The country code.</param>
 /// <param name="PostalCode">The ZIP/postal code.</param>
 ///<remarks>
 /// <para>This form of <c>setAddress</c> is provided as a convenience method
 /// that is functionally equivalent to the <c>Address</c></para>
 /// <para>Version: 2.5</para>
 /// <para>Since: 1.5r1</para>
 /// </remarks>
 public void SetAddress( AddressType Type, Street Street, string City, StatePrCode StateProvince, CountryCode Country, string PostalCode )
 {
     RemoveChild( ProfdevDTD.ACTIVITYPROVIDER_ADDRESS);
     AddChild( ProfdevDTD.ACTIVITYPROVIDER_ADDRESS, new Address( Type, Street, City, StateProvince, Country, PostalCode ) );
 }
        private static StudentPersonal CreateStudent(
          String id,
          String lastName,
            String firstName,
            String street,
            String city,
            StatePrCode state,
            CountryCode country,
            String post,
            String phone,
            Gender gender,
            GradeLevelCode grade,
            RaceType race,
            String birthDateyyyyMMdd)
        {
            StudentPersonal student = new StudentPersonal();
             ;
             student.RefId = Adk.MakeGuid();
             student.LocalId = id;

             // Set the Name
             Name name = new Name(NameType.LEGAL, firstName, lastName);
             student.Name = name;

             Address addr = new Address();
             addr.SetType(AddressType.C0369_PERMANENT);
             addr.SetStreet(street);
             addr.City = city;
             addr.SetStateProvince(state);
             addr.PostalCode = post;
             addr.SetCountry(country);

             student.AddressList = new StudentAddressList(PickupOrDropoff.NA, "NA", addr);
             student.PhoneNumberList =
             new PhoneNumberList(new PhoneNumber(PhoneNumberType.PRIMARY, phone));

             Demographics dem = new Demographics();
             dem.RaceList = new RaceList(new Race("", race));
             dem.SetGender(gender);
             dem.BirthDate =
             DateTime.ParseExact
                 (birthDateyyyyMMdd, "yyyyMMdd", CultureInfo.InvariantCulture.DateTimeFormat);

             student.Demographics = dem;

             return student;
        }
 /// <summary>
 /// Constructor that accepts values for all mandatory fields
 /// </summary>
 ///<param name="country">The country of the standard setting body.</param>
 ///
 public StandardSettingBody( CountryCode country )
     : base(InstrDTD.STANDARDSETTINGBODY)
 {
     this.SetCountry( country );
 }
 /// <summary>
 /// Sets the value of the <c>&lt;Country&gt;</c> element.
 /// </summary>
 /// <param name="val">A CountryCode object</param>
 /// <remarks>
 /// <para>The SIF specification defines the meaning of this element as: "The country of the standard setting body."</para>
 /// <para>Version: 2.5</para>
 /// <para>Since: 2.2</para>
 /// </remarks>
 public void SetCountry( CountryCode val )
 {
     SetField( InstrDTD.STANDARDSETTINGBODY_COUNTRY, val );
 }
Example #14
0
 ///<summary>Adds the value of the <c>&lt;CountryOfCitizenship&gt;</c> element.</summary>
 /// <param name="Value">Gets or sets the content value of the &amp;lt;Country&amp;gt; element</param>
 ///<remarks>
 /// <para>This form of <c>setCountryOfCitizenship</c> is provided as a convenience method
 /// that is functionally equivalent to the method <c>AddCountryOfCitizenship</c></para>
 /// <para>Version: 2.6</para>
 /// <para>Since: 1.1</para>
 /// </remarks>
 public void AddCountryOfCitizenship(CountryCode Value)
 {
     AddChild(CommonDTD.COUNTRIESOFCITIZENSHIP_COUNTRYOFCITIZENSHIP, new Country(Value));
 }
 ///<summary>Sets the value of the <c>&lt;Address&gt;</c> element.</summary>
 /// <param name="Type">Code that defines the location of the address.  Note:  A subset of specific valid values for each instance in a data object may be listed in that object.</param>
 /// <param name="Street">The street part of the address</param>
 /// <param name="City">The city part of the address.</param>
 /// <param name="StateProvince">The state or province code.</param>
 /// <param name="Country">The country code.</param>
 /// <param name="PostalCode">The ZIP/postal code.</param>
 ///<remarks>
 /// <para>This form of <c>setAddress</c> is provided as a convenience method
 /// that is functionally equivalent to the <c>Address</c></para>
 /// <para>Version: 2.5</para>
 /// <para>Since: 2.0</para>
 /// </remarks>
 public void SetAddress( AddressType Type, Street Street, string City, StatePrCode StateProvince, CountryCode Country, string PostalCode )
 {
     RemoveChild( AssessmentDTD.ASSESSMENTADMINISTRATION_ADDRESS);
     AddChild( AssessmentDTD.ASSESSMENTADMINISTRATION_ADDRESS, new Address( Type, Street, City, StateProvince, Country, PostalCode ) );
 }
 ///<summary>Sets the value of the <c>&lt;StandardsSettingBody&gt;</c> element.</summary>
 /// <param name="Country">The country of the standard setting body.</param>
 ///<remarks>
 /// <para>This form of <c>setStandardsSettingBody</c> is provided as a convenience method
 /// that is functionally equivalent to the <c>StandardsSettingBody</c></para>
 /// <para>Version: 2.5</para>
 /// <para>Since: 2.4</para>
 /// </remarks>
 public void SetStandardsSettingBody( CountryCode Country )
 {
     RemoveChild( InstrDTD.CATALOGLEARNINGSTANDARDSDOCUMENT_STANDARDSSETTINGBODY);
     AddChild( InstrDTD.CATALOGLEARNINGSTANDARDSDOCUMENT_STANDARDSSETTINGBODY, new StandardSettingBody( Country ) );
 }
Example #17
0
 ///<summary>Sets the value of the <c>&lt;Address&gt;</c> element.</summary>
 /// <param name="Type">Code that defines the location of the address.  Note:  A subset of specific valid values for each instance in a data object may be listed in that object.</param>
 /// <param name="Street">The street part of the address</param>
 /// <param name="City">The city part of the address.</param>
 /// <param name="StateProvince">The state or province code.</param>
 /// <param name="Country">The country code.</param>
 /// <param name="PostalCode">The ZIP/postal code.</param>
 ///<remarks>
 /// <para>This form of <c>setAddress</c> is provided as a convenience method
 /// that is functionally equivalent to the <c>Address</c></para>
 /// <para>Version: 2.6</para>
 /// <para>Since: 2.0</para>
 /// </remarks>
 public void SetAddress( AddressType Type, Street Street, string City, StatePrCode StateProvince, CountryCode Country, string PostalCode )
 {
     RemoveChild( CommonDTD.CONTACTINFO_ADDRESS);
     AddChild( CommonDTD.CONTACTINFO_ADDRESS, new Address( Type, Street, City, StateProvince, Country, PostalCode ) );
 }
Example #18
0
 /// <summary>
 /// Sets the value of the <c>&lt;CountryOfBirth&gt;</c> element.
 /// </summary>
 /// <param name="val">A CountryCode object</param>
 /// <remarks>
 /// <para>The SIF specification defines the meaning of this element as: "The person's country of birth."</para>
 /// <para>Version: 2.5</para>
 /// <para>Since: 1.1</para>
 /// </remarks>
 public void SetCountryOfBirth( CountryCode val )
 {
     SetField( CommonDTD.DEMOGRAPHICS_COUNTRYOFBIRTH, val );
 }
 ///<summary>Sets the value of the <c>&lt;CountryOfBirth&gt;</c> element.</summary>
 /// <param name="Value">Gets or sets the content value of the &amp;lt;Country&amp;gt; element</param>
 ///<remarks>
 /// <para>This form of <c>setCountryOfBirth</c> is provided as a convenience method
 /// that is functionally equivalent to the <c>CountryOfBirth</c></para>
 /// <para>Version: 2.6</para>
 /// <para>Since: 2.4</para>
 /// </remarks>
 public void SetCountryOfBirth( CountryCode Value )
 {
     RemoveChild( EtranscriptsDTD.DEMOGRAPHICSDATA_COUNTRYOFBIRTH);
     AddChild( EtranscriptsDTD.DEMOGRAPHICSDATA_COUNTRYOFBIRTH, new Country( Value ) );
 }
Example #20
0
 /// <summary>
 /// Sets the value of the <c>&lt;Country&gt;</c> element.
 /// </summary>
 /// <param name="val">A CountryCode object</param>
 /// <remarks>
 /// <para>The SIF specification defines the meaning of this element as: "The country code."</para>
 /// <para>Version: 2.5</para>
 /// <para>Since: 1.1</para>
 /// </remarks>
 public void SetCountry( CountryCode val )
 {
     SetField( CommonDTD.ADDRESS_COUNTRY, val );
 }
Example #21
0
 ///<summary>Sets the value of the <c>&lt;Address&gt;</c> element.</summary>
 /// <param name="Type">Code that defines the location of the address.  Note:  A subset of specific valid values for each instance in a data object may be listed in that object.</param>
 /// <param name="Street">The street part of the address</param>
 /// <param name="City">The city part of the address.</param>
 /// <param name="StateProvince">The state or province code.</param>
 /// <param name="Country">The country code.</param>
 /// <param name="PostalCode">The ZIP/postal code.</param>
 ///<remarks>
 /// <para>This form of <c>setAddress</c> is provided as a convenience method
 /// that is functionally equivalent to the <c>Address</c></para>
 /// <para>Version: 2.5</para>
 /// <para>Since: 1.5r1</para>
 /// </remarks>
 public void SetAddress( AddressType Type, Street Street, string City, StatePrCode StateProvince, CountryCode Country, string PostalCode )
 {
     RemoveChild( StudentDTD.STUDENTSNAPSHOT_ADDRESS);
     AddChild( StudentDTD.STUDENTSNAPSHOT_ADDRESS, new Address( Type, Street, City, StateProvince, Country, PostalCode ) );
 }
Example #22
0
 /// <summary>
 /// Constructor that accepts values for all mandatory fields
 /// </summary>
 ///<param name="value">Gets or sets the content value of the &amp;lt;Country&amp;gt; element</param>
 ///
 public Country(CountryCode value) : base(CommonDTD.COUNTRY)
 {
     this.SetValue(value);
 }