Package org.cip4.lib.xjdf.type
Class Duration
java.lang.Object
javax.xml.bind.annotation.adapters.XmlAdapter<ValueType,BoundType>
Durations are a component of time intervals and define the amount of intervening time in a time interval. Durations
are represented by the format
P[n]Y[n]M[n]DT[n]H[n]M[n]S
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class org.cip4.lib.xjdf.type.AbstractXJdfType
equals, hashCode
-
Constructor Details
-
Duration
public Duration()Default constructor. -
Duration
public Duration(int day) Custom constructor. Accepting a value for day. -
Duration
public Duration(int day, int hour) Custom constructor. Accepting values for day and hour. -
Duration
Custom constructor. Accepting accepting a String expression for initializing.. -
Duration
public Duration(int year, int month, int day, int hour, int minute, int second) Custom constructor. Accepting values for all attributes.
-
-
Method Details
-
getYear
public int getYear()Getter for year attribute.- Returns:
- the year
-
getMonth
public int getMonth()Getter for month attribute.- Returns:
- the month
-
getDay
public int getDay()Getter for day attribute.- Returns:
- the day
-
getHour
public int getHour()Getter for hour attribute.- Returns:
- the hour
-
getMinute
public int getMinute()Getter for minute attribute.- Returns:
- the minute
-
getSecond
public int getSecond()Getter for second attribute.- Returns:
- the second
-
unmarshal
-
marshal
-
toString
- Specified by:
toStringin classAbstractXJdfType<String,Duration> - See Also:
-