DateTimeValue.java
1.21 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
/*
* 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.DateTimeScript;
import org.xml.sax.Attributes;
public final class DateTimeValue
extends Content {
public DateTimeValue(Element parent, Node prevSibling) {
super(parent, prevSibling, null, "dateTime", "dateTime", null, XFA.DATETIMETAG, "dateTime");
}
@Override
public boolean equals(Object object) {
if (this == object) {
return true;
}
return super.equals(object) && this.getValue().equals(((DateTimeValue)object).getValue());
}
@Override
public int hashCode() {
return super.hashCode() ^ this.getValue().hashCode();
}
public String getValue() {
return this.getStrValue();
}
@Override
public ScriptTable getScriptTable() {
return DateTimeScript.getScriptTable();
}
public void setValue(String dateTimeValue) {
this.setStrValue(dateTimeValue, true, false);
}
@Override
public String toString() {
return this.getValue();
}
}