- private static class TypeDefinitionImpl<T extends TypeDefinition<T>>
- implements TypeDefinition<T> {
-
- private final QName qname;
- private SchemaPath path;
- private String description;
- private String reference;
- private Status status = Status.CURRENT;
- private Object defaultValue;
- private T baseType;
- private String units;
- private List<UnknownSchemaNode> unknownSchemaNodes = Collections.emptyList();
-
- private TypeDefinitionImpl(QName qname) {
- this.qname = qname;
- }
-
- @Override
- public QName getQName() {
- return qname;
- }
-
- @Override
- public SchemaPath getPath() {
- return path;
- }
-
- private void setPath(SchemaPath path) {
- this.path = path;
- }
-
- @Override
- public String getDescription() {
- return description;
- }
-
- private void setDescription(String description) {
- this.description = description;
- }
-
- @Override
- public String getReference() {
- return reference;
- }
-
- private void setReference(String reference) {
- this.reference = reference;
- }
-
- @Override
- public Status getStatus() {
- return status;
- }
-
- private void setStatus(Status status) {
- this.status = status;
- }
-
- @Override
- public T getBaseType() {
- return baseType;
- }
-
- private void setBaseType(T type) {
- this.baseType = type;
- }
-
- @Override
- public String getUnits() {
- return units;