The wimschema.xsd file

The wimschema.xsd file contains the XML Schema definition of the property and entity schema.

These schema definitions are used when creating new property types and entity types at run time. For example, the propertySchema data object is used for specifying the information needed for creating a new property type like propertyName, dataType, or applicableEntityTypeNames. The data object entitySchema contains information like entityName, parentEntityName, and propertyNames, which are needed when creating a new entity type.

The wimschema.xsd file is also used for defining the XML schema for the wimxmlextension.xml file. This file is used by virtual member manager to store new property and entity types created at run time.

The following shows an example of the structure of the file:
<?xml version="1.0" encoding="UTF-8"?>
<xsd:schema xmlns:ecore="http://www.eclipse.org/emf/2002/Ecore" 
            xmlns="http://www.ibm.com/websphere/wim" 
            xmlns:xsd="http://www.w3.org/2001/XMLSchema" 
            ecore:nsPrefix="wim" 
            ecore:package="com.ibm.websphere.wim.model" 
            targetNamespace="http://www.ibm.com/websphere/wim" 
            version="1.0" elementFormDefault="qualified" 
            attributeFormDefault="unqualified">
	<xsd:element name="schema" type="SchemaType"/>
	
	<xsd:complexType name="SchemaType">
		<xsd:sequence>
			<xsd:element name="entitySchema" type="EntitySchemaType" 
                    minOccurs="0" maxOccurs="unbounded" />
			<xsd:element name="propertySchema" type="PropertySchemaType" 
                    minOccurs="0" maxOccurs="unbounded"/>
			<xsd:element name="extensionPropertySchema" type="PropertySchemaType" 
                    minOccurs="0" maxOccurs="unbounded"/>
			<xsd:element name="propertyDataTypes" type="xsd:token" 
                    minOccurs="0" maxOccurs="unbounded"/>
		</xsd:sequence>
	</xsd:complexType>


. . .
</xsd:schema>
Note: For more information about using the propertySchema and extensionPropertySchema data objects, see the section, Extending property schema in the topic, Programming prerequisites. Also read about Configuring a property extension repository in a federated repository configuration in the WebSphere Application Server information center.


Terms of use | Feedback

http://publib.boulder.ibm.com/infocenter/wasinfo/v8r0/index.jsp?topic=/com.ibm.websphere.wim.doc/wimschema.xsdfile.html