Interface NotificationTemplateModel

All Superinterfaces:
com.liferay.portal.kernel.model.AuditedModel, com.liferay.portal.kernel.model.BaseModel<NotificationTemplate>, com.liferay.portal.kernel.model.ClassedModel, Cloneable, Comparable<NotificationTemplate>, com.liferay.portal.kernel.model.ExternalReferenceCodeModel, com.liferay.portal.kernel.model.LocalizedModel, com.liferay.portal.kernel.model.MVCCModel, Serializable, com.liferay.portal.kernel.model.ShardedModel, com.liferay.portal.kernel.model.StagedAuditedModel, com.liferay.portal.kernel.model.StagedModel
All Known Subinterfaces:
NotificationTemplate
All Known Implementing Classes:
NotificationTemplateWrapper

@ProviderType public interface NotificationTemplateModel extends com.liferay.portal.kernel.model.BaseModel<NotificationTemplate>, com.liferay.portal.kernel.model.ExternalReferenceCodeModel, com.liferay.portal.kernel.model.LocalizedModel, com.liferay.portal.kernel.model.MVCCModel, com.liferay.portal.kernel.model.ShardedModel, com.liferay.portal.kernel.model.StagedAuditedModel
The base model interface for the NotificationTemplate service. Represents a row in the "NotificationTemplate" database table, with each column mapped to a property of this class.

This interface and its corresponding implementation com.liferay.notification.model.impl.NotificationTemplateModelImpl exist only as a container for the default property accessors generated by ServiceBuilder. Helper methods and all application logic should be put in com.liferay.notification.model.impl.NotificationTemplateImpl.

