Class AbstractHtmlRepository
java.lang.Object
com.webfirmframework.wffweb.tag.html.AbstractHtmlRepository
- Direct Known Subclasses:
TagRepository
- Since:
- 2.1.8
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected static WffBMData
addWffData
(AbstractHtml abstractHtml, String key, WffBMData wffBMData) protected static Stream<AbstractHtml>
getAllNestedChildrenIncludingParent
(boolean parallel, AbstractHtml... parents) protected static AbstractAttribute
getAttributeByNameLockless
(AbstractHtml tag, String attributeName) protected static Collection<AbstractAttribute>
protected static Collection<Lock>
getReadLocks
(AbstractHtml... fromTags) protected static WffBMData
getWffData
(AbstractHtml abstractHtml, String key) protected static final Collection<Lock>
lockAndGetReadLocks
(AbstractHtml... fromTags) protected static final Collection<Lock>
lockAndGetWriteLocks
(AbstractHtml... fromTags) protected static void
loopThroughAllNestedChildren
(NestedChild nestedChild, boolean includeParents, AbstractHtml... parents) Loops through all nested children tags (excluding the given tag) of the given tag.protected static WffBMData
removeWffData
(AbstractHtml abstractHtml, String key)
-
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
- Parameters:
tag
-- Returns:
- collection of attributes
- Since:
- 3.0.15
-
getReadLocks
- Parameters:
fromTags
-- Returns:
- the list of read lock
- Since:
- 3.0.1
-
lockAndGetReadLocks
- Parameters:
fromTags
-- Returns:
- the list of read lock
- Since:
- 3.0.15
-
lockAndGetWriteLocks
- 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 loopparents
- the tags from which to loop through.- Since:
- 2.1.8
-
addWffData
- Parameters:
abstractHtml
-key
-wffBMData
-- Returns:
- Since:
- 2.1.8
-
removeWffData
- Parameters:
abstractHtml
-key
-- Returns:
- Since:
- 2.1.8
-
getWffData
- Parameters:
abstractHtml
-key
-- Returns:
- Since:
- 3.0.1
-