use of org.apache.axiom.core.CoreNSAwareAttribute in project webservices-axiom by apache.
the class BuildableContext method processAttribute.
@Override
void processAttribute(String namespaceURI, String localName, String prefix, String value, String type, boolean specified) throws StreamException {
if (passThroughHandler != null) {
passThroughHandler.processAttribute(namespaceURI, localName, prefix, value, type, specified);
} else {
CoreNSAwareAttribute attr = builderHandler.nodeFactory.createNode(CoreNSAwareAttribute.class);
attr.initName(namespaceURI, localName, prefix, builderHandler.namespaceHelper);
try {
attr.coreSetCharacterData(value, null);
} catch (CoreModelException ex) {
throw new CoreModelStreamException(ex);
}
attr.coreSetType(type);
attr.coreSetSpecified(specified);
((CoreElement) target).coreAppendAttribute(attr);
}
}
Aggregations