public class Content
extends java.lang.Object
implements java.lang.Cloneable
修飾子とタイプ | フィールドと説明 |
---|---|
static Agent |
ANY
不特定のエージェントを表す定数
Constant representing an arbitrary agent.
|
static Content |
OVER |
static Content |
SKIP |
static Agent |
UNSPEC
エージェント未特定であることを表す定数
Constant representing an unspecified agent.
|
コンストラクタと説明 |
---|
Content(ContentBuilder builder)
指定したContentBuilderによりContentを構築する
Constructs a Content by the given ContentBuilder.
|
Content(java.lang.String input)
発話テキストによりContentを構築する
Constructs a Content from the uttered text.
|
修飾子とタイプ | メソッドと説明 |
---|---|
Content |
clone() |
boolean |
equals(java.lang.Object content) |
java.util.List<Content> |
getContentList()
発話内容が複文・重文の場合,節のリストを返す
Returns the list of clauses in case of complex or compound sentence.
|
int |
getDay()
発話の日付を返す
Returns the date of content.
|
Operator |
getOperator()
発話内容の演算子を返す
Returns the operator of this content.
|
Species |
getResult()
発話内容中で言及されている判定結果を返す。
|
Role |
getRole()
発話内容中で言及されている役職を返す。
|
Agent |
getSubject()
発話内容の主語を返す
Returns the subject of this content.
|
int |
getTalkDay()
発話内容中で言及されている発言の日を返す。
|
int |
getTalkID()
発話内容中で言及されている発言のIDを返す。
|
TalkType |
getTalkType()
発話内容中で言及されている発言のタイプを返す。
|
Agent |
getTarget()
発話内容中の目的エージェントを返す。
|
java.lang.String |
getText()
発話テキストを返す
Returns the uttered text.
|
Topic |
getTopic()
発話内容のトピックを返す
Returns the topic of this content.
|
static java.lang.String |
stripSubject(java.lang.String input)
発話文字列からsubjectの部分を除いた文字列を返す
Strips subject off the given string and returns it.
|
static boolean |
validate(java.lang.String input)
発話テキストが有効かどうかを返す.
|
public static final Content SKIP
public static final Content OVER
public static final Agent ANY
public static final Agent UNSPEC
public Content(ContentBuilder builder)
builder
- public Content(java.lang.String input)
input
- public java.lang.String getText()
public Operator getOperator()
null
null
when it is a simple sentence.public Agent getSubject()
public Topic getTopic()
public Agent getTarget()
null
null
when it is invalid.public Role getRole()
null
null
when it is invalid.public Species getResult()
null
null
when it is invalid.public TalkType getTalkType()
null
null
when it is invalid.public int getTalkDay()
public int getTalkID()
public java.util.List<Content> getContentList()
null
null
in case of simple sentence.public int getDay()
public static boolean validate(java.lang.String input)
input
- true
,そうでなければfalse
true
if the text is valid, otherwise false
.public Content clone()
clone
クラス内 java.lang.Object
public boolean equals(java.lang.Object content)
equals
クラス内 java.lang.Object
public static java.lang.String stripSubject(java.lang.String input)
input
-