String propName = null;
String colType = null;
TypeBinding type = element.getType();
if (type != null && !type.isSimple()/* && type.hasSimpleContent()*/)
{
PropertyMetaData propertyMetaData = type.getPropertyMetaData();
if (propertyMetaData == null)
{
CharactersMetaData charactersMetaData = type.getCharactersMetaData();
propertyMetaData = charactersMetaData == null ? null : charactersMetaData.getProperty();
}
if (propertyMetaData != null)
{
propName = propertyMetaData.getName();
colType = propertyMetaData.getCollectionType();
}
if (propName == null)
{
propName = type.getSchemaBinding().getSimpleContentProperty();
}
}
else
{
PropertyMetaData PropertyMetaData = element.getPropertyMetaData();
if (PropertyMetaData != null)
{
propName = PropertyMetaData.getName();
colType = PropertyMetaData.getCollectionType();
}
if (propName == null)
{
propName = Util.xmlNameToFieldName(qName.getLocalPart(), element.getSchema().isIgnoreLowLine());