Class ComponentToken
- java.lang.Object
-
- org.devacfr.maven.skins.reflow.snippet.ComponentToken
-
public class ComponentToken extends Object
Component token.- Version:
- 2.4
- Author:
- Christophe Friederich
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classComponentToken.TagType
-
Constructor Summary
Constructors Constructor Description ComponentToken(org.jsoup.nodes.Element element, String name, ComponentToken.TagType tag, SnippetComponent.Type type)Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetCloseTag()Get the close tag representation.org.jsoup.nodes.ElementgetElement()booleanisCloseTagOf(ComponentToken startElement)Stringname()ComponentToken.TagTypetag()StringtoString()SnippetComponent.Typetype()
-
-
-
Constructor Detail
-
ComponentToken
public ComponentToken(org.jsoup.nodes.Element element, String name, ComponentToken.TagType tag, SnippetComponent.Type type)Constructor.- Parameters:
element- the elementname- the nametag- the tag
-
-
Method Detail
-
getElement
public org.jsoup.nodes.Element getElement()
- Returns:
- the element
-
name
public String name()
- Returns:
- the name
-
tag
public ComponentToken.TagType tag()
- Returns:
- the tag
-
type
public SnippetComponent.Type type()
- Returns:
- the type
-
isCloseTagOf
public boolean isCloseTagOf(ComponentToken startElement)
- Parameters:
startElement- the start element- Returns:
- true if this element is the close tag of the given start element
-
getCloseTag
public String getCloseTag()
Get the close tag representation.- Returns:
- the close tag representation.
-
-