/// <summary>Adds a Component to a conformance Message
		/// adds a line to the constructor to instantiate that member variable
		/// </summary>
		/// <param name="profileName">this is the profile name associated with this Class
		/// </param>
		/// <param name="componentNumber">the number associated with the component in the profile 
		/// </param>
		/// <param name="childGetter">adds this line to the constructor to instantiate Conformance Component class
		/// </param>
		private void  addChild(ProfileName profileName, int componentNumber, System.String childGetter)
		{
			
			// Add member variable to class for holding Conformance Component class
			this.addMemberVariable("private " + profileName.ClassName + " " + profileName.MemberName + ";");
			
			// Add line to constructor to instantiate Conformance Component class
			this.Constructor.addToBody(childGetter);
			
			// Add method for retrieving Conformance Component Class
			GeneratedMethod getChildMethod = new GeneratedMethod();
			getChildMethod.addToComments("Provides access to the " + profileName.OriginalName + " component child");
			getChildMethod.addToComments("@return " + profileName.ClassName + " The " + profileName.OriginalName + " component child");
			getChildMethod.Visibility = "public";
			getChildMethod.ReturnType = profileName.ClassName;
			getChildMethod.Name = profileName.AccessorName;
			getChildMethod.addToBody("return " + profileName.MemberName + ";");
			this.addMethod(getChildMethod);
		}
Ejemplo n.º 2
0
 /// <summary>Adds Class Comments to a Minimum Repition Method</summary>
 /// <param name="genClass">a GeneratedConformanceContainer
 /// </param>
 /// <param name="genMethod">the GeneratedMethod for which the comments are being added to
 /// </param>
 public void  decorateMinReps(GeneratedMethod genMethod)
 {
     genMethod.addToDescription("This method returns the minimum allowable");
     genMethod.addToComments("repetitions of this object.");
     genMethod.addToComments("@return minimum allowable repetitions");
 }
Ejemplo n.º 3
0
 /// <summary>Adds Class Comments to a getMaxLength method</summary>
 /// <param name="genMethod">a GeneratedMethod
 /// </param>
 public void  decorateMaxLength(GeneratedMethod genMethod)
 {
     genMethod.addToDescription("Returns the Maximum allowable length for the Data Type");
     genMethod.addToComments("@return the maximum allowable length of the Data Type");
 }
Ejemplo n.º 4
0
 /// <summary>Adds Class Comments to a getMaxLength method</summary>
 /// <param name="genMethod">the Generated Method to add the constant value comments to
 /// </param>
 public void  decorateConstantValue(GeneratedMethod genMethod)
 {
     genMethod.addToDescription("Returns the constant value associated with this Data Type");
     genMethod.addToComments("@return the constant value associated with this Data Type, or <code>null</code> if there is none");
 }