Class zc390.section_definition
java.lang.Object
zc390.section_definition
- Enclosing class:
zc390
// #655
Define the divisions, sections, and paragraphs with their properties // #655
-
Field Summary
FieldsModifier and TypeFieldDescription(package private) Stringdivision name(package private) Stringfull name: division.section.paragraph(package private) booleantrue if section is comment-only(package private) booleantrue if section is defined(package private) booleantrue if section is free-format text(package private) Stringparagraph name(package private) Stringsection name(package private) intidentifier -
Constructor Summary
ConstructorsConstructorDescriptionsection_definition(String section_specification) // #655 Constructor // #655 // #655 This constructor takes a definition string and decomposes it to construct the data for a new instance // #655 // #655section_definition(String my_division_name, String my_section_name, String my_paragraph_name) // #655 Constructor // #655 // #655 This constructor takes an explicit division, section, and paragraph to create a default instance. -
Method Summary
Modifier and TypeMethodDescription(package private) int// #655 find_index // #655 Input: section_definition with: // #655 Division name // #655 Section name // #655 Paragraph name // #655 program_sections (implicit) // #655 Output: index nr if section_definition entry was found.(package private) boolean// #655 is_comment // #655 Input: -- // #655 Output: boolean is_comment property of the class instance // #655 // #655
-
Field Details
-
division_name
String division_namedivision name -
section_name
String section_namesection name -
paragraph_name
String paragraph_nameparagraph name -
full_name
String full_namefull name: division.section.paragraph -
sequence_id
int sequence_ididentifier -
is_comment
boolean is_commenttrue if section is comment-only -
is_free_format
boolean is_free_formattrue if section is free-format text -
is_defined
boolean is_definedtrue if section is defined
-
-
Constructor Details
-
section_definition
section_definition(String section_specification) throws zc390.zCobolException // #655 Constructor // #655 // #655 This constructor takes a definition string and decomposes it to construct the data for a new instance // #655 // #655- Parameters:
section_specification- source variant of section definition // #655- Throws:
zc390.zCobolException- if there is an issue with the source definition // #655
-
section_definition
// #655 Constructor // #655 // #655 This constructor takes an explicit division, section, and paragraph to create a default instance. // #655 The caller is to invoke the find_index method to validate the instance against the defined combinations. // #655 // #655- Parameters:
my_division_name- division name // #655my_section_name- section name // #655my_paragraph_name- paragraph name // #655
-
-
Method Details
-
find_index
int find_index()// #655 find_index // #655 Input: section_definition with: // #655 Division name // #655 Section name // #655 Paragraph name // #655 program_sections (implicit) // #655 Output: index nr if section_definition entry was found. -1 if not found. // #655 // #655- Returns:
- index of section definition; -1 if not found // #655
-
is_comment
boolean is_comment()// #655 is_comment // #655 Input: -- // #655 Output: boolean is_comment property of the class instance // #655 // #655- Returns:
- true if the section is a comment-only section; false otherwise // #655
-