public Class<EchoBinding> getModelType() {
return EchoBinding.class;
}
public EchoBinding read(XMLStreamReader reader) throws ContributionReadException, XMLStreamException {
EchoBinding echoBinding = factory.createEchoBinding();
IntentAttachPointType bindingType = new IntentAttachPointTypeFactoryImpl().createBindingType();
bindingType.setName(getArtifactType());
bindingType.setUnresolved(true);
((PolicySetAttachPoint)echoBinding).setType(bindingType);
String name = reader.getAttributeValue(null, "name");
if (name != null) {
echoBinding.setName(name);
}
String uri = reader.getAttributeValue(null, "uri");
if (uri != null) {
echoBinding.setURI(uri);
}
policyProcessor.readPolicies(echoBinding, reader);
return echoBinding;