001/*
002 * (C) Copyright 2006-2007 Nuxeo SAS <http://nuxeo.com> and others
003 *
004 * All rights reserved. This program and the accompanying materials
005 * are made available under the terms of the Eclipse Public License v1.0
006 * which accompanies this distribution, and is available at
007 * http://www.eclipse.org/legal/epl-v10.html
008 *
009 * Contributors:
010 *     Jean-Marc Orliaguet, Chalmers
011 *
012 * $Id$
013 */
014
015package org.nuxeo.theme.relations;
016
017import java.util.ArrayList;
018import java.util.List;
019
020public final class TriadicRelation extends AbstractRelation {
021
022    public TriadicRelation(Predicate predicate, Relate first, Relate second, Relate third) {
023        super(predicate);
024        List<Relate> relates = new ArrayList<Relate>();
025        relates.add(first);
026        relates.add(second);
027        relates.add(third);
028        setRelates(relates);
029    }
030
031    @Override
032    public RelationTypeFamily getRelationTypeFamily() {
033        return RelationTypeFamily.TRIADIC;
034    }
035
036}