public class FeedDate extends AbstractFeedElement
| Constructor and Description |
|---|
FeedDate(org.joda.time.DateTime aDT) |
FeedDate(org.joda.time.LocalDateTime aDT) |
| Modifier and Type | Method and Description |
|---|---|
static FeedDate |
createNow() |
com.helger.commons.microdom.IMicroElement |
getAsElement(String sElementName)
Convert this news feed element to an MicroElement with the given element
name.
|
org.joda.time.LocalDateTime |
getDateTime() |
boolean |
isValid()
Check if this element matches the specification.
|
void |
setDateTime(org.joda.time.LocalDateTime aDT) |
getLanguage, setLanguage, setLanguagepublic FeedDate(@Nonnull org.joda.time.DateTime aDT)
public FeedDate(@Nullable org.joda.time.LocalDateTime aDT)
public void setDateTime(@Nullable org.joda.time.LocalDateTime aDT)
@Nullable public org.joda.time.LocalDateTime getDateTime()
@Nonnull public com.helger.commons.microdom.IMicroElement getAsElement(String sElementName)
IFeedElementIFeedElement.isValid() it
should be safe anyway to create an element.sElementName - The element name to use. May neither be null nor empty.IMicroElement and never null.public boolean isValid()
IFeedElementtrue if the element is valid, and false
otherwise.Copyright © 2014–2015 Philip Helger. All rights reserved.