<?xml version="1.0" encoding="utf-8"?>
<!--

   DO NOT ALTER OR REMOVE COPYRIGHT NOTICE OR THIS HEADER.

   Copyright 2006, 2007 Sun Microsystems, Inc. All rights reserved.
   Use is subject to license terms.

   The contents of this file are subject to the terms of the Common Development
   and Distribution License("CDDL") (the "License"). You may not use this file
   except in compliance with the License.

   You can obtain a copy of the License at https://openinstaller.dev.java.net/license.html
   or http://openinstaller.dev.java.net/license.txt . See the License for the
   specific language governing permissions and limitations under the License.

   When distributing the Covered Code, include this CDDL Header Notice in each
   file and include the License file at http://openinstaller.dev.java.net/license.txt .
   If applicable, add the following below this CDDL Header, with the fields
   enclosed by brackets [] replaced by your own identifying information:
   "Portions Copyrighted [year] [name of copyright owner]"

   ident "@(#)%Name% %Revision% %Date% SMI"

-->

<oor:component-schema oor:version="1.1" oor:name="License" oor:package="org.openinstaller.License"
 xsi:schemaLocation="http://openoffice.org/2001/registry"
 xmlns:xs="http://www.w3.org/2001/XMLSchema"
 xmlns:oor="http://openoffice.org/2001/registry"
 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
 xml:lang='en-US'>
 <component>
     <group oor:name="license">
        <prop oor:name="ACCEPT_LICENSE" oor:type="xs:string" oor:nillable="false" oor:transient="true">
           <value>1</value>
           <info>
             <desc xml:lang="en-US">Do you accept this License Agreement?</desc>
           </info>
           <actions>
           <onSet><![CDATA[
           import org.openinstaller.util.EnhancedException;

           String theLicenseState = thisProperty.getUnconfirmedValue();
           if ("1".equals(theLicenseState)) {
              throw new EnhancedException("LICENSE_NEEDS_TO_BE_ACCEPTED", 
                  new String [] {});
           }
            ]]></onSet>
         </actions>
         </prop>
     </group>
 </component>
</oor:component-schema>
