Class Sample


  • public abstract class Sample
    extends Object
    This model represents a generated code sample. It contains the information needed to generate a sample file.
    • Constructor Detail

      • Sample

        public Sample()
    • Method Detail

      • regionTag

        public abstract RegionTag regionTag()
      • name

        public abstract String name()
      • isCanonical

        public abstract boolean isCanonical()
      • withHeader

        public final Sample withHeader​(List<CommentStatement> header)
        Helper method to easily update Sample's license header.
        Parameters:
        header - List of CommentStatement to replace Sample's header
        Returns:
        Sample with updated header
      • withRegionTag

        public final Sample withRegionTag​(RegionTag regionTag)
        Helper method to easily update Sample's region tag.
        Parameters:
        regionTag - RegionTag to replace Sample's header
        Returns:
        Sample with updated region tag.