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

cz.vutbr.web.csskit.TermIdentImpl Maven / Gradle / Ivy

package cz.vutbr.web.csskit;

import org.unbescape.css.CssEscape;

import cz.vutbr.web.css.TermIdent;

/**
 * TermIdent
 * @author Jan Svercl, VUT Brno, 2008
 * 			modified by Karel Piwko, 2008
 */
public class TermIdentImpl extends TermImpl implements TermIdent {    
    
    protected TermIdentImpl() {
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        if(operator != null) sb.append(operator.value());
        if(value!=null) sb.append(CssEscape.escapeCssIdentifier(value));

        return sb.toString();
    }
    
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy