All Downloads are FREE. Search and download functionalities are using the official Maven repository.

w3c.css.values.CssUnicodeRange Maven / Gradle / Ivy

There is a newer version: 1.0.8
Show newest version
//
// $Id$
// From Philippe Le Hegaret ([email protected])
//
// (c) COPYRIGHT MIT and INRIA, 1997.
// Please first read the full copyright statement in file COPYRIGHT.html
/*
 */
package org.w3c.css.values;

import org.w3c.css.util.ApplContext;

/**
 */
public class CssUnicodeRange extends CssValue {

    public static final int type = CssTypes.CSS_UNICODE_RANGE;

    public final int getType() {
        return type;
    }

    String value;

    /**
     * Create a new CssUnicodeRange
     */
    public CssUnicodeRange() {
    }

    /**
     * Create a new CssUnicodeRange
     */
    public CssUnicodeRange(String value) {
        this.value = value;
    }

    /**
     * Set the value of this frequency.
     *
     * @param s  the string representation of the frequency.
     * @param ac For errors and warnings reports.
     */
    public void set(String s, ApplContext ac) {
        value = s;
    }

    /**
     * Returns the value
     */
    public Object get() {
        return value;
    }

    /**
     * Returns a string representation of the object.
     */
    public String toString() {
        return value;
    }

    /**
     * Compares two values for equality.
     *
     * @param value The other value.
     */
    public boolean equals(Object value) {
        return ((value != null) && (value instanceof CssUnicodeRange)
                && this.value.equals(((CssUnicodeRange) value).value));
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy