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