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