|
|||||||||||||||||||
This license of Clover is provided to support the development of JBind only. Please visit http://www.thecortex.net/clover to obtain a licensed version of Clover. | |||||||||||||||||||
Source file | Conditionals | Statements | Methods | TOTAL | |||||||||||||||
BuiltInListType.java | - | 66,7% | 66,7% | 66,7% |
|
1 |
/* |
|
2 |
* JBind |
|
3 |
* |
|
4 |
* Copyright (c) by Stefan Wachter. All rights reserved. |
|
5 |
* |
|
6 |
* Usage, modification, and redistribution is subject to license terms that are |
|
7 |
* available at 'http://www.jbind.org'. The JBind license is like the |
|
8 |
* 'Apache Software License V 1.1'. |
|
9 |
*/ |
|
10 |
package org.jbind.xml.schema.cmp; |
|
11 |
|
|
12 |
import java.util.Collections; |
|
13 |
|
|
14 |
import org.jbind.xml.base.INamespaces; |
|
15 |
import org.jbind.xml.core.cmp.IComponentVisitor; |
|
16 |
import org.jbind.xml.core.cmp.ISourceInfo; |
|
17 |
import org.jbind.xml.core.data.IDataCreator; |
|
18 |
import org.jbind.xml.core.type.IAnySimpleType; |
|
19 |
import org.jbind.xml.core.type.ISimpleType; |
|
20 |
import org.jbind.xml.msg.XmlException; |
|
21 |
|
|
22 |
public class BuiltInListType extends AbstractListType { |
|
23 |
|
|
24 |
private IDataCreator myDataCreator = null; |
|
25 |
private IAnySimpleType myItemType = null; |
|
26 |
|
|
27 | 12 |
public BuiltInListType(ISourceInfo aSourceInfo, String aName, IAnySimpleType aBaseType, IDataCreator aDataCreator, IAnySimpleType anItemType) { |
28 | 12 |
super(aSourceInfo, INamespaces.XML_SCHEMA, aName, null, Collections.EMPTY_SET); |
29 | 12 |
myDataCreator = aDataCreator; |
30 | 12 |
myItemType = anItemType; |
31 | 12 |
setBaseType(aBaseType); |
32 | 12 |
setDataCreator(aDataCreator); |
33 |
} |
|
34 |
|
|
35 | 187 |
public ISimpleType getItemType() { |
36 | 187 |
return myItemType; |
37 |
} |
|
38 |
|
|
39 | 0 |
public final void accept(IComponentVisitor aVisitor) throws XmlException { |
40 | 0 |
aVisitor.visitListTypeStart(this); |
41 | 0 |
visitSubComponents(aVisitor); |
42 | 0 |
aVisitor.visitListTypeEnd(this); |
43 |
} |
|
44 |
} |
|
45 |
|
|