public class EntryLink extends Element implements ILink
ILink.Rel, ILink.Type
Modifier and Type | Field and Description |
---|---|
static AttributeKey<java.lang.String> |
HREF
The entry URI.
|
static ElementKey<java.lang.Void,EntryLink> |
KEY
The key for this element.
|
static AttributeKey<java.lang.Boolean> |
READ_ONLY
Whether the contained entry is read-only.
|
static AttributeKey<java.lang.String> |
REL
Qualified name of entry relation type attribute.
|
Constructor and Description |
---|
EntryLink()
Default mutable constructor.
|
Modifier and Type | Method and Description |
---|---|
Entry |
getEntry()
Returns the nested entry.
|
java.lang.String |
getHref()
Returns the entry URI.
|
java.lang.Boolean |
getReadOnly()
Returns the whether the contained entry is read-only.
|
java.lang.String |
getRel()
Returns the entry relation type.
|
java.lang.String |
getType()
Returns the mime type of the link.
|
boolean |
hasEntry()
Returns whether it has the nested entry.
|
boolean |
hasHref()
Returns whether it has the entry URI.
|
boolean |
hasReadOnly()
Returns whether it has the whether the contained entry is read-only.
|
boolean |
hasRel()
Returns whether it has the entry relation type.
|
static void |
registerMetadata(MetadataRegistry registry)
Registers the metadata for this element.
|
void |
setEntry(Entry entry)
Sets the nested entry.
|
void |
setHref(java.lang.String href)
Sets the entry URI.
|
void |
setReadOnly(java.lang.Boolean readOnly)
Sets the whether the contained entry is read-only.
|
void |
setRel(java.lang.String rel)
Sets the entry relation type.
|
void |
setType(java.lang.String type)
Sets the mime type of the link.
|
java.lang.String |
toString() |
addElement, addElement, addElement, clear, createElement, createElement, equals, getAttributeCount, getAttributeIterator, getAttributeIterator, getAttributeValue, getAttributeValue, getDefaultKey, getElement, getElement, getElementCount, getElementId, getElementIterator, getElementIterator, getElementKey, getElements, getElements, getElementSet, getElementSet, getElementValue, getElementValue, getTextValue, getTextValue, hasAttribute, hasAttribute, hasElement, hasElement, hashCode, hasTextValue, isLocked, lock, removeAttribute, removeAttribute, removeAttributeValue, removeAttributeValue, removeElement, removeElement, removeElement, removeElement, replaceElement, resolve, resolve, setAttributeValue, setAttributeValue, setElement, setElement, setElement, setTextValue, visit
public static final ElementKey<java.lang.Void,EntryLink> KEY
public static final AttributeKey<java.lang.String> HREF
public static final AttributeKey<java.lang.Boolean> READ_ONLY
public static final AttributeKey<java.lang.String> REL
public static void registerMetadata(MetadataRegistry registry)
public Entry getEntry()
public void setEntry(Entry entry)
entry
- nested entry or null
to resetpublic boolean hasEntry()
public java.lang.String getHref()
public void setHref(java.lang.String href)
public boolean hasHref()
public java.lang.Boolean getReadOnly()
public void setReadOnly(java.lang.Boolean readOnly)
readOnly
- whether the contained entry is read-only or
null
to resetpublic boolean hasReadOnly()
public java.lang.String getRel()
public void setRel(java.lang.String rel)
public boolean hasRel()
public java.lang.String getType()
ILink