| Constructor and Description |
|---|
IdCollector(Class<?> templateClass,
String templateFile,
org.jsoup.nodes.Element templateRoot)
Creates a collector the the given template.
|
| Modifier and Type | Method and Description |
|---|---|
void |
collectInjectedIds(Set<String> notInjectableElementIds)
Scans the given template class and finds fields mapped using
@Id. |
Map<String,Map<String,String>> |
getAttributes()
Gets a map from field ids to their parsed attributes values.
|
Map<Field,String> |
getIdByField()
Gets a map from fields to their ids.
|
Map<String,String> |
getTagById()
Gets a map from field ids to their component tags.
|
public IdCollector(Class<?> templateClass, String templateFile, org.jsoup.nodes.Element templateRoot)
templateClass - the template class, containing the @Id fieldstemplateFile - The name of the file containing the template or
null if not available nulltemplateRoot - The root element of the template or null if not
availablepublic void collectInjectedIds(Set<String> notInjectableElementIds)
@Id.notInjectableElementIds - ids which cannot be injectedpublic Map<Field,String> getIdByField()
public Map<String,String> getTagById()
Copyright © 2025. All rights reserved.