/// <summary>
        /// The add textValue.
        /// </summary>
        /// <param name="textType">
        /// The textValue 0. 
        /// </param>
        public virtual void AddText(ITextTypeWrapperMutableObject textType)
        {
            if (this._text == null)
                this._text = new List<ITextTypeWrapperMutableObject>();

            this._text.Add(textType);
        }
 /// <summary>
 /// This is an internal method that is used to write a <see cref="ITextTypeWrapper"/>
 ///     The method create a xml element named by the name parameter.
 ///     It will only write the xml element if the <see cref="ITextTypeWrapper.Value"/> is not null or empty
 /// </summary>
 /// <param name="namespacePrefix">
 /// The namespace prefix that should be used
 /// </param>
 /// <param name="textObject">
 /// The <see cref="ITextTypeWrapper"/> object containing the data to be written
 /// </param>
 /// <param name="name">
 /// The name of the xml element
 /// </param>
 protected void WriteTextType(
     NamespacePrefixPair namespacePrefix, ITextTypeWrapperMutableObject textObject, ElementNameTable name)
 {
     string value = textObject.Value;
     string locale = textObject.Locale;
     this.WriteTextType(namespacePrefix, name, value, locale);
 }
 ///////////////////////////////////////////////////////////////////////////////////////////////////
 ////////////BUILD FROM MUTABLE OBJECT                 //////////////////////////////////////////////////
 ///////////////////////////////////////////////////////////////////////////////////////////////////    
 
 /// <summary>
 /// Initializes a new instance of the <see cref="TextTypeWrapperImpl"/> class.
 /// </summary>
 /// <param name="textType">
 /// The text type. 
 /// </param>
 /// <param name="parent">
 /// The parent. 
 /// </param>
 public TextTypeWrapperImpl(ITextTypeWrapperMutableObject textType, ISdmxObject parent)
     : base(textType, parent)
 {
     this.Locale = textType.Locale;
     this.Value = textType.Value;
     this.Validate();
 }
 public void AddDepartment(ITextTypeWrapperMutableObject dept)
 {
     this._departments.Add(dept);
 }
 public void AddRole(ITextTypeWrapperMutableObject role)
 {
     this._roles.Add(role);
 }
 public void AddName(ITextTypeWrapperMutableObject name)
 {
     this._names.Add(name);
 }