import java.text.DateFormat;
import java.util.Calendar;
import java.util.Date;
-import java.util.regex.Pattern;
import jp.bitmeister.asn1.processor.ASN1Visitor;
*/
public abstract class TimeType extends StringType {
- private static final Pattern pattern = Pattern.compile("[0-9\\.Z\\+\\-]*");
-
/**
* Converts the {@code Date} object to a formatted {@code String} that
* represents date and time, and set it to this instance.
/*
* (non-Javadoc)
*
- * @see jp.bitmeister.asn1.type.StringType#pattern()
- */
- @Override
- protected Pattern pattern() {
- return pattern;
- }
-
- /*
- * (non-Javadoc)
- *
* @see
* jp.bitmeister.asn1.type.StringType#accept(jp.bitmeister.asn1.processor
* .ASN1Visitor)
*/
@Override
- public <E extends Throwable> void accept(ASN1Visitor<E> visitor) throws E {
- visitor.visit(this);
+ public <R, E extends Throwable> R accept(ASN1Visitor<R, E> visitor) throws E {
+ return visitor.visit(this);
}
-
+
/**
* Parses and converts the strings represents a set of date, time and time
* defferential to a {@code Date}.