Package com.helger.css.property
Class CSSPropertyURL
- java.lang.Object
-
- com.helger.css.property.AbstractCSSProperty
-
- com.helger.css.property.CSSPropertyURL
-
- All Implemented Interfaces:
ICSSVersionAware
,ICSSProperty
@NotThreadSafe public class CSSPropertyURL extends AbstractCSSProperty
CSS property that needs to be an URL- Author:
- Philip Helger
-
-
Constructor Summary
Constructors Constructor Description CSSPropertyURL(ECSSProperty eProp)
CSSPropertyURL(ECSSProperty eProp, ECSSVendorPrefix eVendorPrefix, ICSSPropertyCustomizer aCustomizer)
CSSPropertyURL(ECSSProperty eProp, ICSSPropertyCustomizer aCustomizer)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description CSSPropertyURL
getClone(ECSSVendorPrefix eVendorPrefix)
Get a clone of this property with the same base property but a different vendor prefix.CSSPropertyURL
getClone(ECSSProperty eProp)
Get a clone of this property with another (or the same) base property.static boolean
isValidPropertyValue(String sValue)
boolean
isValidValue(String sValue)
Check if the passed value is valid for this property according to the defined rule.-
Methods inherited from class com.helger.css.property.AbstractCSSProperty
equals, getCustomizer, getMaximumArgumentCount, getMinimumArgumentCount, getMinimumCSSVersion, getProp, getPropertyName, getVendorPrefix, hashCode, newValue, toString
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface com.helger.css.property.ICSSProperty
newImportantValue, newImportantValue, newValue, newValue, newValue
-
-
-
-
Constructor Detail
-
CSSPropertyURL
public CSSPropertyURL(@Nonnull ECSSProperty eProp)
-
CSSPropertyURL
public CSSPropertyURL(@Nonnull ECSSProperty eProp, @Nullable ICSSPropertyCustomizer aCustomizer)
-
CSSPropertyURL
public CSSPropertyURL(@Nonnull ECSSProperty eProp, @Nullable ECSSVendorPrefix eVendorPrefix, @Nullable ICSSPropertyCustomizer aCustomizer)
-
-
Method Detail
-
isValidValue
@OverridingMethodsMustInvokeSuper public boolean isValidValue(@Nullable String sValue)
Description copied from interface:ICSSProperty
Check if the passed value is valid for this property according to the defined rule.- Specified by:
isValidValue
in interfaceICSSProperty
- Overrides:
isValidValue
in classAbstractCSSProperty
- Parameters:
sValue
- The value to check. May benull
.- Returns:
true
if the value is valid,false
otherwise
-
getClone
@Nonnull public CSSPropertyURL getClone(@Nonnull ECSSProperty eProp)
Description copied from interface:ICSSProperty
Get a clone of this property with another (or the same) base property.- Parameters:
eProp
- The base property to use. May not benull
.- Returns:
- Never
null
-
getClone
@Nonnull public CSSPropertyURL getClone(@Nullable ECSSVendorPrefix eVendorPrefix)
Description copied from interface:ICSSProperty
Get a clone of this property with the same base property but a different vendor prefix.- Parameters:
eVendorPrefix
- The new vendor prefix to use. May benull
.- Returns:
- Never
null
-
-