本文整理汇总了Java中com.versionone.apiclient.Services类的典型用法代码示例。如果您正苦于以下问题:Java Services类的具体用法?Java Services怎么用?Java Services使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
Services类属于com.versionone.apiclient包,在下文中一共展示了Services类的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: connect
import com.versionone.apiclient.Services; //导入依赖的package包/类
@Override
public void connect(ConnectionSettings settings) {
FileAPIConnector metaConnector = new FileAPIConnector("testdata/TestMetaData.xml", "meta.v1/");
FileAPIConnector dataConnector = new FileAPIConnector("testdata/TestData.xml", "rest-1.v1/");
FileAPIConnector localizeConnector = new FileAPIConnector("testdata/TestLocalizeData.xml", "loc.v1/");
metaModel = new MetaModel(metaConnector);
services = new Services(metaModel, dataConnector);
localizer = new Localizer(localizeConnector);
requiredFieldsValidator = new RequiredFieldsValidator(metaModel, services);
}
示例2: VersionOneDataFactoryImpl
import com.versionone.apiclient.Services; //导入依赖的package包/类
/**
* Default constructor, which sets page size to 2000 and page index to 0.
*/
public VersionOneDataFactoryImpl(Map<String, String> auth) {
this.v1Service = new Services(versionOneAuthentication(auth));
this.pageSize = 2000;
this.pageIndex = 0;
}