au.gov.nehta.vendorlibrary.pcehr.clients.common.constant
Enum DateParsePatterns

java.lang.Object
  extended by java.lang.Enum<DateParsePatterns>
      extended by au.gov.nehta.vendorlibrary.pcehr.clients.common.constant.DateParsePatterns
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<DateParsePatterns>

public enum DateParsePatterns
extends java.lang.Enum<DateParsePatterns>

The various date parse patterns supported in the context of CDA documents.


Enum Constant Summary
YEAR
          Year.
YEAR_MONTH
          Year, month.
YEAR_MONTH_DAY
          Year, month, day.
YEAR_MONTH_DAY_HOUR
          Year, month, day, hour.
YEAR_MONTH_DAY_HOUR_MINUTE
          Year, month, day, hour, minute.
YEAR_MONTH_DAY_HOUR_MINUTE_SECOND
          Year, month, day, hour, minute, second.
YEAR_MONTH_DAY_HOUR_MINUTE_SECOND_MILLISECOND
          Year, month, day, hour, minute, second, millisecond.
 
Method Summary
static DateParsePatterns findByMatchPattern(java.lang.String matchPattern)
          Retrieves a given pattern based on its label.
static DateParsePatterns findByMatchPatternLength(java.lang.String matchPattern)
          Retrieves a given pattern based on is label length.
static DateParsePatterns findByPatternValue(java.lang.String patternValue)
          Retrieves a given pattern based on its pattern value.
static DateParsePatterns findByPatternValueLength(java.lang.String patternValue)
          Retrieves a given pattern based on its pattern value length.
 java.lang.String getMatchPattern()
          Retrieves the match pattern label.
 int getMatchPatternLength()
          Get the match pattern label length.
 java.lang.String getPatternValue()
          Retrieves the match pattern.
 int getPatternValueLength()
          Get the match pattern value length.
static DateParsePatterns valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static DateParsePatterns[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

YEAR

public static final DateParsePatterns YEAR
Year.


YEAR_MONTH

public static final DateParsePatterns YEAR_MONTH
Year, month.


YEAR_MONTH_DAY

public static final DateParsePatterns YEAR_MONTH_DAY
Year, month, day.


YEAR_MONTH_DAY_HOUR

public static final DateParsePatterns YEAR_MONTH_DAY_HOUR
Year, month, day, hour.


YEAR_MONTH_DAY_HOUR_MINUTE

public static final DateParsePatterns YEAR_MONTH_DAY_HOUR_MINUTE
Year, month, day, hour, minute.


YEAR_MONTH_DAY_HOUR_MINUTE_SECOND

public static final DateParsePatterns YEAR_MONTH_DAY_HOUR_MINUTE_SECOND
Year, month, day, hour, minute, second.


YEAR_MONTH_DAY_HOUR_MINUTE_SECOND_MILLISECOND

public static final DateParsePatterns YEAR_MONTH_DAY_HOUR_MINUTE_SECOND_MILLISECOND
Year, month, day, hour, minute, second, millisecond.

Method Detail

values

public static DateParsePatterns[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
for (DateParsePatterns c : DateParsePatterns.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static DateParsePatterns valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Parameters:
name - the name of the enum constant to be returned.
Returns:
the enum constant with the specified name
Throws:
java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
java.lang.NullPointerException - if the argument is null

getMatchPattern

public java.lang.String getMatchPattern()
Retrieves the match pattern label.

Returns:
label.

getPatternValue

public java.lang.String getPatternValue()
Retrieves the match pattern.

Returns:
match pattern.

getMatchPatternLength

public int getMatchPatternLength()
Get the match pattern label length.

Returns:
length.

getPatternValueLength

public int getPatternValueLength()
Get the match pattern value length.

Returns:
length.

findByMatchPatternLength

public static DateParsePatterns findByMatchPatternLength(java.lang.String matchPattern)
Retrieves a given pattern based on is label length.

Parameters:
matchPattern - pattern label.
Returns:
DateParsePatterns

findByPatternValueLength

public static DateParsePatterns findByPatternValueLength(java.lang.String patternValue)
Retrieves a given pattern based on its pattern value length.

Parameters:
patternValue - pattern value.
Returns:
DateParsePatterns

findByMatchPattern

public static DateParsePatterns findByMatchPattern(java.lang.String matchPattern)
Retrieves a given pattern based on its label.

Parameters:
matchPattern - pattern label.
Returns:
DateParsePatterns

findByPatternValue

public static DateParsePatterns findByPatternValue(java.lang.String patternValue)
Retrieves a given pattern based on its pattern value.

Parameters:
patternValue - pattern value.
Returns:
DateParsePatterns