01: /**
02: * JOnAS: Java(TM) Open Application Server Copyright (C) 2005 Bull S.A. Contact:
03: * jonas-team@objectweb.org
04: *
05: * This library is free software; you can redistribute it and/or modify it under
06: * the terms of the GNU Lesser General Public License as published by the Free
07: * Software Foundation; either version 2.1 of the License, or any later version.
08: *
09: * This library is distributed in the hope that it will be useful, but WITHOUT
10: * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
11: * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
12: * details.
13: *
14: * You should have received a copy of the GNU Lesser General Public License
15: * along with this library; if not, write to the Free Software Foundation, Inc.,
16: * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
17: *
18: * --------------------------------------------------------------------------
19: * $Id: SchemaRestrictionsFactory.java 7521 2005-10-19 02:14:21Z pasmith $
20: * --------------------------------------------------------------------------
21: */package org.objectweb.jonas.webapp.jonasadmin.xml.xs;
22:
23: import org.objectweb.jonas.webapp.jonasadmin.xml.xs.hardcoded.HCSchemaRestrictions;
24:
25: /**
26: * A factory to create a schema restriction implementation.
27: *
28: * @author Gregory Lapouchnian
29: * @author Patrick Smith
30: */
31: public class SchemaRestrictionsFactory {
32:
33: /**
34: * Return a new implementation of a schema restriction.
35: * @param type the type of archive.
36: * @return an instance of an implementation of schema restriction.
37: */
38: public SchemaRestrictions getSchemaRestrictions(int type) {
39: return new HCSchemaRestrictions(type);
40: }
41: }
|