SchemaType () { if (myOutputRng.isSelected()) { return SchemaType.RNG; } else if (myOutputRnc.isSelected()) { return SchemaType.RNC; } else if (myOutputXsd.isSelected()) { return SchemaType.XSD; } else { assert myOutputDtd.isSelected(); return SchemaType.DTD; } }