Package ai.platon.pulsar.dom.model
Class PageEntity
-
- All Implemented Interfaces:
public final class PageEntity
-
-
Field Summary
Fields Modifier and Type Field Description private final HashMap<String, PageAttribute>attributesprivate final HashMap<String, String>metadataprivate final HashSet<PageEntity>nestedPagesprivate final Integersizeprivate StringbaseURIprivate Stringtitleprivate Stringlocationprivate FragmentCategorycategory
-
Constructor Summary
Constructors Constructor Description PageEntity(String baseURI0, FragmentCategory category)
-
Method Summary
-
-
Constructor Detail
-
PageEntity
PageEntity(String baseURI0, FragmentCategory category)
-
-
Method Detail
-
getAttributes
final HashMap<String, PageAttribute> getAttributes()
-
getMetadata
final HashMap<String, String> getMetadata()
-
getNestedPages
final HashSet<PageEntity> getNestedPages()
-
getBaseURI
final String getBaseURI()
The URL where the HTML was retrieved from.
- Returns:
base URI
-
setBaseURI
final Unit setBaseURI(String baseURI)
-
getLocation
final String getLocation()
Get the URL this Document was parsed from. If the starting URL is a redirect, this will return the final URL from which the document was served from.
-
setLocation
final Unit setLocation(String location)
-
getCategory
final FragmentCategory getCategory()
-
setCategory
final Unit setCategory(FragmentCategory category)
-
put
final PageAttribute put(String name, String value, FragmentCategory category)
-
put
final PageAttribute put(String name, String value, String richText, FragmentCategory category)
-
add
final PageAttribute add(PageAttribute attribute)
-
add
final Boolean add(PageEntity pageEntity)
-
addAll
final Unit addAll(Iterable<PageAttribute> attributes)
-
get
final Set<PageAttribute> get(String name)
-
get
final Set<PageAttribute> get(String name, String value)
-
get
final Set<PageAttribute> get(String name, String value, FragmentCategory category)
-
filterBy
final List<PageAttribute> filterBy(FragmentCategory category)
-
firstValue
final <Error class: unknown class> firstValue(String name)
-
joinToString
final <Error class: unknown class> joinToString(String name, String sep)
-
-
-
-