|
|||||||||||||||||||
| 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 | |||||||||||||||
| ChoiceModelGroup.java | - | 66,7% | 60% | 63,6% |
|
||||||||||||||
| 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.element; |
|
| 11 |
|
|
| 12 |
import org.jbind.xml.base.ISymbolspace; |
|
| 13 |
import org.jbind.xml.base.ISymbolspaces; |
|
| 14 |
import org.jbind.xml.core.cmp.IComponent; |
|
| 15 |
import org.jbind.xml.msg.IConstraintViolations; |
|
| 16 |
import org.jbind.xml.schema.cmp.ChoiceDecl; |
|
| 17 |
import org.jbind.xml.schema.instantiation.IElementHelper; |
|
| 18 |
|
|
| 19 |
public class ChoiceModelGroup extends ModelGroup {
|
|
| 20 |
|
|
| 21 | 124 |
public ChoiceModelGroup(CreationParams aCreationParams) {
|
| 22 | 124 |
super(aCreationParams); |
| 23 |
} |
|
| 24 |
|
|
| 25 | 120 |
public IComponent createComponent(IElementHelper aHelper, IConstraintViolations aViolations, String aNamespace, String aName) {
|
| 26 | 120 |
ChoiceDecl res = new ChoiceDecl(this, aNamespace, aName, getRange()); |
| 27 | 120 |
doAddSubJobs(res, aHelper, aViolations); |
| 28 | 120 |
return res; |
| 29 |
} |
|
| 30 |
|
|
| 31 | 120 |
public void completeComponent(IElementHelper aHelper, IComponent aComponent, IConstraintViolations aViolations) {}
|
| 32 |
|
|
| 33 | 0 |
public String getName() {
|
| 34 | 0 |
return null; |
| 35 |
} |
|
| 36 | 0 |
public ISymbolspace getSymbolSpace() {
|
| 37 | 0 |
return ISymbolspaces.ELEMENT_GROUP; |
| 38 |
} |
|
| 39 |
|
|
| 40 |
} |
|
| 41 |
|
|
||||||||||