See Also:
Generated:
  • Method Summary

    Modifier and Type
    Method
    Description
     
     
    Returns the body of this notification template.
    getBody(String languageId)
    Returns the localized body of this notification template in the language.
    getBody(String languageId, boolean useDefault)
    Returns the localized body of this notification template in the language, optionally using the default language if no localization exists for the requested language.
    getBody(Locale locale)
    Returns the localized body of this notification template in the language.
    getBody(Locale locale, boolean useDefault)
    Returns the localized body of this notification template in the language, optionally using the default language if no localization exists for the requested language.
     
     
    Returns a map of the locales and localized bodies of this notification template.
    long
    Returns the company ID of this notification template.
    Returns the create date of this notification template.
     
    Returns the description of this notification template.
    Returns the editor type of this notification template.
    Returns the external reference code of this notification template.
    Returns the modified date of this notification template.
    long
    Returns the mvcc version of this notification template.
    Returns the name of this notification template.
    getName(String languageId)
    Returns the localized name of this notification template in the language.
    getName(String languageId, boolean useDefault)
    Returns the localized name of this notification template in the language, optionally using the default language if no localization exists for the requested language.
    getName(Locale locale)
    Returns the localized name of this notification template in the language.
    getName(Locale locale, boolean useDefault)
    Returns the localized name of this notification template in the language, optionally using the default language if no localization exists for the requested language.
     
     
    Returns a map of the locales and localized names of this notification template.
    long
    Returns the notification template ID of this notification template.
    long
    Returns the object definition ID of this notification template.
    long
    Returns the primary key of this notification template.
    Returns the recipient type of this notification template.
    Returns the subject of this notification template.
    getSubject(String languageId)
    Returns the localized subject of this notification template in the language.
    getSubject(String languageId, boolean useDefault)
    Returns the localized subject of this notification template in the language, optionally using the default language if no localization exists for the requested language.
    Returns the localized subject of this notification template in the language.
    getSubject(Locale locale, boolean useDefault)
    Returns the localized subject of this notification template in the language, optionally using the default language if no localization exists for the requested language.
     
     
    Returns a map of the locales and localized subjects of this notification template.
    boolean
    Returns the system of this notification template.
    Returns the type of this notification template.
    long
    Returns the user ID of this notification template.
    Returns the user name of this notification template.
    Returns the user uuid of this notification template.
    Returns the uuid of this notification template.
    boolean
    Returns true if this notification template is system.
    void
     
    void
     
    void
    Sets the body of this notification template.
    void
    setBody(String body, Locale locale)
    Sets the localized body of this notification template in the language.
    void
    setBody(String body, Locale locale, Locale defaultLocale)
    Sets the localized body of this notification template in the language, and sets the default locale.
    void
     
    void
    Sets the localized bodies of this notification template from the map of locales and localized bodies.
    void
    setBodyMap(Map<Locale,String> bodyMap, Locale defaultLocale)
    Sets the localized bodies of this notification template from the map of locales and localized bodies, and sets the default locale.
    void
    setCompanyId(long companyId)
    Sets the company ID of this notification template.
    void
    setCreateDate(Date createDate)
    Sets the create date of this notification template.
    void
    setDescription(String description)
    Sets the description of this notification template.
    void
    setEditorType(String editorType)
    Sets the editor type of this notification template.
    void
    setExternalReferenceCode(String externalReferenceCode)
    Sets the external reference code of this notification template.
    void
    setModifiedDate(Date modifiedDate)
    Sets the modified date of this notification template.
    void
    setMvccVersion(long mvccVersion)
    Sets the mvcc version of this notification template.
    void
    Sets the name of this notification template.
    void
    setName(String name, Locale locale)
    Sets the localized name of this notification template in the language.
    void
    setName(String name, Locale locale, Locale defaultLocale)
    Sets the localized name of this notification template in the language, and sets the default locale.
    void
     
    void
    Sets the localized names of this notification template from the map of locales and localized names.
    void
    setNameMap(Map<Locale,String> nameMap, Locale defaultLocale)
    Sets the localized names of this notification template from the map of locales and localized names, and sets the default locale.
    void
    setNotificationTemplateId(long notificationTemplateId)
    Sets the notification template ID of this notification template.
    void
    setObjectDefinitionId(long objectDefinitionId)
    Sets the object definition ID of this notification template.
    void
    setPrimaryKey(long primaryKey)
    Sets the primary key of this notification template.
    void
    setRecipientType(String recipientType)
    Sets the recipient type of this notification template.
    void
    setSubject(String subject)
    Sets the subject of this notification template.
    void
    setSubject(String subject, Locale locale)
    Sets the localized subject of this notification template in the language.
    void
    setSubject(String subject, Locale locale, Locale defaultLocale)
    Sets the localized subject of this notification template in the language, and sets the default locale.
    void
     
    void
    Sets the localized subjects of this notification template from the map of locales and localized subjects.
    void
    setSubjectMap(Map<Locale,String> subjectMap, Locale defaultLocale)
    Sets the localized subjects of this notification template from the map of locales and localized subjects, and sets the default locale.
    void
    setSystem(boolean system)
    Sets whether this notification template is system.
    void
    Sets the type of this notification template.
    void
    setUserId(long userId)
    Sets the user ID of this notification template.
    void
    setUserName(String userName)
    Sets the user name of this notification template.
    void
    setUserUuid(String userUuid)
    Sets the user uuid of this notification template.
    void
    Sets the uuid of this notification template.
    default String
     

    Methods inherited from interface com.liferay.portal.kernel.model.BaseModel

    clone, getAttributeGetterFunctions, getAttributeSetterBiConsumers, getExpandoBridge, getModelAttributes, getPrimaryKeyObj, isCachedModel, isEntityCacheEnabled, isEscapedModel, isFinderCacheEnabled, isNew, resetOriginalValues, setCachedModel, setExpandoBridgeAttributes, setExpandoBridgeAttributes, setExpandoBridgeAttributes, setModelAttributes, setNew, setPrimaryKeyObj, toCacheModel, toEscapedModel, toUnescapedModel

    Methods inherited from interface com.liferay.portal.kernel.model.ClassedModel

    getModelClass, getModelClassName

    Methods inherited from interface java.lang.Comparable

    compareTo

    Methods inherited from interface com.liferay.portal.kernel.model.StagedModel

    clone, getStagedModelType
  • Method Details

    • getPrimaryKey

      long getPrimaryKey()
      Returns the primary key of this notification template.
      Returns:
      the primary key of this notification template
    • setPrimaryKey

      void setPrimaryKey(long primaryKey)
      Sets the primary key of this notification template.
      Parameters:
      primaryKey - the primary key of this notification template
    • getMvccVersion

      long getMvccVersion()
      Returns the mvcc version of this notification template.
      Specified by:
      getMvccVersion in interface com.liferay.portal.kernel.model.MVCCModel
      Returns:
      the mvcc version of this notification template
    • setMvccVersion

      void setMvccVersion(long mvccVersion)
      Sets the mvcc version of this notification template.
      Specified by:
      setMvccVersion in interface com.liferay.portal.kernel.model.MVCCModel
      Parameters:
      mvccVersion - the mvcc version of this notification template
    • getUuid

      @AutoEscape String getUuid()
      Returns the uuid of this notification template.
      Specified by:
      getUuid in interface com.liferay.portal.kernel.model.StagedModel
      Returns:
      the uuid of this notification template
    • setUuid

      void setUuid(String uuid)
      Sets the uuid of this notification template.
      Specified by:
      setUuid in interface com.liferay.portal.kernel.model.StagedModel
      Parameters:
      uuid - the uuid of this notification template
    • getExternalReferenceCode

      @AutoEscape String getExternalReferenceCode()
      Returns the external reference code of this notification template.
      Specified by:
      getExternalReferenceCode in interface com.liferay.portal.kernel.model.ExternalReferenceCodeModel
      Returns:
      the external reference code of this notification template
    • setExternalReferenceCode

      void setExternalReferenceCode(String externalReferenceCode)
      Sets the external reference code of this notification template.
      Specified by:
      setExternalReferenceCode in interface com.liferay.portal.kernel.model.ExternalReferenceCodeModel
      Parameters:
      externalReferenceCode - the external reference code of this notification template
    • getNotificationTemplateId

      long getNotificationTemplateId()
      Returns the notification template ID of this notification template.
      Returns:
      the notification template ID of this notification template
    • setNotificationTemplateId

      void setNotificationTemplateId(long notificationTemplateId)
      Sets the notification template ID of this notification template.
      Parameters:
      notificationTemplateId - the notification template ID of this notification template
    • getCompanyId

      long getCompanyId()
      Returns the company ID of this notification template.
      Specified by:
      getCompanyId in interface com.liferay.portal.kernel.model.AuditedModel
      Specified by:
      getCompanyId in interface com.liferay.portal.kernel.model.ShardedModel
      Specified by:
      getCompanyId in interface com.liferay.portal.kernel.model.StagedModel
      Returns:
      the company ID of this notification template
    • setCompanyId

      void setCompanyId(long companyId)
      Sets the company ID of this notification template.
      Specified by:
      setCompanyId in interface com.liferay.portal.kernel.model.AuditedModel
      Specified by:
      setCompanyId in interface com.liferay.portal.kernel.model.ShardedModel
      Specified by:
      setCompanyId in interface com.liferay.portal.kernel.model.StagedModel
      Parameters:
      companyId - the company ID of this notification template
    • getUserId

      long getUserId()
      Returns the user ID of this notification template.
      Specified by:
      getUserId in interface com.liferay.portal.kernel.model.AuditedModel
      Returns:
      the user ID of this notification template
    • setUserId

      void setUserId(long userId)
      Sets the user ID of this notification template.
      Specified by:
      setUserId in interface com.liferay.portal.kernel.model.AuditedModel
      Parameters:
      userId - the user ID of this notification template
    • getUserUuid

      String getUserUuid()
      Returns the user uuid of this notification template.
      Specified by:
      getUserUuid in interface com.liferay.portal.kernel.model.AuditedModel
      Returns:
      the user uuid of this notification template
    • setUserUuid

      void setUserUuid(String userUuid)
      Sets the user uuid of this notification template.
      Specified by:
      setUserUuid in interface com.liferay.portal.kernel.model.AuditedModel
      Parameters:
      userUuid - the user uuid of this notification template
    • getUserName

      @AutoEscape String getUserName()
      Returns the user name of this notification template.
      Specified by:
      getUserName in interface com.liferay.portal.kernel.model.AuditedModel
      Returns:
      the user name of this notification template
    • setUserName

      void setUserName(String userName)
      Sets the user name of this notification template.
      Specified by:
      setUserName in interface com.liferay.portal.kernel.model.AuditedModel
      Parameters:
      userName - the user name of this notification template
    • getCreateDate

      Date getCreateDate()
      Returns the create date of this notification template.
      Specified by:
      getCreateDate in interface com.liferay.portal.kernel.model.AuditedModel
      Specified by:
      getCreateDate in interface com.liferay.portal.kernel.model.StagedModel
      Returns:
      the create date of this notification template
    • setCreateDate

      void setCreateDate(Date createDate)
      Sets the create date of this notification template.
      Specified by:
      setCreateDate in interface com.liferay.portal.kernel.model.AuditedModel
      Specified by:
      setCreateDate in interface com.liferay.portal.kernel.model.StagedModel
      Parameters:
      createDate - the create date of this notification template
    • getModifiedDate

      Date getModifiedDate()
      Returns the modified date of this notification template.
      Specified by:
      getModifiedDate in interface com.liferay.portal.kernel.model.AuditedModel
      Specified by:
      getModifiedDate in interface com.liferay.portal.kernel.model.StagedModel
      Returns:
      the modified date of this notification template
    • setModifiedDate

      void setModifiedDate(Date modifiedDate)
      Sets the modified date of this notification template.
      Specified by:
      setModifiedDate in interface com.liferay.portal.kernel.model.AuditedModel
      Specified by:
      setModifiedDate in interface com.liferay.portal.kernel.model.StagedModel
      Parameters:
      modifiedDate - the modified date of this notification template
    • getObjectDefinitionId

      long getObjectDefinitionId()
      Returns the object definition ID of this notification template.
      Returns:
      the object definition ID of this notification template
    • setObjectDefinitionId

      void setObjectDefinitionId(long objectDefinitionId)
      Sets the object definition ID of this notification template.
      Parameters:
      objectDefinitionId - the object definition ID of this notification template
    • getBody

      String getBody()
      Returns the body of this notification template.
      Returns:
      the body of this notification template
    • getBody

      @AutoEscape String getBody(Locale locale)
      Returns the localized body of this notification template in the language. Uses the default language if no localization exists for the requested language.
      Parameters:
      locale - the locale of the language
      Returns:
      the localized body of this notification template
    • getBody

      @AutoEscape String getBody(Locale locale, boolean useDefault)
      Returns the localized body of this notification template in the language, optionally using the default language if no localization exists for the requested language.
      Parameters:
      locale - the local of the language
      useDefault - whether to use the default language if no localization exists for the requested language
      Returns:
      the localized body of this notification template. If useDefault is false and no localization exists for the requested language, an empty string will be returned.
    • getBody

      @AutoEscape String getBody(String languageId)
      Returns the localized body of this notification template in the language. Uses the default language if no localization exists for the requested language.
      Parameters:
      languageId - the ID of the language
      Returns:
      the localized body of this notification template
    • getBody

      @AutoEscape String getBody(String languageId, boolean useDefault)
      Returns the localized body of this notification template in the language, optionally using the default language if no localization exists for the requested language.
      Parameters:
      languageId - the ID of the language
      useDefault - whether to use the default language if no localization exists for the requested language
      Returns:
      the localized body of this notification template
    • getBodyCurrentLanguageId

      @AutoEscape String getBodyCurrentLanguageId()
    • getBodyCurrentValue

      @AutoEscape String getBodyCurrentValue()
    • getBodyMap

      Map<Locale,String> getBodyMap()
      Returns a map of the locales and localized bodies of this notification template.
      Returns:
      the locales and localized bodies of this notification template
    • setBody

      void setBody(String body)
      Sets the body of this notification template.
      Parameters:
      body - the body of this notification template
    • setBody

      void setBody(String body, Locale locale)
      Sets the localized body of this notification template in the language.
      Parameters:
      body - the localized body of this notification template
      locale - the locale of the language
    • setBody

      void setBody(String body, Locale locale, Locale defaultLocale)
      Sets the localized body of this notification template in the language, and sets the default locale.
      Parameters:
      body - the localized body of this notification template
      locale - the locale of the language
      defaultLocale - the default locale
    • setBodyCurrentLanguageId

      void setBodyCurrentLanguageId(String languageId)
    • setBodyMap

      void setBodyMap(Map<Locale,String> bodyMap)
      Sets the localized bodies of this notification template from the map of locales and localized bodies.
      Parameters:
      bodyMap - the locales and localized bodies of this notification template
    • setBodyMap

      void setBodyMap(Map<Locale,String> bodyMap, Locale defaultLocale)
      Sets the localized bodies of this notification template from the map of locales and localized bodies, and sets the default locale.
      Parameters:
      bodyMap - the locales and localized bodies of this notification template
      defaultLocale - the default locale
    • getDescription

      @AutoEscape String getDescription()
      Returns the description of this notification template.
      Returns:
      the description of this notification template
    • setDescription

      void setDescription(String description)
      Sets the description of this notification template.
      Parameters:
      description - the description of this notification template
    • getEditorType

      @AutoEscape String getEditorType()
      Returns the editor type of this notification template.
      Returns:
      the editor type of this notification template
    • setEditorType

      void setEditorType(String editorType)
      Sets the editor type of this notification template.
      Parameters:
      editorType - the editor type of this notification template
    • getName

      String getName()
      Returns the name of this notification template.
      Returns:
      the name of this notification template
    • getName

      @AutoEscape String getName(Locale locale)
      Returns the localized name of this notification template in the language. Uses the default language if no localization exists for the requested language.
      Parameters:
      locale - the locale of the language
      Returns:
      the localized name of this notification template
    • getName

      @AutoEscape String getName(Locale locale, boolean useDefault)
      Returns the localized name of this notification template in the language, optionally using the default language if no localization exists for the requested language.
      Parameters:
      locale - the local of the language
      useDefault - whether to use the default language if no localization exists for the requested language
      Returns:
      the localized name of this notification template. If useDefault is false and no localization exists for the requested language, an empty string will be returned.
    • getName

      @AutoEscape String getName(String languageId)
      Returns the localized name of this notification template in the language. Uses the default language if no localization exists for the requested language.
      Parameters:
      languageId - the ID of the language
      Returns:
      the localized name of this notification template
    • getName

      @AutoEscape String getName(String languageId, boolean useDefault)
      Returns the localized name of this notification template in the language, optionally using the default language if no localization exists for the requested language.
      Parameters:
      languageId - the ID of the language
      useDefault - whether to use the default language if no localization exists for the requested language
      Returns:
      the localized name of this notification template
    • getNameCurrentLanguageId

      @AutoEscape String getNameCurrentLanguageId()
    • getNameCurrentValue

      @AutoEscape String getNameCurrentValue()
    • getNameMap

      Map<Locale,String> getNameMap()
      Returns a map of the locales and localized names of this notification template.
      Returns:
      the locales and localized names of this notification template
    • setName

      void setName(String name)
      Sets the name of this notification template.
      Parameters:
      name - the name of this notification template
    • setName

      void setName(String name, Locale locale)
      Sets the localized name of this notification template in the language.
      Parameters:
      name - the localized name of this notification template
      locale - the locale of the language
    • setName

      void setName(String name, Locale locale, Locale defaultLocale)
      Sets the localized name of this notification template in the language, and sets the default locale.
      Parameters:
      name - the localized name of this notification template
      locale - the locale of the language
      defaultLocale - the default locale
    • setNameCurrentLanguageId

      void setNameCurrentLanguageId(String languageId)
    • setNameMap

      void setNameMap(Map<Locale,String> nameMap)
      Sets the localized names of this notification template from the map of locales and localized names.
      Parameters:
      nameMap - the locales and localized names of this notification template
    • setNameMap

      void setNameMap(Map<Locale,String> nameMap, Locale defaultLocale)
      Sets the localized names of this notification template from the map of locales and localized names, and sets the default locale.
      Parameters:
      nameMap - the locales and localized names of this notification template
      defaultLocale - the default locale
    • getRecipientType

      @AutoEscape String getRecipientType()
      Returns the recipient type of this notification template.
      Returns:
      the recipient type of this notification template
    • setRecipientType

      void setRecipientType(String recipientType)
      Sets the recipient type of this notification template.
      Parameters:
      recipientType - the recipient type of this notification template
    • getSubject

      String getSubject()
      Returns the subject of this notification template.
      Returns:
      the subject of this notification template
    • getSubject

      @AutoEscape String getSubject(Locale locale)
      Returns the localized subject of this notification template in the language. Uses the default language if no localization exists for the requested language.
      Parameters:
      locale - the locale of the language
      Returns:
      the localized subject of this notification template
    • getSubject

      @AutoEscape String getSubject(Locale locale, boolean useDefault)
      Returns the localized subject of this notification template in the language, optionally using the default language if no localization exists for the requested language.
      Parameters:
      locale - the local of the language
      useDefault - whether to use the default language if no localization exists for the requested language
      Returns:
      the localized subject of this notification template. If useDefault is false and no localization exists for the requested language, an empty string will be returned.
    • getSubject

      @AutoEscape String getSubject(String languageId)
      Returns the localized subject of this notification template in the language. Uses the default language if no localization exists for the requested language.
      Parameters:
      languageId - the ID of the language
      Returns:
      the localized subject of this notification template
    • getSubject

      @AutoEscape String getSubject(String languageId, boolean useDefault)
      Returns the localized subject of this notification template in the language, optionally using the default language if no localization exists for the requested language.
      Parameters:
      languageId - the ID of the language
      useDefault - whether to use the default language if no localization exists for the requested language
      Returns:
      the localized subject of this notification template
    • getSubjectCurrentLanguageId

      @AutoEscape String getSubjectCurrentLanguageId()
    • getSubjectCurrentValue

      @AutoEscape String getSubjectCurrentValue()
    • getSubjectMap

      Map<Locale,String> getSubjectMap()
      Returns a map of the locales and localized subjects of this notification template.
      Returns:
      the locales and localized subjects of this notification template
    • setSubject

      void setSubject(String subject)
      Sets the subject of this notification template.
      Parameters:
      subject - the subject of this notification template
    • setSubject

      void setSubject(String subject, Locale locale)
      Sets the localized subject of this notification template in the language.
      Parameters:
      subject - the localized subject of this notification template
      locale - the locale of the language
    • setSubject

      void setSubject(String subject, Locale locale, Locale defaultLocale)
      Sets the localized subject of this notification template in the language, and sets the default locale.
      Parameters:
      subject - the localized subject of this notification template
      locale - the locale of the language
      defaultLocale - the default locale
    • setSubjectCurrentLanguageId

      void setSubjectCurrentLanguageId(String languageId)
    • setSubjectMap

      void setSubjectMap(Map<Locale,String> subjectMap)
      Sets the localized subjects of this notification template from the map of locales and localized subjects.
      Parameters:
      subjectMap - the locales and localized subjects of this notification template
    • setSubjectMap

      void setSubjectMap(Map<Locale,String> subjectMap, Locale defaultLocale)
      Sets the localized subjects of this notification template from the map of locales and localized subjects, and sets the default locale.
      Parameters:
      subjectMap - the locales and localized subjects of this notification template
      defaultLocale - the default locale
    • getSystem

      boolean getSystem()
      Returns the system of this notification template.
      Returns:
      the system of this notification template
    • isSystem

      boolean isSystem()
      Returns true if this notification template is system.
      Returns:
      true if this notification template is system; false otherwise
    • setSystem

      void setSystem(boolean system)
      Sets whether this notification template is system.
      Parameters:
      system - the system of this notification template
    • getType

      @AutoEscape String getType()
      Returns the type of this notification template.
      Returns:
      the type of this notification template
    • setType

      void setType(String type)
      Sets the type of this notification template.
      Parameters:
      type - the type of this notification template
    • getAvailableLanguageIds

      String[] getAvailableLanguageIds()
      Specified by:
      getAvailableLanguageIds in interface com.liferay.portal.kernel.model.LocalizedModel
    • getDefaultLanguageId

      String getDefaultLanguageId()
      Specified by:
      getDefaultLanguageId in interface com.liferay.portal.kernel.model.LocalizedModel
    • prepareLocalizedFieldsForImport

      void prepareLocalizedFieldsForImport() throws com.liferay.portal.kernel.exception.LocaleException
      Specified by:
      prepareLocalizedFieldsForImport in interface com.liferay.portal.kernel.model.LocalizedModel
      Throws:
      com.liferay.portal.kernel.exception.LocaleException
    • prepareLocalizedFieldsForImport

      void prepareLocalizedFieldsForImport(Locale defaultImportLocale) throws com.liferay.portal.kernel.exception.LocaleException
      Specified by:
      prepareLocalizedFieldsForImport in interface com.liferay.portal.kernel.model.LocalizedModel
      Throws:
      com.liferay.portal.kernel.exception.LocaleException
    • cloneWithOriginalValues

      NotificationTemplate cloneWithOriginalValues()
      Specified by:
      cloneWithOriginalValues in interface com.liferay.portal.kernel.model.BaseModel<NotificationTemplate>
    • toXmlString

      default String toXmlString()