/** * This is used to build the attributes that are to be used to * populate the start event. Populating the start event with the * attributes it contains is required so that each element will * contain its associated attributes. Only attributes that are * not reserved will be added to the start event. * * @param event this is the start event that is to be populated * * @return this returns a start event with its attributes */ private Start build(Start event) throws Exception { int count = parser.getAttributeCount(); for(int i = 0; i < count; i++) { Entry entry = attribute(i); if(!entry.isReserved()) { event.add(entry); } } return event; }
/** * This is used to build the attributes that are to be used to * populate the start event. Populating the start event with the * attributes it contains is required so that each element will * contain its associated attributes. Only attributes that are * not reserved will be added to the start event. * * @param event this is the start event that is to be populated * * @return this returns a start event with its attributes */ private Start build(Start event) throws Exception { int count = parser.getAttributeCount(); for(int i = 0; i < count; i++) { Entry entry = attribute(i); if(!entry.isReserved()) { event.add(entry); } } return event; }
/** * This is used to build the attributes that are to be used to * populate the start event. Populating the start event with the * attributes it contains is required so that each element will * contain its associated attributes. Only attributes that are * not reserved will be added to the start event. * * @param event this is the start event that is to be populated * * @return this returns a start event with its attributes */ private Start build(Start event) throws Exception { int count = parser.getAttributeCount(); for(int i = 0; i < count; i++) { Entry entry = attribute(i); if(!entry.isReserved()) { event.add(entry); } } return event; }