net.anotheria.asg.generator.meta.FederatedDocumentMapping Maven / Gradle / Ivy
package net.anotheria.asg.generator.meta;
/**
* Represents a document mapping in the federation.
*
* @author lrosenberg
* @version $Id: $Id
*/
public class FederatedDocumentMapping {
/**
* The source document name.
*/
private String sourceDocument;
/**
* The target document.
*/
private String targetDocument;
/**
* The key used as key for the target document.
*/
private String targetKey;
/**
* Getter for the field sourceDocument
.
*
* @return a {@link java.lang.String} object.
*/
public String getSourceDocument() {
return sourceDocument;
}
/**
* Setter for the field sourceDocument
.
*
* @param sourceDocument a {@link java.lang.String} object.
*/
public void setSourceDocument(String sourceDocument) {
this.sourceDocument = sourceDocument;
}
/**
* Getter for the field targetDocument
.
*
* @return a {@link java.lang.String} object.
*/
public String getTargetDocument() {
return targetDocument;
}
/**
* Setter for the field targetDocument
.
*
* @param targetDocument a {@link java.lang.String} object.
*/
public void setTargetDocument(String targetDocument) {
this.targetDocument = targetDocument;
}
/**
* Getter for the field targetKey
.
*
* @return a {@link java.lang.String} object.
*/
public String getTargetKey() {
return targetKey;
}
/**
* Setter for the field targetKey
.
*
* @param targetKey a {@link java.lang.String} object.
*/
public void setTargetKey(String targetKey) {
this.targetKey = targetKey;
}
/** {@inheritDoc} */
@Override public String toString(){
return sourceDocument+" -> "+targetKey+"."+targetDocument;
}
}