Package com.tngtech.jgiven.report.model
Class Tag
- java.lang.Object
-
- com.tngtech.jgiven.report.model.Tag
-
public class Tag extends java.lang.Object
A tag represents a Java annotation of a scenario-test.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Tag
copy()
boolean
equals(java.lang.Object obj)
java.lang.String
getColor()
java.lang.String
getCssClass()
java.lang.String
getCssClassOrDefault()
java.lang.String
getDescription()
java.lang.String
getFullType()
java.lang.String
getHref()
java.lang.String
getName()
boolean
getShownInNavigation()
java.lang.String
getStyle()
java.util.List<java.lang.String>
getTags()
java.lang.String
getType()
java.util.List<java.lang.String>
getValues()
java.lang.String
getValueString()
int
hashCode()
boolean
isPrependType()
void
setColor(java.lang.String color)
void
setCssClass(java.lang.String cssClass)
void
setDescription(java.lang.String description)
void
setHref(java.lang.String href)
void
setName(java.lang.String name)
Tag
setPrependType(boolean prependType)
void
setShowInNavigation(boolean show)
void
setStyle(java.lang.String style)
void
setTags(java.util.List<java.lang.String> tags)
void
setType(java.lang.String type)
void
setValue(java.lang.String value)
void
setValue(java.util.List<java.lang.String> values)
java.lang.String
toEscapedString()
Returns a string representation where all non-alphanumeric characters are replaced with an underline (_).java.lang.String
toIdString()
java.lang.String
toString()
-
-
-
Method Detail
-
getName
public java.lang.String getName()
-
isPrependType
public boolean isPrependType()
-
getDescription
public java.lang.String getDescription()
-
setDescription
public void setDescription(java.lang.String description)
-
setColor
public void setColor(java.lang.String color)
-
getColor
public java.lang.String getColor()
-
setCssClass
public void setCssClass(java.lang.String cssClass)
-
getCssClass
public java.lang.String getCssClass()
-
getCssClassOrDefault
public java.lang.String getCssClassOrDefault()
-
setStyle
public void setStyle(java.lang.String style)
-
getStyle
public java.lang.String getStyle()
-
setType
public void setType(java.lang.String type)
-
getType
public java.lang.String getType()
-
getHref
public java.lang.String getHref()
-
setHref
public void setHref(java.lang.String href)
-
getValues
public java.util.List<java.lang.String> getValues()
-
setValue
public void setValue(java.util.List<java.lang.String> values)
-
setValue
public void setValue(java.lang.String value)
-
setPrependType
public Tag setPrependType(boolean prependType)
-
setShowInNavigation
public void setShowInNavigation(boolean show)
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
getValueString
public java.lang.String getValueString()
-
toIdString
public java.lang.String toIdString()
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in classjava.lang.Object
-
toEscapedString
public java.lang.String toEscapedString()
Returns a string representation where all non-alphanumeric characters are replaced with an underline (_). In addition, the result is cut-off at a length of 255 characters.- Returns:
- a string representation without special characters
-
setName
public void setName(java.lang.String name)
-
getFullType
public java.lang.String getFullType()
-
getShownInNavigation
public boolean getShownInNavigation()
-
getTags
public java.util.List<java.lang.String> getTags()
-
setTags
public void setTags(java.util.List<java.lang.String> tags)
-
copy
public Tag copy()
-
-