01: /**
02: * JOnAS: Java(TM) Open Application Server
03: * Copyright (C) 2005 Bull S.A.
04: * Contact: jonas-team@objectweb.org
05: *
06: * This library is free software; you can redistribute it and/or
07: * modify it under the terms of the GNU Lesser General Public
08: * License as published by the Free Software Foundation; either
09: * version 2.1 of the License, or any later version.
10: *
11: * This library is distributed in the hope that it will be useful,
12: * but WITHOUT ANY WARRANTY; without even the implied warranty of
13: * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14: * Lesser General Public License for more details.
15: *
16: * You should have received a copy of the GNU Lesser General Public
17: * License along with this library; if not, write to the Free Software
18: * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
19: * USA
20: *
21: * --------------------------------------------------------------------------
22: * $Id: SchemaRestrictions.java 7521 2005-10-19 02:14:21Z pasmith $
23: * --------------------------------------------------------------------------
24: */package org.objectweb.jonas.webapp.jonasadmin.xml.xs;
25:
26: import java.util.Set;
27:
28: /**
29: * An interface to represent the schema restrictions from a schema.
30: *
31: * @author Gregory Lapouchnian
32: * @author Patrick Smith
33: */
34: public interface SchemaRestrictions {
35:
36: /** A rar typed archive */
37: static int RAR_TYPE = 0;
38:
39: /** A war typed archive. */
40: static int WAR_TYPE = 1;
41:
42: /** A jar typed archive. */
43: static int JAR_TYPE = 2;
44:
45: /** An ear typed archive. */
46: static int EAR_TYPE = 3;
47:
48: /**
49: * Returns if the element given by name has an element restriction
50: * @param name the name of the element to check.
51: * @return if the element given by name has an element restriction.
52: */
53: boolean hasElementRestrictions(String name);
54:
55: /**
56: * Returns the element restrictions for the element given by name.
57: * @param name the element to get the restrictions for.
58: * @return the element restrictions for the element given by name.
59: */
60: ElementRestrictions getElementRestrictions(String name);
61:
62: /**
63: * Returns a set of the complex elements from this schema.
64: * @return a set of the complex elements from this schema.
65: */
66: Set getComplexElements();
67:
68: //public String getElementDocumentation(String name);
69: }
|