All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.cristalise.kernel.utils.resources.mapFiles.CollectionMap.xml Maven / Gradle / Ivy

<?xml version="1.0"?>
<!--

    This file is part of the CRISTAL-iSE kernel.
    Copyright (c) 2001-2015 The CRISTAL Consortium. All rights reserved.

    This library is free software; you can redistribute it and/or modify it
    under the terms of the GNU Lesser General Public License as published
    by the Free Software Foundation; either version 3 of the License, or (at
    your option) any later version.

    This library is distributed in the hope that it will be useful, but WITHOUT
    ANY WARRANTY; with out even the implied warranty of MERCHANTABILITY or
    FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public
    License for more details.

    You should have received a copy of the GNU Lesser General Public License
    along with this library; if not, write to the Free Software Foundation,
    Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA.

    http://www.fsf.org/licensing/licenses/lgpl.html

-->
<mapping>
    <class name="org.cristalise.kernel.collection.CollectionMemberList">
    	<map-to xml="CollectionMemberList"/>
    	<field name="list" 
    		   collection="arraylist" 
    		   direct="true" 
    		   type="org.cristalise.kernel.collection.CollectionMember">
			<bind-xml auto-naming="deriveByClass" node="element"/>
	    </field>	
   	</class>    
   	   	      	
	<class name="org.cristalise.kernel.collection.DependencyMember">
		<map-to xml="DependencyMember"/>
		<field name="ID" type="integer" direct="false">
			<bind-xml name="ID" node="attribute"/>
		</field>		
		<field name="mItemPath"
		       type="string"
		       direct="false"
		       get-method="getChildUUID"
		       set-method="setChildUUID">
			<bind-xml name="ChildUUID" node="attribute"/>
		</field>
		<field name="mProperties" 
			   type="org.cristalise.kernel.utils.KeyValuePair"
			   collection="array"
			   container="false"
			   direct="false"
			   get-method="getKeyValuePairs"
			   set-method="setKeyValuePairs">
			<bind-xml name="Properties" node="element"/>
		</field>
	</class>

	<class name="org.cristalise.kernel.collection.AggregationMember" 
			extends="org.cristalise.kernel.graph.model.GraphableVertex">
		<map-to xml="AggregationMember"/>
		<field name="mItemPath"
		       type="string"
		       direct="false"
		       get-method="getChildUUID"
		       set-method="setChildUUID">
			<bind-xml name="ChildUUID" node="attribute"/>
		</field>		
		<field name="mClassProps"
		       type="string"
		       direct="false"
		       get-method="getClassProps"
		       set-method="setClassProps">
			<bind-xml name="ClassProps" node="attribute"/>
		</field>			
	</class>
		
	
	<class name="org.cristalise.kernel.collection.Collection">
		<map-to xml="Collection"/>
		<field name="mMembers"
		       type="org.cristalise.kernel.collection.CollectionMemberList"
		       direct="false"
		       get-method="getMembers"
		       set-method="setMembers">
			<bind-xml auto-naming="deriveByClass" node="element"/>
		</field>
		<field name="mVersion"
		       type="integer"
		       direct="false"
		       get-method="getVersion"
		       set-method="setVersion">
			<bind-xml name="Version" node="attribute"/>
		</field>
		<field name="mName"
		       type="string"
		       direct="false"
		       get-method="getName"
		       set-method="setName">
			<bind-xml name="CollectionName" node="attribute"/>
		</field>

	</class>
	<class name="org.cristalise.kernel.collection.Dependency" extends="org.cristalise.kernel.collection.Collection">
		<map-to xml="Dependency"/>
		<field name="mClassProps"
			   type="string"
			   direct="false"
			   get-method="getClassProps"
			   set-method="setClassProps">
			<bind-xml name="ClassProps" node="attribute"/>
		</field>
		<field name="mProperties" 
			   type="org.cristalise.kernel.utils.KeyValuePair"
			   collection="array"
			   container="false"
			   direct="false"
			   get-method="getKeyValuePairs"
			   set-method="setKeyValuePairs">
			<bind-xml name="Properties" node="element"/>
		</field>		
	</class>
	<class name="org.cristalise.kernel.collection.DependencyDescription" extends="org.cristalise.kernel.collection.Dependency">
		<map-to xml="DependencyDescription"/>
	</class>
	<class name="org.cristalise.kernel.collection.Aggregation" extends="org.cristalise.kernel.collection.Collection">
		<map-to xml="Aggregation"/>
		<field name="mLayout" type="org.cristalise.kernel.graph.model.GraphModel" direct="false" get-method="getLayout" set-method="setLayout">
			<bind-xml name="Layout" node="element"/>
		</field>
	</class>
	<class name="org.cristalise.kernel.collection.AggregationDescription" extends="org.cristalise.kernel.collection.Aggregation">
		<map-to xml="AggregationDescription"/>
	</class>
	<class name="org.cristalise.kernel.collection.AggregationInstance" extends="org.cristalise.kernel.collection.Aggregation">
		<map-to xml="AggregationInstance"/>
	</class>
	    <class name="org.cristalise.kernel.collection.CollectionArrayList">
    	<map-to xml="CollectionList"/>
    	<field name="list" 
    		   collection="arraylist" 
    		   direct="true" 
    		   type="org.cristalise.kernel.collection.Collection">    		   
			<bind-xml auto-naming="deriveByClass" node="element"/>
    	</field>
   	</class> 
</mapping>




© 2015 - 2025 Weber Informatics LLC | Privacy Policy