本文整理汇总了Java中org.waveprotocol.wave.model.testing.BasicFactories.createDocument方法的典型用法代码示例。如果您正苦于以下问题:Java BasicFactories.createDocument方法的具体用法?Java BasicFactories.createDocument怎么用?Java BasicFactories.createDocument使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类org.waveprotocol.wave.model.testing.BasicFactories
的用法示例。
在下文中一共展示了BasicFactories.createDocument方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: getIndexability
import org.waveprotocol.wave.model.testing.BasicFactories; //导入方法依赖的package包/类
@Override
protected MutableIndexability getIndexability() {
ObservableDocument doc =
BasicFactories.createDocument(AccountSchemas.INDEXABILITY_SCHEMA_CONSTRAINTS);
DefaultDocEventRouter router = DefaultDocEventRouter.create(doc);
return DocumentBasedIndexability.create(router);
}
示例2: createBlipDocument
import org.waveprotocol.wave.model.testing.BasicFactories; //导入方法依赖的package包/类
static ObservableDocument createBlipDocument() {
return BasicFactories.createDocument(ConversationSchemas.BLIP_SCHEMA_CONSTRAINTS);
}
示例3: createManifestDocument
import org.waveprotocol.wave.model.testing.BasicFactories; //导入方法依赖的package包/类
static ObservableDocument createManifestDocument() {
return BasicFactories.createDocument(ConversationSchemas.MANIFEST_SCHEMA_CONSTRAINTS);
}
示例4: initFromDoc
import org.waveprotocol.wave.model.testing.BasicFactories; //导入方法依赖的package包/类
private void initFromDoc(final String content) {
ObservableDocument doc =
BasicFactories.createDocument(AccountSchemas.INDEXABILITY_SCHEMA_CONSTRAINTS, content);
DefaultDocEventRouter router = DefaultDocEventRouter.create(doc);
indexability = DocumentBasedIndexability.create(router);
}
示例5: createDocument
import org.waveprotocol.wave.model.testing.BasicFactories; //导入方法依赖的package包/类
/**
* Create an empty document. Subclasses can override this if they need a
* certain kind of document.
*/
protected ObservableDocument createDocument() {
return BasicFactories.createDocument(DocumentSchema.NO_SCHEMA_CONSTRAINTS);
}