Gridarta 9211
API Documentation

net.sf.gridarta.model.archetypetype
Class SectionNames

java.lang.Object
  extended by net.sf.gridarta.model.archetypetype.SectionNames

public class SectionNames
extends Object

Maintains a list of section names while parsing ArchetypeAttributes.

Author:
Andreas Kirschbaum

Field Summary
static String GENERAL_SECTION
          The name of the "General" section.
private  List<String> sectionNames
          The section names in display order.
static String SPECIAL_SECTION
          The name of the "Special" section.
 
Constructor Summary
SectionNames()
          Creates a new instance.
 
Method Summary
 int defineSectionName(String sectionName)
          Defines a section name and returns the section ID.
 int getSectionNames()
          Returns the number of defined section names.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

GENERAL_SECTION

public static final String GENERAL_SECTION
The name of the "General" section.

See Also:
Constant Field Values

SPECIAL_SECTION

public static final String SPECIAL_SECTION
The name of the "Special" section.

See Also:
Constant Field Values

sectionNames

@NotNull
private final List<String> sectionNames
The section names in display order.

Constructor Detail

SectionNames

public SectionNames()
Creates a new instance.

Method Detail

defineSectionName

public int defineSectionName(String sectionName)
Defines a section name and returns the section ID.

Parameters:
sectionName - the section name to define
Returns:
the section ID

getSectionNames

public int getSectionNames()
Returns the number of defined section names.

Returns:
the number of defined section names

Gridarta 9211
API Documentation

SourceForge.net Logo Support This Project freshmeat.net Valid CSS! Feedback: webmaster