001/*
002 *   Entity402_XX_Unsupported  -- Unsupported copious data 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 *
022 *   Based on, but heavily modified from, IGESView ( http://ts.nist.gov/Standards/IGES/igesTools.cfm )
023 */
024package geomss.geom.reader.iges;
025
026/**
027 * <b><i>ASSOCIATIVITY ENTITY - UNSUPPORTED</i></b> - This entity allows an ordered group
028 * of entities without back pointers to be maintained as a single, logical entity. This
029 * form is currently unsupported.
030 * 
031 * <p> Modified by: Joseph A. Huwaldt </p>
032 * 
033 * @author JDN, Version 1.0
034 * @version September 13, 2016
035 * @see Entity402_Associativity
036 */
037public class Entity402_XX_Unsupported extends Entity {
038
039    /**
040     * Default constructor.
041     *
042     * @param p  part to which this entity is contained
043     * @param de Directory Entry for this entity
044     */
045    public Entity402_XX_Unsupported(Part p, DirEntry de) {
046        super(p, de);
047
048        if (Constants.DEBUG) {
049            System.out.println("Entity402_XX constructor called");
050        }
051    }
052
053    /**
054     * Checks to see if the entity has any errors or warnings.
055     */
056    @Override
057    public void check() {
058        DirEntry DE = getDirectoryEntry();
059
060        // Set message to unsupported
061        StringBuilder msg = new StringBuilder(RESOURCES.getString("error") + ":  DE ");
062        msg.append(DE.getDENum());
063        msg.append(",  type=");
064        msg.append(DE.getType());
065        msg.append(", form=");
066        msg.append(DE.getForm());
067        msg.append(": ");
068        msg.append("Entity type ");
069        msg.append(getTypeString());
070        addErrorMessage(msg.toString());
071
072    }
073
074    /**
075     * Returns a short String describing this Entity object's type.
076     *
077     * @return A short String describing this Entity object's type.
078     */
079    @Override
080    public String getTypeString() {
081        return "Entity402_XX - Associativity - Unsupported";
082    }
083
084}