|
|||||||||||||||||||
| 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 | |||||||||||||||
| PrefixDeclaration.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.base; |
|
| 11 |
|
|
| 12 |
/** |
|
| 13 |
* Describes a prefix declaration, i.e. a prefix to namespace mapping. |
|
| 14 |
*/ |
|
| 15 |
public class PrefixDeclaration {
|
|
| 16 |
|
|
| 17 |
/** |
|
| 18 |
* <i>(required)</i>. The empty string denotes the the prefix declaration |
|
| 19 |
* belongs to the default namespace. |
|
| 20 |
*/ |
|
| 21 |
public final String prefix; |
|
| 22 |
|
|
| 23 |
/** |
|
| 24 |
* <i>(required)</i>. The empty string indicates that there is no namespace |
|
| 25 |
* for the prefix. Such prefix declarations are used to remove namespace |
|
| 26 |
* declarations in nested namespace context (cf. namespace 1.1 specification). |
|
| 27 |
*/ |
|
| 28 |
public final String namespace; |
|
| 29 |
|
|
| 30 | 908 |
public PrefixDeclaration(String aPrefix, String aNamespace) {
|
| 31 |
assert (null != aPrefix) && (null != aNamespace); |
|
| 32 | 908 |
prefix = aPrefix; |
| 33 | 908 |
namespace = aNamespace; |
| 34 |
} |
|
| 35 |
|
|
| 36 |
} |
|
| 37 |
|
|
||||||||||