public static Term create ( Element element ) { if ( element instanceof StringProperty ) { return create ( ( ( StringProperty ) element ) . getValue ( ) ) ; } else if ( element instanceof LongProperty ) { return create ( ( ( LongProperty ) element ) . getValue ( ) . longValue ( ) ) ; } else { throw EvaluationException . create ( MSG_INVALID_ELEMENT_FOR_INDEX , element . getTypeAsString ( ) ) ; } }
Create a term from a given element .