T
- type of componentpublic class Component<T extends Component<T>> extends Object
Modifier | Constructor and Description |
---|---|
protected |
Component(org.jsoup.nodes.Node node) |
Modifier and Type | Method and Description |
---|---|
protected T |
addAttribute(org.jsoup.nodes.Attribute attr) |
protected T |
addAttributes(org.jsoup.nodes.Attributes attrs) |
T |
addChild(Component<?> component) |
static Component<?> |
createComponent(org.jsoup.nodes.Node node,
Component<?> parent) |
Object |
get(String name) |
Map<String,String> |
getAttrs() |
Components |
getChildren() |
Components |
getChildren(String name) |
protected org.jsoup.nodes.Element |
getElement() |
String |
getHtml() |
String |
getName() |
String |
getOwnHtml() |
Component<?> |
getParent() |
protected SnippetComponent<?> |
getRootParent() |
boolean |
isHtmlTag() |
protected T |
self() |
String |
toString() |
protected T |
withParent(Component<?> parent) |
protected Component(@Nonnull org.jsoup.nodes.Node node)
node
- public static Component<?> createComponent(@Nonnull org.jsoup.nodes.Node node, Component<?> parent)
node
- parent
- public String getName()
public boolean isHtmlTag()
public String getHtml()
public String getOwnHtml()
public Component<?> getParent()
@Nullable protected org.jsoup.nodes.Element getElement()
public Components getChildren()
public Components getChildren(String name)
@Nonnull protected SnippetComponent<?> getRootParent()
protected T addAttributes(@Nonnull org.jsoup.nodes.Attributes attrs)
attrs
- protected T addAttribute(@Nonnull org.jsoup.nodes.Attribute attr)
attr
- protected T self()
Copyright © 2012–2023 Friederich Christophe. All rights reserved.