public class CodeSample extends Object
| Constructor and Description |
|---|
CodeSample(String sampleId,
String serviceName)
Ctor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
appendLine(String line)
Append a line of code to this sample.
|
String |
getDescription()
Returns the description for this sample, or null if none was provided.
|
String |
getFormattedCode()
Returns source code for this Sample.
|
String |
getId()
Returns the ID of this sample.
|
String |
getServiceName()
Returns the name of the service this sample was written for.
|
String |
getTitle()
Returns the title of this sample.
|
void |
setDescription(String description)
Set the description for this sample.
|
void |
setTitle(String title)
Set the title for this sample.
|
public String getId()
public String getServiceName()
public String getTitle()
public String getDescription()
public String getFormattedCode()
public void setTitle(String title)
title - sample titlepublic void setDescription(String description)
description - sample descriptionpublic void appendLine(String line)
line - line of codeCopyright © 2016. All Rights Reserved.