|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.xwiki.rendering.wikimodel.WikiFormat
public class WikiFormat
An immutable set of styles.
| Field Summary | |
|---|---|
static WikiFormat |
EMPTY
|
| Constructor Summary | |
|---|---|
WikiFormat()
|
|
WikiFormat(Collection<WikiParameter> params)
|
|
WikiFormat(Set<WikiStyle> styles)
|
|
WikiFormat(Set<WikiStyle> styles,
Collection<WikiParameter> params)
|
|
WikiFormat(WikiStyle style)
|
|
WikiFormat(WikiStyle[] styles)
|
|
WikiFormat(WikiStyle style,
Collection<WikiParameter> params)
|
|
| Method Summary | |
|---|---|
WikiFormat |
addStyle(WikiStyle style)
Creates a new style set and adds the given style to it. |
boolean |
equals(Object obj)
|
protected WikiFormat |
getClone()
|
List<WikiParameter> |
getParams()
|
List<WikiStyle> |
getStyles()
|
String |
getTags(boolean open)
Returns opening or closing tags corresponding to the given format(it depends on the given flag). |
int |
hashCode()
|
boolean |
hasStyle(WikiStyle style)
|
WikiFormat |
removeStyle(WikiStyle style)
Creates a new style set which does not contain the specified style. |
WikiFormat |
setParameters(Collection<WikiParameter> params)
|
WikiFormat |
switchStyle(WikiStyle wikiStyle)
Creates a new format object where the specified style is switched: if this format contains the given style then the resulting format does not and vice versa. |
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static WikiFormat EMPTY
| Constructor Detail |
|---|
public WikiFormat()
public WikiFormat(Set<WikiStyle> styles)
styles -
public WikiFormat(Set<WikiStyle> styles,
Collection<WikiParameter> params)
public WikiFormat(Collection<WikiParameter> params)
public WikiFormat(WikiStyle style)
style -
public WikiFormat(WikiStyle style,
Collection<WikiParameter> params)
public WikiFormat(WikiStyle[] styles)
styles - | Method Detail |
|---|
public WikiFormat setParameters(Collection<WikiParameter> params)
public WikiFormat addStyle(WikiStyle style)
style - the style to add
public boolean equals(Object obj)
equals in class ObjectObject.equals(java.lang.Object)protected WikiFormat getClone()
public String getTags(boolean open)
open - if this flag is true then this method returns
opening tags for this format
public int hashCode()
hashCode in class ObjectObject.hashCode()public boolean hasStyle(WikiStyle style)
style - the style to check
true if this format has the specified stylepublic WikiFormat removeStyle(WikiStyle style)
style - the style to add
public WikiFormat switchStyle(WikiStyle wikiStyle)
wikiStyle - the style to switch
public List<WikiStyle> getStyles()
public List<WikiParameter> getParams()
public String toString()
toString in class ObjectObject.toString()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||