use of org.apache.axiom.om.impl.intf.AxiomContainer in project webservices-axiom by apache.
the class OMFactoryImpl method createOMProcessingInstruction.
@Override
public final OMProcessingInstruction createOMProcessingInstruction(OMContainer parent, String piTarget, String piData) {
AxiomProcessingInstruction node = createNode(AxiomProcessingInstruction.class);
node.coreSetTarget(piTarget);
try {
node.coreSetCharacterData(piData, AxiomSemantics.INSTANCE);
} catch (CoreModelException ex) {
throw AxiomExceptionTranslator.translate(ex);
}
if (parent != null) {
((AxiomContainer) parent).addChild(node);
}
return node;
}
use of org.apache.axiom.om.impl.intf.AxiomContainer in project webservices-axiom by apache.
the class OMFactoryImpl method createOMEntityReference.
@Override
public final OMEntityReference createOMEntityReference(OMContainer parent, String name) {
AxiomEntityReference node = createNode(AxiomEntityReference.class);
node.coreSetName(name);
if (parent != null) {
((AxiomContainer) parent).addChild(node);
}
return node;
}
use of org.apache.axiom.om.impl.intf.AxiomContainer in project webservices-axiom by apache.
the class OMFactoryImpl method createOMDocType.
@Override
public final OMDocType createOMDocType(OMContainer parent, String rootName, String publicId, String systemId, String internalSubset) {
AxiomDocType node = createNode(AxiomDocType.class);
node.coreSetRootName(rootName);
node.coreSetPublicId(publicId);
node.coreSetSystemId(systemId);
node.coreSetInternalSubset(internalSubset);
if (parent != null) {
((AxiomContainer) parent).addChild(node);
}
return node;
}
Aggregations