org.jboss.maven.plugins.jdocbook.revdiff.Diff Maven / Gradle / Ivy
/*
* Copyright © 2007 Red Hat Middleware, LLC. All rights reserved.
*
* This copyrighted material is made available to anyone wishing to use, modify,
* copy, or redistribute it subject to the terms and conditions of the GNU
* Lesser General Public License, v. 2.1. This program is distributed in the
* hope that it will be useful, but WITHOUT A 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, v.2.1 along with this
* distribution; if not, write to the Free Software Foundation, Inc.,
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*
* Red Hat Author(s): Steve Ebersole
*/
package org.jboss.maven.plugins.jdocbook.revdiff;
import java.util.Set;
import java.util.HashSet;
import java.util.Iterator;
/**
* Represents the difference between two sources.
*
* @author Steve Ebersole
*/
public class Diff {
private Set elementsOnlyInMaster = new HashSet();
private Set elementsOnlyInTranslation = new HashSet();
private Set elementsDiffRevision = new HashSet();
public void addOnlyInMaster(ContentItem element) {
elementsOnlyInMaster.add( element );
}
public void addOnlyInTranslation(ContentItem element) {
elementsOnlyInTranslation.add( element );
}
public void addDiffRevision(ContentItem element) {
elementsDiffRevision.add( element );
}
public Iterator getElementsOnlyInMaster() {
return elementsOnlyInMaster.iterator();
}
public Iterator getElementsOnlyInTranslation() {
return elementsOnlyInTranslation.iterator();
}
public Iterator getElementsDiffRevision() {
return elementsDiffRevision.iterator();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy