TimeValue.java 1.16 KB
/*
 * Decompiled with CFR 0_118.
 */
package com.adobe.xfa.content;

import com.adobe.xfa.Element;
import com.adobe.xfa.Node;
import com.adobe.xfa.ScriptTable;
import com.adobe.xfa.XFA;
import com.adobe.xfa.content.Content;
import com.adobe.xfa.content.TimeScript;
import org.xml.sax.Attributes;

public final class TimeValue
extends Content {
    public TimeValue(Element parent, Node prevSibling) {
        super(parent, prevSibling, null, "time", "time", null, XFA.TIMETAG, "time");
    }

    @Override
    public boolean equals(Object object) {
        if (this == object) {
            return true;
        }
        return super.equals(object) && this.getValue().equals(((TimeValue)object).getValue());
    }

    @Override
    public int hashCode() {
        return super.hashCode() ^ this.getValue().hashCode();
    }

    @Override
    public ScriptTable getScriptTable() {
        return TimeScript.getScriptTable();
    }

    public String getValue() {
        return this.getStrValue();
    }

    public void setValue(String sText) {
        super.setStrValue(sText, true, false);
    }

    @Override
    public String toString() {
        return this.getValue();
    }
}