|
|||||||||||||||||||
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 | |||||||||||||||
RestrictedAtomicType.java | - | 100% | 100% | 100% |
|
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.Set; |
|
13 |
|
|
14 |
import org.jbind.xml.core.cmp.IComponentVisitor; |
|
15 |
import org.jbind.xml.core.cmp.ISourceInfo; |
|
16 |
import org.jbind.xml.core.constraint.ICheckContext; |
|
17 |
import org.jbind.xml.core.type.IAnyType; |
|
18 |
import org.jbind.xml.core.type.IAtomicType; |
|
19 |
import org.jbind.xml.msg.IConstraintViolations; |
|
20 |
import org.jbind.xml.msg.XmlException; |
|
21 |
|
|
22 |
public class RestrictedAtomicType extends RestrictedSimpleType implements IAtomicType { |
|
23 |
|
|
24 | 187 |
public RestrictedAtomicType(ISourceInfo aSourceInfo, String aNamespace, String aName, String aRole, Set aFinalTypes, IConstraintViolations aViolations) { |
25 | 187 |
super(aSourceInfo, aNamespace, aName, aRole, aFinalTypes, aViolations); |
26 |
} |
|
27 |
|
|
28 | 385 |
public void accept(IComponentVisitor aVisitor) throws XmlException { |
29 | 385 |
aVisitor.visitAtomicTypeStart(this); |
30 | 385 |
visitSubComponents(aVisitor); |
31 | 385 |
aVisitor.visitAtomicTypeEnd(this); |
32 |
} |
|
33 |
|
|
34 | 1734 |
public void checkEnclosedConstraints(ICheckContext aContext) {} |
35 |
|
|
36 | 616 |
public final IAnyType getInstanceType() { |
37 | 616 |
return this; |
38 |
} |
|
39 |
|
|
40 | 1612 |
protected boolean isUnion() { |
41 | 1612 |
return false; |
42 |
} |
|
43 |
|
|
44 |
} |
|
45 |
|
|