| 1 |
|
package uk.co.badgersinfoil.asxsd; |
| 2 |
|
|
| 3 |
|
import org.eclipse.xsd.XSDConcreteComponent; |
| 4 |
|
import uk.co.badgersinfoil.metaas.dom.ASCompilationUnit; |
| 5 |
|
|
| 6 |
|
public class TypeDescriptor { |
| 7 |
|
private String typeName; |
| 8 |
|
|
| 9 |
|
|
| 10 |
|
|
| 11 |
|
|
| 12 |
|
|
| 13 |
|
|
| 14 |
|
|
| 15 |
|
|
| 16 |
|
|
| 17 |
|
private boolean array; |
| 18 |
|
private String documentation; |
| 19 |
|
private ASCompilationUnit implementation; |
| 20 |
|
private XSDConcreteComponent component; |
| 21 |
|
|
| 22 |
|
public TypeDescriptor(String typeName, |
| 23 |
|
boolean array, |
| 24 |
|
String documentation, |
| 25 |
|
XSDConcreteComponent component) |
| 26 |
59 |
{ |
| 27 |
59 |
this.typeName = typeName; |
| 28 |
59 |
this.array = array; |
| 29 |
59 |
this.documentation = documentation; |
| 30 |
59 |
this.component = component; |
| 31 |
59 |
} |
| 32 |
|
public boolean isArray() { |
| 33 |
8 |
return array; |
| 34 |
|
} |
| 35 |
|
public void setArray(boolean array) { |
| 36 |
0 |
this.array = array; |
| 37 |
0 |
} |
| 38 |
|
public String getDocumentation() { |
| 39 |
72 |
return documentation; |
| 40 |
|
} |
| 41 |
|
public void setDocumentation(String documentation) { |
| 42 |
0 |
this.documentation = documentation; |
| 43 |
0 |
} |
| 44 |
|
public String getTypeName() { |
| 45 |
301 |
return typeName; |
| 46 |
|
} |
| 47 |
|
public void setTypeName(String typeName) { |
| 48 |
0 |
this.typeName = typeName; |
| 49 |
0 |
} |
| 50 |
|
public ASCompilationUnit getImplementation() { |
| 51 |
0 |
return implementation; |
| 52 |
|
} |
| 53 |
|
|
| 54 |
|
|
| 55 |
|
|
| 56 |
|
|
| 57 |
|
public XSDConcreteComponent getComponent() { |
| 58 |
0 |
return component; |
| 59 |
|
} |
| 60 |
|
public void setImplementation(ASCompilationUnit implementation) { |
| 61 |
57 |
this.implementation = implementation; |
| 62 |
57 |
} |
| 63 |
|
public boolean hasImplementation() { |
| 64 |
0 |
return implementation != null; |
| 65 |
|
} |
| 66 |
|
public String toString() { |
| 67 |
0 |
return "[TypeDescriptor:"+typeName+"]"; |
| 68 |
|
} |
| 69 |
|
} |