コード例 #1
0
 public void endElement(String tag, SimpleXmlDefaultLoader ended) throws SAXParseException {
   if (tag.equals(TAG_CHOICE)) {
     ChoiceItemXmlLoader loader = (ChoiceItemXmlLoader) ended;
     String itemCode = loader.getCode();
     String itemLabel = loader.getLabel();
     ChoiceItem choice = new ChoiceItem(itemCode, itemLabel);
     setOfChoices.add(choice);
   }
   super.endElement(tag, ended);
 }
コード例 #2
0
 public void startDocument(Attributes attrs) throws SAXParseException {
   String code = attrs.getValue(ATTRIBUTE_REUSABLE_CHOICES_CODE);
   String label = attrs.getValue(ATTRIBUTE_REUSABLE_CHOICES_LABEL);
   setOfChoices = new ReusableChoices(code, label);
   super.startDocument(attrs);
 }