本文整理汇总了Java中org.hisp.dhis.android.sdk.persistence.models.OrganisationUnit.setFeatureType方法的典型用法代码示例。如果您正苦于以下问题:Java OrganisationUnit.setFeatureType方法的具体用法?Java OrganisationUnit.setFeatureType怎么用?Java OrganisationUnit.setFeatureType使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类org.hisp.dhis.android.sdk.persistence.models.OrganisationUnit
的用法示例。
在下文中一共展示了OrganisationUnit.setFeatureType方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: createRealOrganisationUnit
import org.hisp.dhis.android.sdk.persistence.models.OrganisationUnit; //导入方法依赖的package包/类
public void createRealOrganisationUnit(){
//Create program and organisationUnit to test the download and saved objects in SDK DB.
goldenOrganisationUnit =new OrganisationUnit();
goldenDataSets =new ArrayList<>();
goldenOrganisationUnitGroups =new ArrayList<>();
goldenOrganisationUnit.setId("QS7sK8XzdQc");
goldenOrganisationUnit.setLabel("KE - HNQIS SF pilot test facility 1");
goldenOrganisationUnit.setLevel(8);
goldenOrganisationUnit.setParent("spT8zFVQsvx");
goldenOrganisationUnit.setUuid("68c66a34-806f-49d1-9593-ba5d399ce95e");
goldenOrganisationUnit.setLastUpdated("2016-02-19T14:55:53.084+0000");
goldenOrganisationUnit.setCreated("2015-08-06T12:25:04.675+0000");
goldenOrganisationUnit.setName("KE - HNQIS SF pilot test facility 1");
goldenOrganisationUnit.setUser("NjbJCa6JkQu");
goldenOrganisationUnit.setShortName("KE - HNQIS SF pilot test facility 1");
goldenOrganisationUnit.setDisplayName("KE - HNQIS SF pilot test facility 1");
goldenOrganisationUnit.setDisplayShortName("KE - HNQIS SF pilot test facility 1");
goldenOrganisationUnit.setExternalAccess(false);
goldenOrganisationUnit.setPath("/FvUGp8I75zV/FhYFWRnrbkd/rP1W74RpNWF/AVqhgx4Ov2F/yp9x1IMVvcL/uJeWnsfj5EN/spT8zFVQsvx/QS7sK8XzdQc");
goldenOrganisationUnit.setFeatureType("NONE");
goldenOrganisationUnit.setOpeningDate("2015-08-06");//2015-08-06T00:00:00.000+0000
goldenOrganisationUnit.setDimensionItem("QS7sK8XzdQc");
goldenOrganisationUnitGroups.add("xdnfH7jiCUp");
goldenOrganisationUnitGroups.add("NAHlpJzIfbi");
goldenDataSets.add("oMlpyyPeJI1");
goldenDataSets.add("oaFG0Z4EFHo");
goldenDataSets.add("lI4BBizJsx0");
}