Class SectionDefinition
- java.lang.Object
-
- org.jvnet.hudson.plugins.collapsingconsolesections.SectionDefinition
-
- All Implemented Interfaces:
Serializable
public class SectionDefinition extends Object implements Serializable
- Author:
- dty
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description SectionDefinition(String sectionName, String sectionStartPattern, String sectionEndPattern)
Deprecated.SectionDefinition(String sectionName, String sectionStartPattern, String sectionEndPattern, boolean collapseOnlyOneLevel)
Deprecated.SectionDefinition(String sectionName, String sectionStartPattern, String sectionEndPattern, boolean collapseOnlyOneLevel, boolean collapseSection)
Creates a new section definition.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getSectionDisplayName()
String
getSectionDisplayName(Matcher m)
Pattern
getSectionEndPattern()
Pattern
getSectionStartPattern()
boolean
isCollapseOnlyOneLevel()
boolean
isCollapseSection()
-
-
-
Constructor Detail
-
SectionDefinition
@Deprecated public SectionDefinition(String sectionName, String sectionStartPattern, String sectionEndPattern)
Deprecated.
-
SectionDefinition
@Deprecated public SectionDefinition(String sectionName, String sectionStartPattern, String sectionEndPattern, boolean collapseOnlyOneLevel)
Deprecated.
-
SectionDefinition
public SectionDefinition(@Nonnull String sectionName, @Nonnull String sectionStartPattern, @Nonnull String sectionEndPattern, boolean collapseOnlyOneLevel, boolean collapseSection) throws PatternSyntaxException
Creates a new section definition.- Parameters:
sectionName
- Name of the sectionsectionStartPattern
- Regular expression pattern for the section startsectionEndPattern
- Regular expression pattern for the section endcollapseOnlyOneLevel
- Iftrue
, only one level will be collapsed by the end patterncollapseSection
- Iftrue
, the section should be collapsed by default- Throws:
PatternSyntaxException
- One of the patterns is invalid
-
-
Method Detail
-
getSectionDisplayName
@Nonnull public String getSectionDisplayName()
-
getSectionStartPattern
@Nonnull public Pattern getSectionStartPattern()
-
getSectionEndPattern
@Nonnull public Pattern getSectionEndPattern()
-
isCollapseSection
public boolean isCollapseSection()
-
isCollapseOnlyOneLevel
public boolean isCollapseOnlyOneLevel()
-
-