Package org.apache.ws.commons.om

Examples of org.apache.ws.commons.om.OMAttribute


    public OMElement processElementforRefs(OMElement elemnts) throws AxisFault {
        Iterator itr = elemnts.getChildElements();
        while (itr.hasNext()) {
            OMElement omElement = (OMElement) itr.next();
            OMAttribute attri = processRefAtt(omElement);
            if(attri != null){
                String ref = getAttvalue(attri);
                OMElement tempele = getOMElement(ref);
                if(tempele == null){
                    tempele = processOMElementRef(ref);
View Full Code Here


    private void readallChildElements(){
        Iterator childs =  parent.getChildElements();
        while (childs.hasNext()) {
            OMElement omElement = (OMElement) childs.next();
            OMAttribute id =  omElement.getAttribute(new QName("id"));
            if(id !=null){
                omElement.build();
                elementMap.put(id.getAttributeValue(),omElement);
            }
        }
        filledTable =true;
    }
View Full Code Here

        }
        return ref;
    }

    public static OMAttribute processRefAtt(OMElement omElement) {
        OMAttribute omatribute =  omElement.getAttribute(new QName(SOAP11_REF_ATTR));
        if(omatribute == null){
            omatribute =  omElement.getAttribute(new QName(SOAP12_REF_ATTR));
        }
        return omatribute;
    }
View Full Code Here

                if (prty != null) {
                    Class parameters = prty.getPropertyType();
                    if (prty.equals("class"))
                        continue;
                    Object partObj;
                    OMAttribute attr = MultirefHelper.processRefAtt(parts);
                    if (attr != null) {
                        String refId = MultirefHelper.getAttvalue(attr);
                        partObj = helper.getObject(refId);
                        if (partObj == null) {
                            partObj = helper.processRef(parameters, refId);
View Full Code Here

    public static Object processObject(OMElement omElement,
                                       Class classType,
                                       MultirefHelper helper) throws AxisFault {
        boolean hasRef = false;
        OMAttribute omatribute = MultirefHelper.processRefAtt(omElement);
        String ref = null;
        if (omatribute != null) {
            hasRef = true;
            ref = MultirefHelper.getAttvalue(omatribute);
        }
View Full Code Here

            // setting parameterElement
            parameter.setParameterElement(parameterElement);

            // setting parameter Name
            OMAttribute paraName =
                    parameterElement.getAttribute(new QName(DeploymentConstants.ATTRIBUTE_NAME));

            parameter.setName(paraName.getAttributeValue());

            // setting parameter Value (the chiled element of the parameter)
            OMElement paraValue = parameterElement.getFirstElement();

            if (paraValue != null) {
                parameter.setValue(parameterElement);
                parameter.setParameterType(Parameter.OM_PARAMETER);
            } else {
                String paratextValue = parameterElement.getText();

                parameter.setValue(paratextValue);
                parameter.setParameterType(Parameter.TEXT_PARAMETER);
            }

            // setting locking attribute
            OMAttribute paraLocked =
                    parameterElement.getAttribute(new QName(DeploymentConstants.ATTRIBUTE_LOCKED));

            if (paraLocked != null) {
                String lockedValue = paraLocked.getAttributeValue();

                if ("true".equals(lockedValue)) {
                    parameter.setLocked(true);
                } else {
                    parameter.setLocked(false);
View Full Code Here

                Object key = attributes[i];

                if ((key == null) && (attributes[i + 1] instanceof OMAttribute[])) {
                    OMAttribute[] omAttributesArray = ((OMAttribute[]) attributes[i + 1]);
                    for (int j = 0; j < omAttributesArray.length; j++) {
                        OMAttribute omAttribute = omAttributesArray[j];
                        checkNamespaceList(omAttribute.getQName().getNamespaceURI(),
                                omAttribute.getQName().getPrefix());
                        attributesList.add(omAttribute.getQName());
                        attributesList.add(omAttribute.getAttributeValue());
                    }

                } else if (key instanceof QName) {
                    QName qName = (QName) key;
                    checkNamespaceList(qName.getNamespaceURI(), qName.getPrefix());
View Full Code Here

        if (attributes == null) {
            attributes = new ArrayList();
        }

        while (allAttributes.hasNext()) {
            OMAttribute attribute = (OMAttribute) allAttributes.next();
            attributes.add(attribute);
        }
    }
View Full Code Here

            Iterator serviceitr = serviceElement.getChildrenWithName(new QName(TAG_SERVICE));

            while (serviceitr.hasNext()) {
                OMElement service = (OMElement) serviceitr.next();
                OMAttribute serviceNameatt = service.getAttribute(new QName(ATTRIBUTE_NAME));
                String serviceName = serviceNameatt.getAttributeValue();

                if (serviceName == null) {
                    throw new DeploymentException(
                            Messages.getMessage(DeploymentErrorMsgs.SERVICE_NAME_ERROR));
                } else {
View Full Code Here

    protected void processModuleRefs(Iterator moduleRefs, AxisServiceGroup axisServiceGroup)
            throws DeploymentException {
        try {
            while (moduleRefs.hasNext()) {
                OMElement moduleref = (OMElement) moduleRefs.next();
                OMAttribute moduleRefAttribute = moduleref.getAttribute(new QName(TAG_REFERENCE));

                if (moduleRefAttribute != null) {
                    String refName = moduleRefAttribute.getAttributeValue();

                    if (axisConfig.getModule(new QName(refName)) == null) {
                        throw new DeploymentException(
                                Messages.getMessage(DeploymentErrorMsgs.MODULE_NOT_FOUND, refName));
                    } else {
View Full Code Here

TOP

Related Classes of org.apache.ws.commons.om.OMAttribute

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.