public Class<GdataBinding> getModelType() {
return GdataBinding.class;
}
public GdataBinding read(XMLStreamReader reader) throws ContributionReadException, XMLStreamException {
GdataBinding gdataBinding = factory.createGdataBinding();
String name = reader.getAttributeValue(null, "name");
if (name != null) {
gdataBinding.setName(name);
}
String uri = reader.getAttributeValue(null, "uri");
if (uri != null) {
gdataBinding.setURI(uri);
}
String serviceType = reader.getAttributeValue(null, "serviceType");
if (serviceType != null) {
gdataBinding.setServiceType(serviceType);
}
String username = reader.getAttributeValue(null, "username");
if (username != null) {
gdataBinding.setUsername(username);
}
String password = reader.getAttributeValue(null, "password");
if (password != null) {
gdataBinding.setPassword(password);
}
return gdataBinding;
}