public final class DCMIPeriod extends Object
For further information on DCMI periods please refer to http://dublincore.org/documents/dcmi-period/.
| Constructor and Description |
|---|
DCMIPeriod(Date start,
Date end)
Create a new period.
|
DCMIPeriod(Date start,
Date end,
String name)
Create a new period with an optional name.
|
| Modifier and Type | Method and Description |
|---|---|
Date |
getEnd()
Returns the end date of the period or null, if it has only a lower bound.
|
String |
getName()
Returns the optional name of the period.
|
Date |
getStart()
Returns the start date of the period or null, if it has only an upper bound.
|
boolean |
hasEnd()
Checks if the interval has an end boundary.
|
boolean |
hasName()
Checks if the interval has a name.
|
boolean |
hasStart()
Checks if the interval has a start boundary.
|
boolean |
isClosed()
Checks if the interval is closed.
|
String |
toString() |
public DCMIPeriod(Date start, Date end)
public Date getStart()
public Date getEnd()
public String getName()
public boolean isClosed()
public boolean hasStart()
public boolean hasEnd()
public boolean hasName()
Copyright © 2009–2019 Opencast Project. All rights reserved.