Package com.helger.html.hc.html.metadata
Class HCLink
- java.lang.Object
-
- com.helger.html.hc.impl.AbstractHCNode
-
- com.helger.html.hc.html.AbstractHCElement<HCLink>
-
- com.helger.html.hc.html.metadata.HCLink
-
- All Implemented Interfaces:
com.helger.commons.hierarchy.IHasChildren<IHCNode>,com.helger.commons.hierarchy.IHasChildrenRecursive<IHCNode>,com.helger.commons.hierarchy.IHasChildrenSorted<IHCNode>,com.helger.commons.traits.IGenericImplTrait<HCLink>,IHCElement<HCLink>,IHCHasCSSClasses<HCLink>,IHCHasCSSStyles<HCLink>,IHCHasID<HCLink>,IHCNode,Serializable
@OutOfBandNode public class HCLink extends AbstractHCElement<HCLink>
Represents an HTML <link> element- Author:
- Philip Helger
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class com.helger.html.hc.html.AbstractHCElement
DEFAULT_HIDDEN, DEFAULT_SPELLCHECK, DEFAULT_TRANSLATE, DEFAULT_UNFOCUSABLE
-
Fields inherited from interface com.helger.html.hc.html.IHCElement
DEFAULT_TABINDEX
-
-
Constructor Summary
Constructors Constructor Description HCLink()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description HCLinkaddMedia(com.helger.css.media.ECSSMedium... aMediaList)HCLinkaddMedia(com.helger.css.media.ICSSMediaList aMediaList)HCLinkaddMedia(Iterable<com.helger.css.media.ECSSMedium> aMediaList)HCLinkaddMedium(com.helger.css.media.ECSSMedium eMedium)static HCLinkcreateCSSLink(com.helger.commons.url.ISimpleURL aCSSURL)Shortcut to create a <link> element specific to CSSprotected voidfillMicroElement(com.helger.xml.microdom.IMicroElement aElement, IHCConversionSettingsToNode aConversionSettings)Set all attributes and child elements of this objectStringgetCharset()EHCCORSSettingsgetCrossOrigin()com.helger.commons.url.ISimpleURLgetHref()StringgetHrefLang()StringgetIntegrity()com.helger.css.media.ICSSMediaListgetMedia()ICSSPathProvidergetPathProvider()IHCLinkTypegetRel()IHCLinkTypegetRev()StringgetSizes()com.helger.commons.mime.IMimeTypegetType()booleanisCSSLink()HCLinkremoveAllMedia()HCLinksetCharset(String sCharset)HCLinksetCrossOrigin(EHCCORSSettings eCrossOrigin)HCLinksetHref(com.helger.commons.url.ISimpleURL aHref)HCLinksetHrefLang(String sHrefLang)HCLinksetIntegrity(String sIntegrity)HCLinksetMedia(com.helger.css.media.ICSSMediaList aMediaList)HCLinksetPathProvider(ICSSPathProvider aCSSPathProvider)HCLinksetRel(IHCLinkType aRel)HCLinksetRev(IHCLinkType aRev)HCLinksetSizes(String sSizes)HCLinksetType(com.helger.commons.mime.IMimeType aType)StringtoString()-
Methods inherited from class com.helger.html.hc.html.AbstractHCElement
addClass, addEventHandler, addStyle, containsClass, containsEventHandler, containsStyle, createMicroElement, customAttrs, finishMicroElement, getAccessKey, getAllClasses, getAllClassesAsString, getAllClassNames, getAllStyles, getAllStylesAsString, getAllStyleValues, getContentEditable, getDirection, getDraggable, getElement, getEventHandler, getEventMap, getID, getLanguage, getRole, getStyleValue, getTabIndex, getTagName, getTitle, getTranslate, hasAnyClass, hasAnyStyle, hasStyle, internalConvertToMicroNode, isHidden, isSpellCheck, isTranslateOff, isTranslateOn, isTranslateUndefined, isUnfocusable, isValidID, onConsistencyCheck, onFinalizeNodeState, prependEventHandler, removeAllClasses, removeAllEventHandler, removeAllStyles, removeClass, removeStyle, setAccessKey, setContentEditable, setDirection, setDraggable, setEventHandler, setHidden, setID, setID, setLanguage, setRole, setSpellCheck, setTabIndex, setTitle, setTranslate, setUnfocusable
-
Methods inherited from class com.helger.html.hc.impl.AbstractHCNode
canConvertToMicroNode, consistencyCheck, convertToMicroNode, customizeNode, finalizeNodeState, findFirstChild, findFirstChildMapped, forAllChildren, forAllChildren, forAllChildrenBreakable, forAllChildrenMapped, getAllChildren, getChildAtIndex, getChildCount, getChildren, getFirstChild, getLastChild, getNodeState, getPlainText, hasChildren, internalSetNodeState, onCustomizeNode, onRegisterExternalResources, registerExternalResources
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface com.helger.commons.hierarchy.IHasChildren
forAllChildren, forAllChildren, forAllChildrenBreakable, forAllChildrenMapped, getChildCount, getChildren, hasChildren, hasNoChildren
-
Methods inherited from interface com.helger.commons.hierarchy.IHasChildrenRecursive
forAllChildrenRecursive, forAllChildrenRecursive
-
Methods inherited from interface com.helger.commons.hierarchy.IHasChildrenSorted
findFirstChild, findFirstChildMapped, getAllChildren, getChildAtIndex, getFirstChild, getLastChild
-
Methods inherited from interface com.helger.html.hc.html.IHCElement
setTranslate, withCustomAttrs
-
Methods inherited from interface com.helger.html.hc.html.IHCHasCSSClasses
addClasses, addClasses, addClasses
-
Methods inherited from interface com.helger.html.hc.html.IHCHasCSSStyles
addStyle, addStyles, addStyles, addStyles
-
Methods inherited from interface com.helger.html.hc.IHCHasID
ensureID, hasID, hasNoID, setUniqueID
-
Methods inherited from interface com.helger.html.hc.IHCNode
canConvertToMicroNode, consistencyCheck, convertToMicroNode, customizeNode, finalizeNodeState, getNodeState, getPlainText, registerExternalResources
-
-
-
-
Method Detail
-
isCSSLink
public final boolean isCSSLink()
- Returns:
trueif this <link>-element is a CSS Stylesheet,falseif not
-
getRel
@Nullable public final IHCLinkType getRel()
-
setRel
@Nonnull public final HCLink setRel(@Nullable IHCLinkType aRel)
-
getRev
@Nullable public final IHCLinkType getRev()
-
setRev
@Nonnull public final HCLink setRev(@Nullable IHCLinkType aRev)
-
getType
@Nullable public final com.helger.commons.mime.IMimeType getType()
-
getHref
@Nullable public final com.helger.commons.url.ISimpleURL getHref()
-
getMedia
@Nullable public final com.helger.css.media.ICSSMediaList getMedia()
-
setMedia
@Nonnull public final HCLink setMedia(@Nullable com.helger.css.media.ICSSMediaList aMediaList)
-
addMedia
@Nonnull public final HCLink addMedia(@Nonnull com.helger.css.media.ICSSMediaList aMediaList)
-
addMedia
@Nonnull public final HCLink addMedia(@Nonnull Iterable<com.helger.css.media.ECSSMedium> aMediaList)
-
addMedia
@Nonnull public final HCLink addMedia(@Nonnull com.helger.css.media.ECSSMedium... aMediaList)
-
getPathProvider
@Nullable public final ICSSPathProvider getPathProvider()
-
setPathProvider
@Nonnull public final HCLink setPathProvider(@Nullable ICSSPathProvider aCSSPathProvider)
-
getCrossOrigin
@Nullable public final EHCCORSSettings getCrossOrigin()
-
setCrossOrigin
@Nonnull public final HCLink setCrossOrigin(@Nullable EHCCORSSettings eCrossOrigin)
-
fillMicroElement
protected void fillMicroElement(com.helger.xml.microdom.IMicroElement aElement, IHCConversionSettingsToNode aConversionSettings)Description copied from class:AbstractHCElementSet all attributes and child elements of this object- Overrides:
fillMicroElementin classAbstractHCElement<HCLink>- Parameters:
aElement- The current micro element to be filled. Nevernull.aConversionSettings- The conversion settings to be used. Nevernull.
-
toString
public String toString()
- Overrides:
toStringin classAbstractHCElement<HCLink>
-
-