/******************************************************************************
* Copyright (c) 2011-2013, Linagora
*
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
* Contributors:
* Linagora - initial API and implementation
*******************************************************************************/
package com.ebmwebsourcing.petals.services.validation.v11;
import java.util.HashMap;
import java.util.Map;
import javax.xml.namespace.QName;
import com.ebmwebsourcing.petals.common.generation.Mep;
import com.ebmwebsourcing.petals.services.validation.ValidationDescription;
/**
* @author Vincent Zurczak - EBM WebSourcing
*/
public class ValidationDescription11 extends ValidationDescription {
/*
* (non-Javadoc)
* @see com.ebmwebsourcing.petals.services.su.extensions.ComponentVersionDescription
* #getComponentVersion()
*/
@Override
public String getComponentVersion() {
return "1.1";
}
/*
* (non-Javadoc)
* @see com.ebmwebsourcing.petals.services.su.extensions.ComponentVersionDescription
* #isProvide()
*/
@Override
public boolean isProvide() {
return true;
}
/*
* (non-Javadoc)
* @see com.ebmwebsourcing.petals.services.su.extensions.ComponentVersionDescription
* #isConsume()
*/
@Override
public boolean isConsume() {
return false;
}
/*
* (non-Javadoc)
* @see com.ebmwebsourcing.petals.services.su.extensions.ComponentVersionDescription
* #isProxy()
*/
@Override
public boolean isProxy() {
return false;
}
/*
* (non-Javadoc)
* @see com.ebmwebsourcing.petals.services.su.extensions.ComponentVersionDescription
* #getDefaultOperations()
*/
@Override
public Map<QName,Mep> getDefaultOperations() {
HashMap<QName,Mep> result = new HashMap<QName,Mep> ();
result.put( new QName( "http://petals.ow2.org/components/validation/version-1", "filter" ), Mep.IN_OUT );
result.put( new QName( "http://petals.ow2.org/components/validation/version-1", "validate" ), Mep.IN_OUT );
return result;
}
}