private DSLSentence[] makeArray(List ls) {
return (DSLSentence[]) ls.toArray( new DSLSentence[ls.size()] );
}
public void addDSLMapping(AbstractDSLMappingEntry entry) {
DSLSentence sen = new DSLSentence();
sen.sentence = entry.getSentence();
if (entry.getSection() == DSLMappingEntry.CONDITION) {
this.conditionDSLSentences.add(sen);
} else if (entry.getSection() == DSLMappingEntry.CONSEQUENCE) {
this.actionDSLSentences.add(sen);