* @author Remy Maucherat
*/
public class RespectBindingParser extends MetaDataElementParser {
public static RespectBinding parse(XMLStreamReader reader) throws XMLStreamException {
RespectBinding respectBinding = new RespectBinding();
// Handle elements
while (reader.hasNext() && reader.nextTag() != END_ELEMENT) {
final Element element = Element.forName(reader.getLocalName());
switch (element) {
case ENABLED:
respectBinding.setEnabled(Boolean.valueOf(reader.getElementText()));
break;
default: throw unexpectedElement(reader);
}
}