Class AbstractGeneratedFile
- java.lang.Object
-
- org.opendaylight.yangtools.plugin.generator.api.AbstractGeneratedFile
-
- All Implemented Interfaces:
Immutable
,MutationBehaviour<Immutable>
,GeneratedFile
- Direct Known Subclasses:
AbstractGeneratedTextFile
@Beta @NonNullByDefault public abstract class AbstractGeneratedFile extends Object implements GeneratedFile
Abstract base class forGeneratedFile
s. This class is suitable for binary files. For text files useAbstractGeneratedTextFile
.- Author:
- Robert Varga
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
AbstractGeneratedFile(GeneratedFileLifecycle lifecycle)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected MoreObjects.ToStringHelper
addToStringAttributes(MoreObjects.ToStringHelper helper)
GeneratedFileLifecycle
getLifecycle()
Return the lifecycle governing this file.String
toString()
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.opendaylight.yangtools.plugin.generator.api.GeneratedFile
writeBody
-
-
-
-
Constructor Detail
-
AbstractGeneratedFile
protected AbstractGeneratedFile(GeneratedFileLifecycle lifecycle)
-
-
Method Detail
-
getLifecycle
public final GeneratedFileLifecycle getLifecycle()
Return the lifecycle governing this file.- Specified by:
getLifecycle
in interfaceGeneratedFile
- Returns:
- Governing lifecycle
-
addToStringAttributes
protected MoreObjects.ToStringHelper addToStringAttributes(MoreObjects.ToStringHelper helper)
-
-