Class AttributeUtil
java.lang.Object
com.webfirmframework.wffweb.tag.html.attribute.core.AttributeUtil
- Since:
- 1.0.0
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
assignOwnerTag
(Object accessObject, AbstractAttribute attribute, AbstractHtml ownerTag) for internal use only.static byte[][]
getAttributeHtmlBytesCompressedByIndex
(boolean rebuild, Charset charset, AbstractAttribute... attributes) static String
getAttributeHtmlString
(boolean rebuild, AbstractAttribute... attributes) static String
getAttributeHtmlString
(boolean rebuild, Charset charset, AbstractAttribute... attributes) static byte[]
getAttrNameBytesCompressedByIndex
(Object accessObject, AbstractAttribute attr, Charset charset) NB: for internal purpose onlystatic byte[]
getAttrNameBytesCompressedByIndex
(Object accessObject, String attrName, Charset charset) NB: for internal purpose onlystatic byte[][]
getWffAttributeBytes
(String charset, AbstractAttribute... attributes) static byte[][]
getWffAttributeBytes
(Charset charset, AbstractAttribute... attributes) static Lock
lockAndGetWriteLock
(Object accessObject, AbstractAttribute attribute) lockAndGetWriteLocks
(Object accessObject, AbstractAttribute... attributes) lockAndGetWriteLocks
(Object accessObject, Collection<AbstractAttribute> attributes) static AbstractAttribute[]
parseExactAttributeHtmlBytesCompressedByIndex
(byte[][] attributesBytes, Charset charset) static boolean
unassignOwnerTag
(Object accessObject, AbstractAttribute attribute, AbstractHtml ownerTag) for internal use only.
-
Method Details
-
getAttributeHtmlString
- Parameters:
rebuild
-attributes
-- Returns:
- the attributes string starting with a space.
- Since:
- 1.0.0
-
getAttributeHtmlString
public static String getAttributeHtmlString(boolean rebuild, Charset charset, AbstractAttribute... attributes) - Parameters:
rebuild
-attributes
-charset
- the charset- Returns:
- the attributes string starting with a space.
- Since:
- 1.0.0
-
getAttributeHtmlBytesCompressedByIndex
public static byte[][] getAttributeHtmlBytesCompressedByIndex(boolean rebuild, Charset charset, AbstractAttribute... attributes) throws IOException - Parameters:
rebuild
-attributes
-charset
- the charset- Returns:
- the attributes bytes array compressed by index
- Throws:
IOException
- Since:
- 1.1.3
-
getWffAttributeBytes
public static byte[][] getWffAttributeBytes(String charset, AbstractAttribute... attributes) throws UnsupportedEncodingException - Parameters:
attributes
-charset
- the charset- Returns:
- the wff attributes strings bytes array.
- Throws:
UnsupportedEncodingException
- throwing this exception will be removed in future version because its internal implementation will never make this exception due to the code changes since 3.0.1.- Since:
- 2.0.0
-
getWffAttributeBytes
- Parameters:
attributes
-charset
- the charset- Returns:
- the wff attributes strings bytes array.
- Since:
- 3.0.1
-
parseExactAttributeHtmlBytesCompressedByIndex
public static AbstractAttribute[] parseExactAttributeHtmlBytesCompressedByIndex(byte[][] attributesBytes, Charset charset) - Parameters:
attributesBytes
-- Returns:
- the array of attributes built from bytes
- Since:
- 3.0.3
-
getAttrNameBytesCompressedByIndex
public static byte[] getAttrNameBytesCompressedByIndex(Object accessObject, String attrName, Charset charset) NB: for internal purpose only- Parameters:
accessObject
-attrName
-charset
-- Returns:
- Since:
- 3.0.6
-
getAttrNameBytesCompressedByIndex
public static byte[] getAttrNameBytesCompressedByIndex(Object accessObject, AbstractAttribute attr, Charset charset) NB: for internal purpose only- Parameters:
accessObject
-attr
-charset
-- Returns:
- Since:
- 3.0.6
-
lockAndGetWriteLocks
- Parameters:
accessObject
-attributes
-- Returns:
- Since:
- 3.0.15
-
lockAndGetWriteLocks
public static List<Lock> lockAndGetWriteLocks(Object accessObject, Collection<AbstractAttribute> attributes) - Parameters:
accessObject
-attributes
-- Returns:
- Since:
- 3.0.15
-
lockAndGetWriteLock
- Parameters:
accessObject
-attribute
-- Returns:
- the lock object
- Since:
- 3.0.15
-
unassignOwnerTag
public static boolean unassignOwnerTag(Object accessObject, AbstractAttribute attribute, AbstractHtml ownerTag) for internal use only.- Parameters:
accessObject
-attribute
-ownerTag
-- Returns:
- Since:
- 3.0.15
-
assignOwnerTag
public static void assignOwnerTag(Object accessObject, AbstractAttribute attribute, AbstractHtml ownerTag) for internal use only.- Parameters:
accessObject
-attribute
-ownerTag
-- Since:
- 3.0.15
-