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