사용자 정의 임포터의 기준이 충족된 경우 서버에서 자산을 다운로드하는 데 사용할 수 있는 마법사 선택사항이 사용자에게 제공됩니다.
<!ELEMENT extension (downloadContributor+)>
<!ATTLIST extension
point CDATA #REQUIRED
id CDATA #IMPLIED
name CDATA #IMPLIED>
<!ELEMENT assetType EMPTY>
<!ATTLIST assetType
id CDATA #REQUIRED>
<!ELEMENT assetCategory EMPTY>
<!ATTLIST assetCategory
id CDATA #REQUIRED>
<!ELEMENT artifactPath EMPTY>
<!ATTLIST artifactPath
path CDATA #REQUIRED>
<!ELEMENT downloadContributor (enablement?)>
<!ATTLIST downloadContributor
class CDATA #REQUIRED>
<!ELEMENT and ((assetType | (and | or | not | assetCategory | artifactPath)+) | (and | or | not | assetCategory | artifactPath))>
<!ELEMENT or (and | or | not | assetType | assetCategory | artifactPath)>
<!ELEMENT not (and | or | not | assetType | assetCategory | artifactPath)>
다음 예에서 컨트리뷰터는 사용 조건이 충족되면 활성화되는 클래스를 제공합니다. 복잡한 사용 조건은 and, or, not 논리 연산자의 조합을 사용하여 지정할 수 있습니다.
<extension
point="com.ibm.ram.rich.ui.extension.downloadAsset">
<downloadContributor
class="com.ibm.ram.rich.ui.test.downloadasset.RASDownloadContributor">
<enablement>
<or>
<assetType
id="Service Test">
</assetType>
<assetCategory
id="Automobiles/Color/Red">
</assetCategory>
<and>
<assetCategory
id="Automobiles/Color/Red">
</assetCategory>
<not>
<artifactPath
path="/[^/]*/plugin.xml">
</artifactPath>
</not>
</and>
</or>
</enablement>
</downloadContributor>
</extension>