I am able to read xml namename
, descriptiondescription
, detailsdetails
whether it is mandatory or multivalue using core service factory java. I am not able to read xml type. There is no method called 'Gettype'. Could anyone please tell me how to retrieve xml type?
I am not able to read xml type. There is no method called 'Gettype'.
Could anyone please tell me how to retrieve xml type?
Thanks in advance!
My code goes like this.
ICoreService oClient = CoreServiceFactory.getBasicHttpClient();
SchemaFieldsData schemaData = oClient.readSchemaFields(str, true, null);
ArrayOfItemFieldDefinitionData design=schemaData.getFields();
List design_item = design.getItemFieldDefinitionData();
for(ItemFieldDefinitionData loopVariable : design_item) {
String xmlName=loopVariable.getName();
String description=loopVariable.getDescription();
String multiValue=(loopVariable.getMaxOccurs()==1) ? "No" : "Yes";
String mandatory=(loopVariable.getMinOccurs()==1) ? "Yes" : "No";
}
ICoreService oClient = CoreServiceFactory.getBasicHttpClient();
SchemaFieldsData schemaData = oClient.readSchemaFields(str, true, null);
ArrayOfItemFieldDefinitionData design=schemaData.getFields();
List<ItemFieldDefinitionData> design_item = design.getItemFieldDefinitionData();
for(ItemFieldDefinitionData loopVariable : design_item)
{
String xmlName=loopVariable.getName();
String description=loopVariable.getDescription();
String multiValue=(loopVariable.getMaxOccurs()==1) ? "No" : "Yes";
String mandatory=(loopVariable.getMinOccurs()==1) ? "Yes" : "No";
}