|
|||||||||||||||||||
| 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 | |||||||||||||||
| AttrWildcard.java | - | 72,7% | 66,7% | 70% |
|
||||||||||||||
| 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 org.jbind.xml.core.cmp.IComponentVisitor; |
|
| 13 |
import org.jbind.xml.core.cmp.ISourceInfo; |
|
| 14 |
import org.jbind.xml.core.cmp.IWildcard; |
|
| 15 |
import org.jbind.xml.core.content.IAttrWildcard; |
|
| 16 |
import org.jbind.xml.core.data.ISimpleData; |
|
| 17 |
import org.jbind.xml.core.type.IAnyType; |
|
| 18 |
import org.jbind.xml.msg.IConstraintViolations; |
|
| 19 |
import org.jbind.xml.msg.XmlException; |
|
| 20 |
|
|
| 21 |
public class AttrWildcard extends AttrDesc implements IAttrWildcard {
|
|
| 22 |
|
|
| 23 |
private IWildcard myWildcard; |
|
| 24 |
|
|
| 25 | 71 |
public AttrWildcard(ISourceInfo aSourceInfo, IWildcard aWildcard) {
|
| 26 | 71 |
super(aSourceInfo, null, null); |
| 27 | 71 |
myWildcard = aWildcard; |
| 28 |
} |
|
| 29 |
|
|
| 30 | 66 |
public IWildcard getWildcard() {
|
| 31 | 66 |
return myWildcard; |
| 32 |
} |
|
| 33 | 0 |
public void setWildcard(IWildcard aWildcard) {
|
| 34 | 0 |
myWildcard = aWildcard; |
| 35 |
} |
|
| 36 | 140 |
public void accept(IComponentVisitor aVisitor) throws XmlException {
|
| 37 | 140 |
aVisitor.visitAttrWildcardStart(this); |
| 38 | 140 |
visitSubComponents(aVisitor); |
| 39 | 140 |
aVisitor.visitAttrWildcardEnd(this); |
| 40 |
} |
|
| 41 |
|
|
| 42 | 0 |
public ISimpleData getDefault() {
|
| 43 | 0 |
return null; |
| 44 |
} |
|
| 45 | 5 |
public ISimpleData getFixed() {
|
| 46 | 5 |
return null; |
| 47 |
} |
|
| 48 | 10 |
public IAnyType getType() {
|
| 49 | 10 |
return W3CTypes.anySimpleType; |
| 50 |
} |
|
| 51 | 0 |
public boolean isReference() {
|
| 52 | 0 |
return false; |
| 53 |
} |
|
| 54 | 66 |
public void validate(IConstraintViolations aViolations) {}
|
| 55 |
|
|
| 56 |
} |
|
| 57 |
|
|
||||||||||