1 /****************************************************************************
2 * Copyright (c) 2005, 2006, 2007, 2008, 2009 Imola Informatica.
3 * All rights reserved. This program and the accompanying materials
4 * are made available under the terms of the LGPL License v2.1
5 * which accompanies this distribution, and is available at
6 * http://www.gnu.org/licenses/lgpl.html
7 ****************************************************************************/
8 package it.imolinfo.jbi4corba.schema;
9
10 import java.util.List;
11 import javax.wsdl.Definition;
12 import javax.wsdl.extensions.schema.Schema;
13
14 /**
15 * This Class provide the Definition of DefinitionAndSchema
16 *
17 * @author <a href="mailto:lacquaviva@imolinfo.it">Luca Acquaviva</a>
18 */
19 public class DefinitionAndSchema {
20
21 /**
22 * The List of Definition.
23 */
24 private List<Definition> definitions = null;
25
26 /**
27 * The List of Schema for the Definitions
28 */
29 private List<Schema> schemas = null;
30
31 /**
32 * Flag that report if al-most one definition contains W3CEPR
33 **/
34 private boolean containsW3c = false;
35
36 public DefinitionAndSchema() {
37 containsW3c = false;
38 }
39
40 public DefinitionAndSchema(List<Definition> defList, List<Schema> schemList) {
41
42 definitions = defList;
43 schemas = schemList;
44 containsW3c = false;
45 }
46
47 public void setDefinition(List<Definition> definitions) {
48
49 this.definitions = definitions;
50 }
51
52 /**
53 * Return the List of Definition
54 *
55 * @return list of Definition
56 */
57 public List<Definition> getDefinitions() {
58 return definitions;
59 }
60
61 public void setSchemas(List<Schema> schemas) {
62 this.schemas = schemas;
63
64 }
65
66 /**
67 * Return the List of Definition
68 *
69 * @return list of Schema
70 */
71 public List<Schema> getSchemas() {
72 return schemas;
73 }
74
75 public boolean isContainsW3c() {
76 return containsW3c;
77 }
78
79 public void setContainsW3c(boolean containsW3c) {
80 this.containsW3c = containsW3c;
81 }
82
83 }