001/*
002// This software is subject to the terms of the Eclipse Public License v1.0
003// Agreement, available at the following URL:
004// http://www.eclipse.org/legal/epl-v10.html.
005// You must accept the terms of that agreement to use this software.
006//
007// Copyright (C) 2005-2005 Julian Hyde
008// Copyright (C) 2005-2009 Pentaho
009// All Rights Reserved.
010*/
011package mondrian.olap.type;
012
013/**
014 * The type of a string expression.
015 *
016 * @author jhyde
017 * @since Feb 17, 2005
018 */
019public class StringType extends ScalarType {
020
021    /**
022     * Creates a string type.
023     */
024    public StringType() {
025        super("STRING");
026    }
027
028    public boolean equals(Object obj) {
029        return obj instanceof StringType;
030    }
031
032    public boolean isInstance(Object value) {
033        return value instanceof String;
034    }
035}
036
037// End StringType.java