1 package org.codehaus.modello.plugin.xsd.metadata;
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19 import org.codehaus.modello.metadata.ClassMetadata;
20
21
22
23
24
25
26 public class XsdClassMetadata implements ClassMetadata {
27 public static final String ID = XsdClassMetadata.class.getName();
28
29 public static final String COMPOSITOR_ALL = "all";
30
31 public static final String COMPOSITOR_SEQUENCE = "sequence";
32
33 private String compositor = COMPOSITOR_ALL;
34
35 public String getCompositor() {
36 return compositor;
37 }
38
39 public void setCompositor(String compositor) {
40 if (COMPOSITOR_ALL.equals(compositor) || COMPOSITOR_SEQUENCE.equals(compositor)) {
41 this.compositor = compositor;
42 } else {
43
44 this.compositor = COMPOSITOR_ALL;
45 }
46 }
47 }