org.asteriskjava.config.IncludeDirective Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of asterisk-java Show documentation
Show all versions of asterisk-java Show documentation
The free Java library for Asterisk PBX integration.
package org.asteriskjava.config;
public class IncludeDirective extends ConfigDirective
{
/**
* file name included.
*/
private final String includeFile;
public IncludeDirective(String includeFile)
{
super();
this.includeFile = includeFile;
}
public IncludeDirective(String filename, int lineno, String includeFile)
{
super(filename, lineno);
this.includeFile = includeFile;
}
public String getIncludeFile()
{
return includeFile;
}
@Override
protected StringBuilder rawFormat(StringBuilder sb)
{
sb.append("#include \"").append(includeFile).append("\"");
return sb;
}
}