/** * 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) { NamedNodeMap list = event.getAttributes(); int length = list.getLength(); for (int i = 0; i < length; i++) { Node node = list.item(i); Attribute value = attribute(node); if(!value.isReserved()) { event.add(value); } } 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) { NamedNodeMap list = event.getAttributes(); int length = list.getLength(); for (int i = 0; i < length; i++) { Node node = list.item(i); Attribute value = attribute(node); if(!value.isReserved()) { event.add(value); } } 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) { NamedNodeMap list = event.getAttributes(); int length = list.getLength(); for (int i = 0; i < length; i++) { Node node = list.item(i); Attribute value = attribute(node); if(!value.isReserved()) { event.add(value); } } return event; }
/** * This is used to convert the provided node to a start event. The * conversion process ensures the node can be digested by the core * reader and used to provide an <code>InputNode</code> that can * be used to represent an XML elements within the source document. * * @param node the node that is to be converted to a start event * * @return this returns a start event created from the given node */ private Start start(Node node) { Start event = new Start(node); if(event.isEmpty()) { return build(event); } return event; }
/** * This is used to convert the provided node to a start event. The * conversion process ensures the node can be digested by the core * reader and used to provide an <code>InputNode</code> that can * be used to represent an XML elements within the source document. * * @param node the node that is to be converted to a start event * * @return this returns a start event created from the given node */ private Start start(Node node) { Start event = new Start(node); if(event.isEmpty()) { return build(event); } return event; }
/** * This is used to convert the provided node to a start event. The * conversion process ensures the node can be digested by the core * reader and used to provide an <code>InputNode</code> that can * be used to represent an XML elements within the source document. * * @param node the node that is to be converted to a start event * * @return this returns a start event created from the given node */ private Start start(Node node) { Start event = new Start(node); if(event.isEmpty()) { return build(event); } return event; }