|
|||||||||||||||||||
| 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 | |||||||||||||||
| RestrictedSimpleType.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.ISourceInfo; |
|
| 15 |
import org.jbind.xml.core.constraint.ConstraintType; |
|
| 16 |
import org.jbind.xml.core.type.IRestrictedSimpleType; |
|
| 17 |
import org.jbind.xml.core.type.ISimpleType; |
|
| 18 |
import org.jbind.xml.msg.IConstraintViolations; |
|
| 19 |
|
|
| 20 |
public abstract class RestrictedSimpleType extends SimpleType implements IRestrictedSimpleType {
|
|
| 21 |
|
|
| 22 | 204 |
public RestrictedSimpleType(ISourceInfo aSourceInfo, String aNamespace, String aName, String aRole, Set aFinalTypes, IConstraintViolations aViolations) {
|
| 23 | 204 |
super(aSourceInfo, aNamespace, aName, aRole, aFinalTypes); |
| 24 |
} |
|
| 25 |
|
|
| 26 | 377 |
public final ISimpleType createRestriction(ISourceInfo aSourceInfo, String aNamespace, String aName, String aRole, Set aFinalTypes, IConstraintViolations aViolations) {
|
| 27 | 377 |
return ((ISimpleType)getBaseType()).createRestriction(aSourceInfo, aNamespace, aName, aRole, aFinalTypes, aViolations); |
| 28 |
} |
|
| 29 |
|
|
| 30 | 11680 |
public final Class getSimpleStorageType() {
|
| 31 | 11680 |
return getBaseType().getSimpleStorageType(); |
| 32 |
} |
|
| 33 |
|
|
| 34 | 839 |
public boolean isApplicable(ConstraintType aConstraintType) {
|
| 35 | 839 |
return ((ISimpleType)getBaseType()).isApplicable(aConstraintType); |
| 36 |
} |
|
| 37 |
} |
|
| 38 |
|
|
||||||||||