com.cerner.ccl.parser.text.IncludeFileFactory Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of cdoc-parser Show documentation
Show all versions of cdoc-parser Show documentation
A parser utility for parsing CDoc CCL documentation
The newest version!
package com.cerner.ccl.parser.text;
import java.util.List;
import com.cerner.ccl.parser.data.IncludeDocumentation;
import com.cerner.ccl.parser.data.IncludeFile;
import com.cerner.ccl.parser.data.record.RecordStructure;
import com.cerner.ccl.parser.data.subroutine.Subroutine;
/**
* A {2link {@link DocumentedObjectFactory} used to create {@link IncludeFile} objects.
*
* @author Joshua Hyde
*
*/
public class IncludeFileFactory implements DocumentedObjectFactory {
/**
* {@inheritDoc}
*/
@Override
public IncludeFile build(final String objectName, final IncludeDocumentation topLevelDocumentation,
final List subroutines, final List recordStructures) {
return new IncludeFile(objectName,
topLevelDocumentation == null ? new IncludeDocumentation() : topLevelDocumentation, subroutines,
recordStructures);
}
}