Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
PETALS - PETALS Services Platform. Copyright (c) 2008 OW2 Consortium, http://www.ow2.org/ This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with this library; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA ------------------------------------------------------------------------- $Id$ -------------------------------------------------------------------------
package org.ow2.petals.component.framework.constants;
SOAP Version Constants for the Message Exchange Patterns.

Author(s):
Christophe DENEUX (Capgemini Sud)
public enum BindingSoapVersion {
    SOAP11_NS("http://schemas.xmlsoap.org/wsdl/soap/"),
    SOAP12_NS("http://schemas.xmlsoap.org/wsdl/soap12/");

    

Parameters:
pattern
Returns:
    public static BindingSoapVersion valueOf(final URI pattern) {
        BindingSoapVersion result = null;
        if (pattern != null) {
            for (BindingSoapVersion soap : BindingSoapVersion.values()) {
                if (soap.nameSpace.equals(pattern.toString())) {
                    result = soap;
                }
            }
        }
        return result;
    }
    private final String nameSpace;
    private final URI soapURI;

    
Creates a new instance of org.ow2.petals.component.framework.Constants.MEPConstants

Parameters:
nameSpace
    private BindingSoapVersion(final String nameSpace) {
        this. = nameSpace;
        this. = URI.create(nameSpace);
    }

    

Returns:
    public URI value() {
        return this.;
    }

    
Please use this equals method instead of using : value().equals(mep) which is almost 10 times slower...

Parameters:
mep
Returns:
    public boolean equals(final URI mep) {
        return this..equals(mep.toString());
    }
New to GrepCode? Check out our FAQ X