private String getDataType ( String [ ] items ) { for ( String item : items ) { if ( XsdDatatypeEnum . ENTITIES . isDataType ( item ) ) { return item ; } } return items [ 0 ] ; }
Returns first data type which is a standard xsd data type . If no such data type found then the first one will be returned .