|
|||||||||||||||||||
| 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 | |||||||||||||||
| AdditionalSource.java | 50% | 88,9% | 100% | 85,7% |
|
||||||||||||||
| 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.IAttribute; |
|
| 13 |
import org.jbind.xml.msg.XmlException; |
|
| 14 |
|
|
| 15 |
public abstract class AdditionalSource extends Annotated implements IAdditionalSource {
|
|
| 16 |
|
|
| 17 |
private String mySchemaLocation = null; |
|
| 18 |
|
|
| 19 | 49 |
public AdditionalSource(CreationParams aCreationParams) {
|
| 20 | 49 |
super(aCreationParams); |
| 21 |
} |
|
| 22 |
|
|
| 23 | 49 |
protected IAttribute doCreateAttribute(ACParams anACParams) throws XmlException {
|
| 24 | 49 |
IAttribute res = null; |
| 25 | 49 |
String an = NameUtil.getSchemaAttributeName(anACParams); |
| 26 | 49 |
if ("schemaLocation".equals(an)) {
|
| 27 | 49 |
res = new Attribute(anACParams); |
| 28 | 49 |
mySchemaLocation = res.getStringValue(); |
| 29 |
} else {
|
|
| 30 | 0 |
res = super.doCreateAttribute(anACParams); |
| 31 |
} |
|
| 32 | 49 |
return res; |
| 33 |
} |
|
| 34 |
|
|
| 35 | 63 |
public String getSchemaLocation() {
|
| 36 | 63 |
return mySchemaLocation; |
| 37 |
} |
|
| 38 |
|
|
| 39 |
} |
|
| 40 |
|
|
||||||||||