Fact Class

  • java.lang.Object
    • com.microsoft.bot.schema.Fact

public class Fact

Set of key-value pairs. Advantage of this section is that key and value properties will be rendered with default style information with some delimiter between them. So there is no need for developer to specify style information.

Constructor Summary

Constructor Description
Fact()

Creates a new fact.

Fact(String withKey, String withValue)

Creates a new fact.

Method Summary

Modifier and Type Method and Description
java.lang.String getKey()

Get the key value.

java.lang.String getValue()

Get the value value.

void setKey(String withKey)

Set the key value.

void setValue(String withValue)

Set the value value.

Methods inherited from java.lang.Object

java.lang.Object.clone java.lang.Object.equals java.lang.Object.finalize java.lang.Object.getClass java.lang.Object.hashCode java.lang.Object.notify java.lang.Object.notifyAll java.lang.Object.toString java.lang.Object.wait java.lang.Object.wait java.lang.Object.wait

Constructor Details

Fact

public Fact()

Creates a new fact.

Fact

public Fact(String withKey, String withValue)

Creates a new fact.

Parameters:

withKey - The key value.
withValue - The value

Method Details

getKey

public String getKey()

Get the key value.

Returns:

the key value

getValue

public String getValue()

Get the value value.

Returns:

the value value

setKey

public void setKey(String withKey)

Set the key value.

Parameters:

withKey - the key value to set

setValue

public void setValue(String withValue)

Set the value value.

Parameters:

withValue - the value value to set

Applies to