java.lang.Object
com.webfirmframework.wffweb.tag.html.attribute.core.AttributeUtil

public final class AttributeUtil extends Object
Since:
1.0.0
  • Method Details

    • getAttributeHtmlString

      public static String getAttributeHtmlString(boolean rebuild, AbstractAttribute... attributes)
      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

      public static byte[][] getWffAttributeBytes(Charset charset, AbstractAttribute... attributes)
      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

      public static List<Lock> lockAndGetWriteLocks(Object accessObject, AbstractAttribute... attributes)
      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

      public static Lock lockAndGetWriteLock(Object accessObject, AbstractAttribute attribute)
      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