throw new IllegalArgumentException("name must not be null"); //$NON-NLS-1$
}
if (type == null) {
throw new IllegalArgumentException("type must not be null"); //$NON-NLS-1$
}
PropertyType kind = TYPES.get(type);
if (kind == null) {
return null;
}
if (kind.getRepresentation() == Calendar.class) {
List<String> words = name.getWords();
if (words.contains(PropertyType.DATE.name().toLowerCase())) {
return PropertyType.DATE;
} else if (words.contains(PropertyType.TIME.name().toLowerCase())) {
return PropertyType.TIME;