|
|||||||||||||||||||
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 | |||||||||||||||
Constraint.java | - | 25% | 25% | 25% |
|
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.constraint; |
|
11 |
|
|
12 |
import org.jbind.xml.base.IHasLocation; |
|
13 |
import org.jbind.xml.base.ILocation; |
|
14 |
import org.jbind.xml.core.constraint.IConstraint; |
|
15 |
|
|
16 |
public abstract class Constraint implements IConstraint { |
|
17 |
|
|
18 |
private IHasLocation myHasLocation = null; |
|
19 |
|
|
20 |
private boolean myIsFinal = false; |
|
21 |
|
|
22 | 20 |
public Constraint(IHasLocation aHasLocation) { |
23 | 20 |
myHasLocation = aHasLocation; |
24 |
} |
|
25 |
|
|
26 | 0 |
public boolean isFinal() { |
27 | 0 |
return myIsFinal; |
28 |
} |
|
29 |
|
|
30 | 0 |
public void setIsFinal(boolean aBoolean) { |
31 | 0 |
myIsFinal = aBoolean; |
32 |
} |
|
33 |
|
|
34 | 0 |
public ILocation getLocation() { |
35 | 0 |
return (null != myHasLocation) ? myHasLocation.getLocation() : null; |
36 |
} |
|
37 |
} |
|
38 |
|
|