|
|||||||||||||||||||
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 | |||||||||||||||
ContentModelDesc.java | 50% | 71,4% | 75% | 69,2% |
|
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.msg.IConstraintViolations; |
|
13 |
import org.jbind.xml.msg.XmlMessages; |
|
14 |
import org.jbind.xml.schema.instantiation.IElemValHelper; |
|
15 |
import org.jbind.xml.schema.instantiation.IJobRefs; |
|
16 |
|
|
17 |
public abstract class ContentModelDesc extends Annotated implements IContentModelDesc { |
|
18 |
|
|
19 |
private IDerivation myDerivation = null; |
|
20 |
|
|
21 |
|
|
22 | 200 |
public ContentModelDesc(CreationParams aCreationParams) { |
23 | 200 |
super(aCreationParams); |
24 |
} |
|
25 |
|
|
26 |
|
|
27 | 2831 |
public IDerivation getDerivation() { |
28 | 2831 |
return myDerivation; |
29 |
} |
|
30 |
|
|
31 |
|
|
32 | 200 |
public void validateElement(IElemValHelper aHelper, IConstraintViolations aViolations) { |
33 | 200 |
super.validateElement(aHelper, aViolations); |
34 | 200 |
myDerivation = (IDerivation)getSubElement(IDerivation.class, "duplicate derivation", aViolations); |
35 | 200 |
if (null == myDerivation) { |
36 | 0 |
aViolations.add(XmlMessages.missingDerivation(this)); |
37 |
} |
|
38 |
} |
|
39 |
|
|
40 | 0 |
public void collectRefsForCreation(IJobRefs aJobRefs) { |
41 | 0 |
myDerivation.collectRefsForCreation(aJobRefs); |
42 |
} |
|
43 |
} |
|
44 |
|
|