Class AbstractHtmlRepository

java.lang.Object
com.webfirmframework.wffweb.tag.html.AbstractHtmlRepository
Direct Known Subclasses:
TagRepository

public abstract class AbstractHtmlRepository extends Object
Since:
2.1.8
  • Constructor Details

    • AbstractHtmlRepository

      public AbstractHtmlRepository()
  • Method Details

    • getAttributeByNameLockless

      protected static AbstractAttribute getAttributeByNameLockless(AbstractHtml tag, String attributeName)
      Parameters:
      tag -
      attributeName -
      Returns:
      the tag or null
      Since:
      3.0.15
    • getAttributesLockless

      protected static Collection<AbstractAttribute> getAttributesLockless(AbstractHtml tag)
      Parameters:
      tag -
      Returns:
      collection of attributes
      Since:
      3.0.15
    • getReadLocks

      protected static Collection<Lock> getReadLocks(AbstractHtml... fromTags)
      Parameters:
      fromTags -
      Returns:
      the list of read lock
      Since:
      3.0.1
    • lockAndGetReadLocks

      protected static final Collection<Lock> lockAndGetReadLocks(AbstractHtml... fromTags)
      Parameters:
      fromTags -
      Returns:
      the list of read lock
      Since:
      3.0.15
    • lockAndGetWriteLocks

      protected static final Collection<Lock> lockAndGetWriteLocks(AbstractHtml... fromTags)
      Parameters:
      fromTags -
      Returns:
      the list of write lock
      Since:
      3.0.15
    • getAllNestedChildrenIncludingParent

      protected static Stream<AbstractHtml> getAllNestedChildrenIncludingParent(boolean parallel, AbstractHtml... parents)
      Parameters:
      parallel - true to use parallel stream.
      parents - the tags from which the nested children to be taken.
      Returns:
      stream of all nested children including the given parent.
      Since:
      3.0.0
    • loopThroughAllNestedChildren

      protected static void loopThroughAllNestedChildren(NestedChild nestedChild, boolean includeParents, AbstractHtml... parents)
      Loops through all nested children tags (excluding the given tag) of the given tag. The looping is in a random order to gain maximum performance and minimum memory footprint.
      Parameters:
      nestedChild - the object of NestedChild from which the eachChild(AbstractHtml) to be invoked.
      includeParents - true to include the given parent tags in the loop
      parents - the tags from which to loop through.
      Since:
      2.1.8
    • addWffData

      protected static WffBMData addWffData(AbstractHtml abstractHtml, String key, WffBMData wffBMData)
      Parameters:
      abstractHtml -
      key -
      wffBMData -
      Returns:
      Since:
      2.1.8
    • removeWffData

      protected static WffBMData removeWffData(AbstractHtml abstractHtml, String key)
      Parameters:
      abstractHtml -
      key -
      Returns:
      Since:
      2.1.8
    • getWffData

      protected static WffBMData getWffData(AbstractHtml abstractHtml, String key)
      Parameters:
      abstractHtml -
      key -
      Returns:
      Since:
      3.0.1