org.nuiton.eugene.models.object.xml.ObjectModelInterfaceImpl Maven / Gradle / Ivy
/*
* #%L
* EUGene :: EUGene
*
* $Id: ObjectModelInterfaceImpl.java 1019 2010-11-29 09:24:24Z tchemit $
* $HeadURL: http://svn.nuiton.org/svn/eugene/tags/eugene-2.3.3/eugene/src/main/java/org/nuiton/eugene/models/object/xml/ObjectModelInterfaceImpl.java $
* %%
* Copyright (C) 2004 - 2010 CodeLutin
* %%
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as
* published by the Free Software Foundation, either version 3 of the
* License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Lesser Public License for more details.
*
* You should have received a copy of the GNU General Lesser Public
* License along with this program. If not, see
* .
* #L%
*/
package org.nuiton.eugene.models.object.xml;
import java.util.Iterator;
import org.nuiton.eugene.models.object.ObjectModelClassifier;
import org.nuiton.eugene.models.object.ObjectModelInterface;
/**
* ObjectModelInterfaceImpl.java
*
* Created: 14 janv. 2004
*
* @author Cédric Pineau
* Copyright Code Lutin
* @version $Revision: 1019 $
*
* Last update : $Date: 2010-11-29 10:24:24 +0100 (lun, 29 nov 2010) $
* by : */
public class ObjectModelInterfaceImpl extends ObjectModelClassifierImpl implements ObjectModelInterface {
@Override
public String toString() {
StringBuffer result = new StringBuffer();
result.append("interface ").append(getQualifiedName()).append(" ");
result.append("extends ");
for (Iterator> i = getInterfaces().iterator(); i.hasNext();) {
result.append(((ObjectModelClassifier) i.next()).getName());
if (i.hasNext()) {
result.append(", ");
}
}
return result.toString();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy