use of org.eclipse.smarthome.config.xml.util.NodeIterator in project smarthome by eclipse.
the class ChannelConverter method unmarshal.
@Override
public Object unmarshal(HierarchicalStreamReader reader, UnmarshallingContext context) {
// read attributes
Map<String, String> attributes = this.attributeMapValidator.readValidatedAttributes(reader);
// read values
List<?> nodes = (List<?>) context.convertAnother(context, List.class);
NodeIterator nodeIterator = new NodeIterator(nodes);
// create object
Object object = unmarshalType(reader, context, attributes, nodeIterator);
nodeIterator.assertEndOfType();
return object;
}
Aggregations