Fix issue Felix-716

Provides XML-Schemas for core features (core handler, component, handler, instance), compositions, external handlers.
Modifies the manipulator in order to check schema when specified in the XML descriptor.
Tests suites now use schemas.

git-svn-id: https://svn.apache.org/repos/asf/felix/trunk@693468 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/ipojo/handler/eventadmin/src/main/resources/event-admin.xsd b/ipojo/handler/eventadmin/src/main/resources/event-admin.xsd
new file mode 100644
index 0000000..943608e
--- /dev/null
+++ b/ipojo/handler/eventadmin/src/main/resources/event-admin.xsd
@@ -0,0 +1,44 @@
+<!--
+	Licensed to the Apache Software Foundation (ASF) under one
+	or more contributor license agreements.  See the NOTICE file
+	distributed with this work for additional information
+	regarding copyright ownership.  The ASF licenses this file
+	to you under the Apache License, Version 2.0 (the
+	"License"); you may not use this file except in compliance
+	with the License.  You may obtain a copy of the License at
+	
+	http://www.apache.org/licenses/LICENSE-2.0
+	
+	Unless required by applicable law or agreed to in writing,
+	software distributed under the License is distributed on an
+	"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+	KIND, either express or implied.  See the License for the
+	specific language governing permissions and limitations
+	under the License.
+-->
+<xs:schema targetNamespace="org.apache.felix.ipojo.handlers.event.EventAdminHandler"
+	xmlns="org.apache.felix.ipojo.handlers.event.EventAdminHandler"
+	xmlns:xs="http://www.w3.org/2001/XMLSchema"
+	elementFormDefault="qualified">	
+
+    <xs:complexType name="PublisherType">
+    	<xs:attribute name="name" type="xs:string" use="required"></xs:attribute>
+    	<xs:attribute name="field" type="xs:string" use="required"></xs:attribute>
+    	<xs:attribute name="topics" type="xs:string" use="optional"></xs:attribute>
+    	<xs:attribute name="synchronous" type="xs:boolean" use="optional"></xs:attribute>
+    	<xs:attribute name="data-key" type="xs:string" use="optional"></xs:attribute>
+    </xs:complexType>
+    
+    <xs:complexType name="SubscriberType">
+    	<xs:attribute name="name" type="xs:string" use="required"></xs:attribute>
+    	<xs:attribute name="callback" type="xs:string" use="required"></xs:attribute>
+    	<xs:attribute name="topics" type="xs:string" use="optional"></xs:attribute>
+    	<xs:attribute name="filter" type="xs:string" use="optional"></xs:attribute>
+    	<xs:attribute name="data-key" type="xs:string" use="optional"></xs:attribute>
+    	<xs:attribute name="data-type" type="xs:string" use="optional"></xs:attribute>
+    </xs:complexType>
+    
+    <xs:element name="publisher" type="PublisherType"></xs:element>
+    <xs:element name="subscriber" type="SubscriberType"></xs:element>
+    
+</xs:schema>
\ No newline at end of file