* @param type the MIB type
* @param indent the indentation to use
*/
private void printConstraint(MibType type, String indent) {
IntegerType intType;
BitSetType bitType;
StringType strType;
if (type instanceof IntegerType) {
intType = (IntegerType) type;
if (intType.hasSymbols()) {
os.println(" {");
printEnumeration(intType.getAllSymbols(),
indent + " ");
os.println();
os.print(indent);
os.print("}");
} else if (intType.hasConstraint()) {
os.print(" (");
os.print(intType.getConstraint());
os.print(")");
}
} else if (type instanceof BitSetType) {
bitType = (BitSetType) type;
if (bitType.hasSymbols()) {
os.println(" {");
printEnumeration(bitType.getAllSymbols(),
indent + " ");
os.println();
os.print(indent);
os.print("}");
} else if (bitType.hasConstraint()) {
os.print(" (");
os.print(bitType.getConstraint());
os.print(")");
}
} else if (type instanceof StringType) {
strType = (StringType) type;
if (strType.hasConstraint()) {