ILink.Rel, ILink.Type
Modifier and Type | Field and Description |
---|---|
static AttributeKey<java.lang.Integer> |
COUNT_HINT
Qualified name of hint at the number of entries in the feed attribute.
|
static AttributeKey<java.lang.String> |
HREF
Qualified name of feed URI attribute.
|
static ElementKey<java.lang.Void,FeedLink> |
KEY
The key for this element.
|
static AttributeKey<java.lang.Boolean> |
READ_ONLY
Qualified name of whether the contained feed is read-only attribute.
|
static AttributeKey<java.lang.String> |
REL
Qualified name of feed relation type attribute.
|
Modifier | Constructor and Description |
---|---|
|
FeedLink()
Default mutable constructor.
|
protected |
FeedLink(ElementKey<?,? extends FeedLink> key)
Lets subclasses create an instance using a custom key.
|
protected |
FeedLink(ElementKey<?,? extends FeedLink> key,
Element source)
Constructs a new instance by doing a shallow copy of data from an existing
Element instance. |
Modifier and Type | Method and Description |
---|---|
java.lang.Integer |
getCountHint()
Returns the hint at the number of entries in the feed.
|
Feed |
getFeed()
Returns the nested feed.
|
java.lang.String |
getHref()
Returns the feed URI.
|
java.lang.Boolean |
getReadOnly()
Returns the whether the contained feed is read-only.
|
java.lang.String |
getRel()
Returns the feed relation type.
|
java.lang.String |
getType()
Returns the mime type of the link.
|
boolean |
hasCountHint()
Returns whether it has the hint at the number of entries in the feed.
|
boolean |
hasFeed()
Returns whether it has the nested feed.
|
boolean |
hasHref()
Returns whether it has the feed URI.
|
boolean |
hasReadOnly()
Returns whether it has the whether the contained feed is read-only.
|
boolean |
hasRel()
Returns whether it has the feed relation type.
|
static void |
registerMetadata(MetadataRegistry registry)
Registers the metadata for this element.
|
void |
setCountHint(java.lang.Integer countHint)
Sets the hint at the number of entries in the feed.
|
void |
setFeed(Feed feed)
Sets the nested feed.
|
void |
setHref(java.lang.String href)
Sets the feed URI.
|
void |
setReadOnly(java.lang.Boolean readOnly)
Sets the whether the contained feed is read-only.
|
void |
setRel(java.lang.String rel)
Sets the feed relation type.
|
void |
setType(java.lang.String type)
Sets the mime type of the link.
|
java.lang.String |
toString() |
adapt, adapt, addElement, addElement, addElement, clear, createElement, createElement, eq, 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, narrow, removeAttribute, removeAttribute, removeAttributeValue, removeAttributeValue, removeElement, removeElement, removeElement, removeElement, replaceElement, resolve, resolve, sameClassAs, setAttributeValue, setAttributeValue, setElement, setElement, setElement, setTextValue, validate, visit
public static final ElementKey<java.lang.Void,FeedLink> KEY
public static final AttributeKey<java.lang.Integer> COUNT_HINT
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 FeedLink()
protected FeedLink(ElementKey<?,? extends FeedLink> key)
protected FeedLink(ElementKey<?,? extends FeedLink> key, Element source)
Element
instance. Will use the given ElementKey
as
the key for the element.key
- element key to use for this element.source
- source elementpublic static void registerMetadata(MetadataRegistry registry)
public java.lang.Integer getCountHint()
public void setCountHint(java.lang.Integer countHint)
countHint
- hint at the number of entries in the feed or
null
to resetpublic boolean hasCountHint()
public Feed getFeed()
public void setFeed(Feed feed)
feed
- nested feed or null
to resetpublic boolean hasFeed()
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 feed 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