/** * Constructor for the <code>InputAttribute</code> object. This * is used to create an input attribute using the provided name * and value, all other values for this input node will be null. * * @param parent this is the parent node to this attribute * @param attribute this is the attribute containing the details */ public InputAttribute(InputNode parent, Attribute attribute) { this.reference = attribute.getReference(); this.prefix = attribute.getPrefix(); this.source = attribute.getSource(); this.value = attribute.getValue(); this.name = attribute.getName(); this.parent = parent; }
/** * 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; }
/** * Constructor for the <code>InputAttribute</code> object. This * is used to create an input attribute using the provided name * and value, all other values for this input node will be null. * * @param parent this is the parent node to this attribute * @param attribute this is the attribute containing the details */ public InputAttribute(InputNode parent, Attribute attribute) { this.reference = attribute.getReference(); this.prefix = attribute.getPrefix(); this.source = attribute.getSource(); this.value = attribute.getValue(); this.name = attribute.getName(); this.parent = parent; }
/** * 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; }
/** * Constructor for the <code>InputAttribute</code> object. This * is used to create an input attribute using the provided name * and value, all other values for this input node will be null. * * @param parent this is the parent node to this attribute * @param attribute this is the attribute containing the details */ public InputAttribute(InputNode parent, Attribute attribute) { this.reference = attribute.getReference(); this.prefix = attribute.getPrefix(); this.source = attribute.getSource(); this.value = attribute.getValue(); this.name = attribute.getName(); this.parent = parent; }
/** * This is used to insert all attributes belonging to the start * element to the map. All attributes acquired from the element * are converted into <code>InputAttribute</code> objects so * that they can be used as input nodes by an input node. * * @param element the element to acquire attributes from */ private void build(EventNode element) { for(Attribute entry : element) { InputAttribute value = new InputAttribute(source, entry); if(!entry.isReserved()) { put(value.getName(), value); } } }
/** * This is used to insert all attributes belonging to the start * element to the map. All attributes acquired from the element * are converted into <code>InputAttribute</code> objects so * that they can be used as input nodes by an input node. * * @param element the element to acquire attributes from */ private void build(EventNode element) { for(Attribute entry : element) { InputAttribute value = new InputAttribute(source, entry); if(!entry.isReserved()) { put(value.getName(), value); } } }
/** * This is used to insert all attributes belonging to the start * element to the map. All attributes acquired from the element * are converted into <code>InputAttribute</code> objects so * that they can be used as input nodes by an input node. * * @param element the element to acquire attributes from */ private void build(EventNode element) { for(Attribute entry : element) { InputAttribute value = new InputAttribute(source, entry); if(!entry.isReserved()) { put(value.getName(), value); } } }