/** * Returns the entry relation type. * * @return entry relation type */ public String getRel() { return getAttributeValue(REL); }
/** * Returns the nested entry. * * @return nested entry */ @Override public RecurrenceExceptionEntry getEntry() { return super.getElement(RecurrenceExceptionEntry.KEY); }
/** * Returns whether it has the entry URI. * * @return whether it has the entry URI */ public boolean hasHref() { return getHref() != null; }
/** * Sets the entry relation type. * * @param rel entry relation type or <code>null</code> to reset */ public void setRel(String rel) { setAttributeValue(REL, rel); }
/** * Returns whether it has the nested entry. * * @return whether it has the nested entry */ public boolean hasEntry() { return hasElement(Entry.KEY); }
/** * Sets the nested entry. * * @param entry nested entry or {@code null} to reset * @return this to enable chaining setters */ public RecurrenceExceptionEntryLink setEntry(RecurrenceExceptionEntry entry) { super.setElement(RecurrenceExceptionEntry.KEY, entry); return this; }
/** * Returns whether it has the whether the contained entry is read-only. * * @return whether it has the whether the contained entry is read-only */ public boolean hasReadOnly() { return getReadOnly() != null; }
/** * Returns whether it has the entry relation type. * * @return whether it has the entry relation type */ public boolean hasRel() { return getRel() != null; }
@Override public RecurrenceExceptionEntryLink lock() { return (RecurrenceExceptionEntryLink) super.lock(); }
/** * Registers the metadata for this element. */ public static void registerMetadata(MetadataRegistry registry) { if (registry.isRegistered(KEY)) { return; } // Register superclass metadata. EntryLink.registerMetadata(registry); // The builder for this element ElementCreator builder = registry.build(KEY); // Overridden elements builder.replaceElement(RecurrenceExceptionEntry.KEY); }
/** * Sets the entry URI. * * @param href entry URI or <code>null</code> to reset */ public void setHref(String href) { setAttributeValue(HREF, href); }
/** * Returns whether it has the nested entry. * * @return whether it has the nested entry */ public boolean hasEntry() { return super.hasElement(RecurrenceExceptionEntry.KEY); }
/** * Sets the nested entry. * * @param entry nested entry or <code>null</code> to reset */ public void setEntry(Entry entry) { setElement(Entry.KEY, entry); }
/** * Returns whether it has the whether the contained entry is read-only. * * @return whether it has the whether the contained entry is read-only */ public boolean hasReadOnly() { return getReadOnly() != null; }
/** * Returns whether it has the entry relation type. * * @return whether it has the entry relation type */ public boolean hasRel() { return getRel() != null; }
@Override public RecurrenceExceptionEntryLink lock() { return (RecurrenceExceptionEntryLink) super.lock(); }
/** * Registers the metadata for this element. */ public static void registerMetadata(MetadataRegistry registry) { if (registry.isRegistered(KEY)) { return; } // Register superclass metadata. EntryLink.registerMetadata(registry); // The builder for this element ElementCreator builder = registry.build(KEY); // Overridden elements builder.replaceElement(RecurrenceExceptionEntry.KEY); }
@Override public String toString() { return "{EntryLink href=" + getAttributeValue(HREF) + " readOnly=" + getAttributeValue(READ_ONLY) + " rel=" + getAttributeValue(REL) + "}"; }
/** * Sets the whether the contained entry is read-only. * * @param readOnly whether the contained entry is read-only or * <code>null</code> to reset */ public void setReadOnly(Boolean readOnly) { setAttributeValue(READ_ONLY, readOnly); }
/** * Returns the nested entry. * * @return nested entry */ public Entry getEntry() { return getElement(Entry.KEY); }