001/*
002 *   Entity108_XX_Unsupported  -- Unsupported plane entity.
003 *
004 *   Copyright (C) 2010-2016, Joseph A. Huwaldt.
005 *   All rights reserved.
006 *   
007 *   This library is free software; you can redistribute it and/or
008 *   modify it under the terms of the GNU Lesser General Public
009 *   License as published by the Free Software Foundation; either
010 *   version 2.1 of the License, or (at your option) any later version.
011 *   
012 *   This library is distributed in the hope that it will be useful,
013 *   but WITHOUT ANY WARRANTY; without even the implied warranty of
014 *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
015 *   Lesser General Public License for more details.
016 *
017 *   You should have received a copy of the GNU Lesser General Public License
018 *   along with this program; if not, write to the Free Software
019 *   Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
020 *   Or visit:  http://www.gnu.org/licenses/lgpl.html
021 */
022package geomss.geom.reader.iges;
023
024/**
025 * <b><i>PLANE ENTITY - UNSUPPORTED</i></b> - This entity represents a plane. This form is
026 * currently unsupported.
027 * 
028 * <p> Modified by: Joseph A. Huwaldt </p>
029 * 
030 * @author Joseph A. Huwaldt, Date: September 6, 2010
031 * @version September 13, 2016
032 */
033public class Entity108_XX_Unsupported extends Entity {
034
035    /**
036     * Default constructor.
037     *
038     * @param p  part to which this entity is contained
039     * @param de Directory Entry for this entity
040     */
041    public Entity108_XX_Unsupported(Part p, DirEntry de) {
042        super(p, de);
043
044        if (Constants.DEBUG) {
045            System.out.println("Entity108_XX constructor called");
046        }
047    }
048
049    /**
050     * Checks to see if the entity has any errors or warnings.
051     */
052    @Override
053    public void check() {
054        DirEntry DE = getDirectoryEntry();
055
056        // Set message to unsupported
057        StringBuilder msg = new StringBuilder(RESOURCES.getString("error") + ":  DE ");
058        msg.append(DE.getDENum());
059        msg.append(",  type=");
060        msg.append(DE.getType());
061        msg.append(", form=");
062        msg.append(DE.getForm());
063        msg.append(": ");
064        msg.append("Entity type ");
065        msg.append(getTypeString());
066        addErrorMessage(msg.toString());
067
068    }
069
070    /**
071     * Returns a short String describing this Entity object's type.
072     *
073     * @return A short String describing this Entity object's type.
074     */
075    @Override
076    public String getTypeString() {
077        return "Entity108_XX - Plane - Unsupported";
078    }
079
080}