Introduction - If you have any usage issues, please Google them yourself
Romulus
* @version 1.0
*/
public class ChoiceItem implements RomulusNode{
/** The ident of the choice item.*/
private String ident = null
/** The content of the choice item.*/
private Content cont = null
/** The label of the choice item.*/
private String label = null
/** true if the item is the correct choice item.*/
private boolean is_corr = false
/** Creates a new instance of ChoiceItem*/
ChoiceItem(String ident, String label, boolean is_corr) throws RomulusException{
if(ident == null){
throw new RomulusException(RomulusException.IdentError)
}
this.ident = ident
this.label = label
this.is_corr = is_corr
}
void setContent(Content c){
this.cont = c
}
/**Getter*/
public String getIdent(){
return this.ident
}
public String getLabel(){
return this.label
}