concat

값 목록을 연결하여 자국어 지원 가능 메시지(자국어 지원 참조)를 작성합니다.

concat은 추가 공간이나 텍스트 없이 해당 값을 함께 연결합니다. 보다 복잡한 형식화나 자국어 지원 가능 텍스트가 필요한 경우 대신 ResourceMessage를 사용하십시오.

<?xml version="1.0" encoding="UTF-8"?>
<RuleSet name="Example_concat"
  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  xsi:noNamespaceSchemaLocation=
"http://www.curamsoftware.com/CreoleRulesSchema.xsd">
  <Class name="Person">

    <Attribute name="firstName">
      <type>
        <javaclass name="String"/>
      </type>
      <derivation>
        <specified/>
      </derivation>
    </Attribute>

    <Attribute name="surname">
      <type>
        <javaclass name="String"/>
      </type>
      <derivation>
        <specified/>
      </derivation>
    </Attribute>

    <Attribute name="dateOfBirth">
      <type>
        <javaclass name="curam.util.type.Date"/>
      </type>
      <derivation>
        <specified/>
      </derivation>
    </Attribute>

    <!-- 이름, 성 및 생년월일을
     포함하는 개인의 ID입니다. 예를 들어,
     John Smith(1970년 10월 03일)입니다.

     이름과 성은 일반 문자열이지만
     생년월일은 사용자의 로케일에 따라
     자국어가 지원됩니다.
     -->
    <Attribute name="personIdentifier">
      <type>
        <javaclass name="curam.creole.value.Message"/>
      </type>
      <derivation>
        <concat>
          <fixedlist>
            <listof>
              <!-- 목록에 문자열과 날짜 항목이
                   혼합되어 있으므로 오브젝트를
                   사용합니다. -->
              <javaclass name="Object"/>
            </listof>
            <members>
              <reference attribute="firstName"/>
              <!-- 이름 사이의 공간 구분 기호 -->
              <String value=" "/>
              <reference attribute="surname"/>
              <String value=" ("/>
              <reference attribute="dateOfBirth"/>
              <String value=")"/>
            </members>
          </fixedlist>
        </concat>
      </derivation>
    </Attribute>

  </Class>

</RuleSet>