wimdatagraph.xsd 文件

wimdatagraph.xsd 文件包含 wimdomain.xsd 文件中未定义的数据对象的 XML 模式定义。

这些数据对象包括“根”数据对象、“上下文”数据对象和各种“控制”数据对象。“根”数据对象用作 virtual member manager 数据图中的根。所有其他数据对象均位于该“根”数据对象之下。“上下文”数据对象用于指定每个 API 调用的上下文信息。

“控制”数据对象用于指定 API 输入中的请求信息和 API 输出中的结果信息。例如,PropertyControl 在输入数据图中用于指定要为获取 API 调用返回的属性的名称。PageResponseControl 在输出数据图中用于将 cookie 和大小信息从搜索 API 调用返回至调用者。

以下示例显示文件的结构。请注意,其中包括 wimdomain.xsd 和 wimschema.xsd 文件。第一部分定义“根”数据对象。第二部分定义“控制”数据对象。最后一部分定义“上下文”数据对象。
<?xml version="1.0" encoding="UTF-8"?>
<xsd:schema targetNamespace="http://www.ibm.com/websphere/wim" 
            xmlns:xsd="http://www.w3.org/2001/XMLSchema" 
            xmlns:ecore="http://www.eclipse.org/emf/2002/Ecore" 
            xmlns="http://www.ibm.com/websphere/wim" 
            ecore:nsPrefix="wim" 
            ecore:package="com.ibm.websphere.wim.model"  
            version="1.0" elementFormDefault="qualified" 
            attributeFormDefault="unqualified">
	<xsd:import namespace="http://www.w3.org/XML/1998/namespace" 
              schemaLocation="http://www.w3.org/2001/xml.xsd"/>
     <xsd:include schemaLocation="wimdomain.xsd"/>
     <xsd:include schemaLocation="wimschema.xsd"/>
    <xsd:element name="Root" type="RootType"/>  
	<xsd:complexType name="RootType">

			<xsd:sequence>
				<xsd:element maxOccurs="unbounded" minOccurs="0" 
              name="contexts" type="Context"/>
				<xsd:element maxOccurs="unbounded" minOccurs="0" 
              name="entities" type="Entity"/>
				<xsd:element maxOccurs="unbounded" minOccurs="0" 
              name="controls" type="Control"/>
				<xsd:element ref="schema" minOccurs="0" maxOccurs="1"/>
			</xsd:sequence>
			<xsd:attribute name="validated" type="xsd:boolean" default="false"/>
	</xsd:complexType>

	<!-- Super type of all controls. Controls are used to specify request information. -->
	<xsd:complexType name="Control" abstract="true">
		<xsd:sequence/>
	</xsd:complexType>
>
</xsd:schema>


使用条款 | 反馈