I am reading all the Schemas using core service from the Building Block folder, after reading the schema, I am reading all the field from a particular Schema. I successfully get all the field from a particularly Schema, but i didn't find any method for get the field type in the "ItemFieldDefinitionData" class then how i get the field type.
i wrote following code for reading the schema and all the field.
OrganizationalItemItemsFilterData f=new OrganizationalItemItemsFilterData();
ArrayOfItemType ai=new ArrayOfItemType();
List<ItemType> cpList =ai.getItemType() ;
cpList.add(ItemType.SCHEMA);
f.setItemTypes(ai);
ArrayOfIdentifiableObjectData systemWideListSchema = client.getList("tcm:397-27454-2",f);
System.out.println("in read");
for (IdentifiableObjectData iod : systemWideListSchema.getIdentifiableObjectData())
{
SchemaData schemaData=(SchemaData)iod;
System.out.println(schemaData.getTitle()+""+schemaData.getId());
SchemaData sdata=(SchemaData) client.read(schemaData.getId(),new ReadOptions());
SchemaFieldsData schemaFieldsData = client.readSchemaFields(sdata.getId(), false, null);
ArrayOfItemFieldDefinitionData aFiled = schemaFieldsData.getFields();
List<ItemFieldDefinitionData> l= aFiled.getItemFieldDefinitionData();
for(ItemFieldDefinitionData i:l)
{ System.out.println("in schema Filed");
System.out.println(i.getName());
//Here i want to get the type of field
}
}