本文整理匯總了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);
}