Search in sources :

Example 1 with AxiomContainer

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;
}
Also used : AxiomProcessingInstruction(org.apache.axiom.om.impl.intf.AxiomProcessingInstruction) CoreModelException(org.apache.axiom.core.CoreModelException) AxiomContainer(org.apache.axiom.om.impl.intf.AxiomContainer)

Example 2 with AxiomContainer

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;
}
Also used : AxiomEntityReference(org.apache.axiom.om.impl.intf.AxiomEntityReference) AxiomContainer(org.apache.axiom.om.impl.intf.AxiomContainer)

Example 3 with AxiomContainer

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;
}
Also used : AxiomDocType(org.apache.axiom.om.impl.intf.AxiomDocType) AxiomContainer(org.apache.axiom.om.impl.intf.AxiomContainer)

Aggregations

AxiomContainer (org.apache.axiom.om.impl.intf.AxiomContainer)3 CoreModelException (org.apache.axiom.core.CoreModelException)1 AxiomDocType (org.apache.axiom.om.impl.intf.AxiomDocType)1 AxiomEntityReference (org.apache.axiom.om.impl.intf.AxiomEntityReference)1 AxiomProcessingInstruction (org.apache.axiom.om.impl.intf.AxiomProcessingInstruction)1