/** * Checks the value of the app:draft tag. * * @return true if the entry is a draft (false by default as per RFC5023) */ public boolean isDraft() { return hasDraft() && Draft.Value.YES.equals(getElementValue(Draft.KEY)); }
/** * Sets the value of the app:draft tag. * * @param value sets the draft status to the specified value, false to clear. */ public void setDraft(boolean value) { if (value) { setDraft(new Draft(Draft.Value.YES)); } else { removeElement(Draft.KEY); } } }
/** * Construct a collection with the given href. * * @param href href. */ public Collection(String href) { this(); setHref(href); }
@Override public boolean equals(Object obj) { if (this == obj) { return true; } if (!sameClassAs(obj)) { return false; } Accept other = (Accept) obj; return eq(getValue(), other.getValue()); }
@Override public boolean equals(Object obj) { if (this == obj) { return true; } if (!sameClassAs(obj)) { return false; } Edited other = (Edited) obj; return eq(getValue(), other.getValue()); }
@Override public String toString() { return "{Collection href=" + getAttributeValue(HREF) + "}"; } }
/** * Constructor with the title element. */ public Workspace(TextContent title) { this(); setTitle(title); }
/** * Returns whether it has the href. * * @return whether it has the href */ public boolean hasHref() { return getHref() != null; }
/** * Constructs a new instance with the given value. * * @param value value. */ public Edited(DateTime value) { this(); setValue(value); }
/** * Constructs a new instance with the given value. * * @param value value. */ public Accept(String value) { this(); setValue(value); }
/** * Constructs a new instance with the given value. * * @param value value. */ public Draft(Value value) { this(); setValue(value); }
/** * Sets the href. * * @param href href or <code>null</code> to reset */ public void setHref(String href) { setAttributeValue(HREF, href); }
/** * Returns whether it has the default scheme of the contained category * elements. * * @return whether it has the default scheme of the contained category * elements */ public boolean hasScheme() { return getScheme() != null; }
/** * Checks the value of the app:draft tag. * * @return true if the entry is a draft (false by default as per RFC5023) */ public boolean isDraft() { return hasDraft() && Draft.Value.YES.equals(getElementValue(Draft.KEY)); }
/** * Sets the value of the app:draft tag. * * @param value sets the draft status to the specified value, false to clear. */ public void setDraft(boolean value) { if (value) { setDraft(new Draft(Draft.Value.YES)); } else { removeElement(Draft.KEY); } } }
@Override public String toString() { return "{Collection href=" + getAttributeValue(HREF) + "}"; } }
/** * Constructor with the title element. */ public Workspace(TextContent title) { this(); setTitle(title); }
/** * Checks the value of the app:draft tag. * * @return true if the entry is a draft (false by default as per RFC5023) */ public boolean isDraft() { return hasDraft() && Draft.Value.YES.equals(getElementValue(Draft.KEY)); }
/** * Sets the value of the app:draft tag. * * @param value sets the draft status to the specified value, false to clear. */ public void setDraft(boolean value) { if (value) { setDraft(new Draft(Draft.Value.YES)); } else { removeElement(Draft.KEY); } } }