This should also have MediaInfoIdValue
and others (lexeme, form, sense):
|
public Value visit(EntityIdValue value) { |
|
if (value instanceof ItemIdValue) { |
|
return copy((ItemIdValue) value); |
|
} else if (value instanceof PropertyIdValue) { |
|
return copy((PropertyIdValue) value); |
|
} else { |
|
throw new UnsupportedOperationException( |
|
"Cannot convert entity id value: " + value.getClass()); |
|
} |
|
} |