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.base.BlockType;
|
13
|
|
import org.jbind.xml.base.FinalType;
|
14
|
|
import org.jbind.xml.base.ISymbolspace;
|
15
|
|
import org.jbind.xml.base.ISymbolspaces;
|
16
|
|
import org.jbind.xml.core.bridge.IDataImpl;
|
17
|
|
import org.jbind.xml.core.cmp.ISourceInfo;
|
18
|
|
import org.jbind.xml.core.content.IAttrDesc;
|
19
|
|
import org.jbind.xml.core.data.IAnyTypeData;
|
20
|
|
import org.jbind.xml.core.type.IAnyType;
|
21
|
|
import org.jbind.xml.msg.XmlException;
|
22
|
|
|
23
|
|
public abstract class AttrDesc extends Component implements IAttrDesc {
|
24
|
|
|
25
|
748
|
public AttrDesc(ISourceInfo aSourceInfo, String aNamespace, String aName) {
|
26
|
748
|
super(aSourceInfo, aNamespace, aName);
|
27
|
|
}
|
28
|
|
|
29
|
0
|
public boolean isActive(BlockType aBlockType) {
|
30
|
0
|
return false;
|
31
|
|
}
|
32
|
|
|
33
|
0
|
public boolean isActive(FinalType aFinalType) {
|
34
|
0
|
return false;
|
35
|
|
}
|
36
|
|
|
37
|
6090
|
public ISymbolspace getSymbolspace() {
|
38
|
6090
|
return ISymbolspaces.ATTRIBUTE;
|
39
|
|
}
|
40
|
|
|
41
|
0
|
public String getDefaultTextContent() {
|
42
|
0
|
return (null != getDefault()) ? getDefault().getCanonicalForm_() : null;
|
43
|
|
}
|
44
|
|
|
45
|
1646
|
public final IAnyTypeData createData(IDataImpl anImpl, IAnyType anOverloadingType) throws XmlException {
|
46
|
1646
|
return DataDescHelper.createData(this, anImpl, anOverloadingType, anImpl);
|
47
|
|
}
|
48
|
|
|
49
|
0
|
public final IAnyTypeData createEmptyData(IDataImpl anImpl, IAnyType anOverloadingType) throws XmlException {
|
50
|
0
|
return DataDescHelper.createEmptyData(this, anImpl, anOverloadingType, anImpl);
|
51
|
|
}
|
52
|
|
|
53
|
6
|
public final IAnyTypeData createUncheckedData(IDataImpl anImpl, IAnyType anOverloadingType) throws XmlException {
|
54
|
6
|
return DataDescHelper.createUncheckedData(this, anImpl, anOverloadingType, anImpl);
|
55
|
|
}
|
56
|
|
|
57
|
1633
|
public final void checkValueConstraints(IAnyTypeData aData) throws XmlException {
|
58
|
1633
|
DataDescHelper.checkValueConstraints(this, aData);
|
59
|
|
}
|
60
|
|
}
|
61
|
|
|