blob: 42c8162f7c08d7081b468d1097a3f77846f58556 [file] [log] [blame]
/*******************************************************************************
* Copyright (c) 2012 The University of York.
* This program and the accompanying materials
* are made available under the terms of the Eclipse Public License 2.0
* which is available at https://www.eclipse.org/legal/epl-2.0/
*
* Contributors:
* Dimitrios Kolovos - initial API and implementation
******************************************************************************/
package org.eclipse.epsilon.emc.plainxml;
public class Binding {
protected String sourceTag;
protected String sourceAttribute;
protected String targetTag;
protected String targetAttribute;
protected boolean many;
public Binding(String sourceTag, String sourceAttribute, String targetTag, String targetAttribute, boolean many) {
super();
if ("*".equals(sourceTag)) sourceTag = ".*";
if ("*".equals(targetTag)) targetTag = ".*";
this.sourceTag = sourceTag;
this.sourceAttribute = sourceAttribute;
this.targetTag = targetTag;
this.targetAttribute = targetAttribute;
this.many = many;
}
public String getSourceTag() {
return sourceTag;
}
public String getSourceAttribute() {
return sourceAttribute;
}
public String getTargetTag() {
return targetTag;
}
public String getTargetAttribute() {
return targetAttribute;
}
public boolean isMany() {
return many;
}
}