*/
public final class BooleanType implements BooleanTypeDefinition {
private static final BooleanType INSTANCE = new BooleanType();
- private static final QName name = BaseTypes.constructQName("boolean");
- private static final SchemaPath path = new SchemaPath(Collections.singletonList(name), true);
- private static final String description = "The boolean built-in type represents a boolean value.";
- private static final String reference = "https://tools.ietf.org/html/rfc6020#section-9.5";
- private final String units = "";
+ private static final SchemaPath PATH = SchemaPath.create(true, BaseTypes.BOOLEAN_QNAME);
+ private static final String DESCRIPTION = "The boolean built-in type represents a boolean value.";
+ private static final String REFERENCE = "https://tools.ietf.org/html/rfc6020#section-9.5";
+ private static final String UNITS = "";
/**
* Default constructor with default value set to "false".
private BooleanType() {
}
+ /**
+ * Returns default instance of boolean built-in type.
+ * @return default instance of boolean built-in type.
+ */
public static BooleanType getInstance() {
return INSTANCE;
}
*/
@Override
public BooleanTypeDefinition getBaseType() {
- return this;
+ return null;
}
/*
*/
@Override
public String getUnits() {
- return units;
+ return UNITS;
}
/*
*/
@Override
public QName getQName() {
- return name;
+ return BaseTypes.BOOLEAN_QNAME;
}
/*
*/
@Override
public SchemaPath getPath() {
- return path;
+ return PATH;
}
/*
*/
@Override
public String getDescription() {
- return description;
+ return DESCRIPTION;
}
/*
*/
@Override
public String getReference() {
- return reference;
+ return REFERENCE;
}
/*
public String toString() {
StringBuilder builder = new StringBuilder();
builder.append("BooleanType [name=");
- builder.append(name);
+ builder.append(BaseTypes.BOOLEAN_QNAME);
builder.append(", path=");
- builder.append(path);
+ builder.append(PATH);
builder.append("]");
return builder.toString();
}